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