ho = '\n.apmor ippo tgnal kkip reksle gokssbiR kirE\n'
mo = '\n.nnem nneM\n.lifomohrepus re nah idrof re teD'
print((ho[::-1]+mo[::-1])*4**4)