A,B,C = map(int, input().split(' ')) X = (A*B + A*C + B*C) * 2 Y = A*B*C #print(f'X:{X} Y:{Y}') print(['3','2'][X > Y])