ABC089B - Hina Arare
#include <iostream> using namespace std; #define REP(i, n) for (int i = 0; i < (n); ++i) int main(void) { int n; char s; bool four_flg = false; cin.tie(0); ios::sync_with_stdio(false); cin >> n; REP(i, n) { cin >> s; if (s == 'Y') { four_flg = true; } } cout << (four_flg? "Four" : "Three") << "\n"; return 0; }