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