open System type Sol() = member this.Solve() = Console.WriteLine("{0}",( stdin.ReadLine() |> fun s -> if s = "1" then "0" else "1" )) let mySol = new Sol() mySol.Solve()