a,b,c = map(int,input().split()) if a*b*c<=a*b*6: print(2) else: print(3)