#!/usr/bin/env python
# encoding: utf-8
"""
amazes.py

remco@q42.nl
"""

from sys import stdin,stdout,stderr

def log(s):
  print >>stderr, s
  stderr.flush()
  
def turns():
  while True:
    turn_info = []
    
    for i in range(5):
      line = stdin.readline()
      turn_info.append(line.replace('\n',''))
      
    yield turn_info

def move(turn_info):
  return "T"
      
def main():
  for turn_info in turns():
    log(turn_info)
    m = move(turn_info)
    log(m)
    print m
    stdout.flush()

if __name__ == '__main__':
  main()


syntax highlighted by Code2HTML, v. 0.9.1