#!/usr/bin/python
# Python 2.7.1

TIS = raw_input()
assert len(TIS) == 20 and TIS.isdigit(), 'TIS should consist of 20 digits'

mask = 'TTTTmmTmTTTTTmTTTmTmmTTmTmTTmmTmmmqo'
program = []
j = 0
for i in mask:
	if i == 'T':
		program.append(TIS[j])
		j += 1
	else:
		program.append(i)

print ''.join(program)
