A, B, C = gets.split.map(&:to_i)

x = 2 * (A * B) + 2 * (A * C) + 2 * (B * C)
y = A * B * C

if x > y
  puts 2
else
  puts 3
end