using System.Diagnostics; using System.Numerics; public class Program { public static void Main() { //int num = int.Parse(Console.ReadLine() ?? string.Empty); //string[] str = (Console.ReadLine() ?? string.Empty).Trim().Split(' '); string str = Console.ReadLine() ?? string.Empty; if (str[str.Length - 1] == '1') { str = str.Substring(0, str.Length - 1) + "0"; Console.WriteLine(str); } else { str = str.Substring(0, str.Length - 1) + "1"; Console.WriteLine(str); } } }