1.
Let [x][x] denote the greatest integer function and
f(x)=max{1+x+[x],  2+x,  x+2[x]},  0x2f(x) = \max\{1 + x + [x],\; 2 + x,\; x + 2[x]\},\; 0 \leq x \leq 2

Let mm be the number of points where ff is not continuous and nn be the number of points in (0,2)(0,2) where ff is not differentiable. Then m+n2+2m + n^2 + 2 is equal to