const fi=''; fo=''; var f, g: text; n, res: longint; begin assign(f,fi); assign(g,fo); reset(f); rewrite(g); readln(f,n); case (n mod 4) of 0: res:=16; 1: res:=16; 2: res:=15; 3: res:=15; end; writeln(g,res); close(f); close(G); end.