import strutils proc getInt: int = readLine(stdin).parseInt let T = getInt() var pre, flg = 0 for i in 0 ..< T: var now = getInt() if (now - pre).abs != 1: flg = 1 swap(now, pre) ['T', 'F'][flg].echo