using C=System.Console;class X{static void Main(){for(int c,k=7;;k=(3*k-~c)%7-33/~c,C.Write((char)c))c=k<1?10:C.Read();}}