import std.stdio;void main(){int[9]c;for(int a,i;putchar(a=c[++i%51]|=getchar()|a&1)%9;){}}