A,B,C = map(int,input().split()) if A*B*C < 2*(A*B+B*C+C*A): print(2) else: print(3)