import sequtils, strutils

var a, b, c: int
(a, b, c) = stdin.readLine.split.map parseInt

let
  x = (a * (b + c) + b * c) * 2
  y = a * b * c

echo if x > y: 2 else: 3