(120+((n1<n0)*(n0-n1)+(n1>n0)*(40-n1+n0))+((n2>n1)*(n2-n1)+(n2<n1)*(40-n1+n2))+((n3<n2)*(n2-n3)+(n3>n2)*(40-n3+n2)))*9