var s,t:string(1999);begin repeat readln(s);t:=t+s+^j until eof;repeat write(t[2],t:1);t:=copy(t,3)until 0>0end.