using a=System.Console;class X{static void Main(){a.Write(a.Read()=='0'?1:0);}}