using System; namespace No272 { class not { static void Main() { string str = Console.ReadLine(); switch (str) { case "1": Console.WriteLine("0"); break; case "0": Console.WriteLine("1"); break; } } } }