branchWith op f g x = op (f x) (g x) main = readLn >>= print . branchWith (+) id (flip mod 2)