import sys input = lambda: sys.stdin.readline().rstrip() def main(): # 入力 A, B, C = map(int, input().split()) # 計算・出力 X = 2*(A*B + B*C + C*A) Y = A*B*C print(2 if X>Y else 3) if __name__ == "__main__": main()