Untitled

Organizers of this contest were busy preparing tasks and they have accidentally lost the problem statement of this task. They have also lost the name of it.

However, there are few inputs available, and you should be able to reconstruct full solution based on those. Good luck!

Input Output
uxp gpvs tjy 48
gjwf afsp gjwf 0
pof uxp uisff 6