let n = stdin.ReadLine () |> int if n % 2 = 0 then 2 else 1 |> printfn "%d"