def main(): a, b, c = map(int, input().split()) print(2 if 2*a*b+2*b*c+2*c*a > a*b*c else 3) if __name__ == '__main__': main()