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