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