using System;class E{static void Main(){for(int i=51;--i>0;)Console.Write(int(Math.Sqrt(8*Convert.ToByte(Console.ReadLine(),2)+1)%2));}}