import sys import logging input = sys.stdin.readline logger = logging.getLogger(__name__) def read(): A, B, C = map(int, input().strip().split()) return A, B, C def solve(A, B, C): X = 2 * (A * B + B * C + C * A) Y = A * B * C if X > Y: return 2 else: return 3 if __name__ == "__main__": logging.basicConfig(level=logging.INFO) inputs = read() outputs = solve(*inputs) if outputs is not None: print("%s" % str(outputs))