a=open('../fd/0').read().split() t='' c=118 while a: if len(set(a[-1]))>1:a=zip(*a);c^=72 t=chr(c)+a.pop()[0]+t print t[1:]