defmodule Main do def input, do: IO.read(:line) |> String.trim def ii, do: input() |> String.to_integer def li, do: input() |> String.split |> Enum.map(&String.to_integer/1) def yn(b), do: IO.puts(if b, do: "Yes", else: "No") def main do s = input() c = String.at(s, -1) t = String.slice(s, 0..-2//1) ans = t <> if c == "0", do: "1", else: "0" IO.puts ans end end