Try side f(s,n,closest) =
s = 0,1,2,3,4
n =
Try these: