#include <cstdio>#include <cstring>#include <string>#include <algorithm>using namespace std;char pu[30];int map[5][10];int tonum(char c){switch(c){case 'm': return 0;case 'p': return 1;case 's': return 2;case 'z': return 3;}}bool judgeDouble(){for(int i = 0; i < 4; i++){for(int j = 0; j < strlen(pu) / 2; j++){if(map[i][j] && map[i][j] != 2)return false;}}return true;}bool judgeSigle(){bool ok = false;for(int i = 0; i < 3; i++){if(map[i][1] < 1 || map[i][9] < 1)return false;else if(map[i][1] == 2 || map[i][9] == 2)ok = true;}for(int i = 1; i <= 7; i++){if(map[3][i] < 1)return false;else{if(map[3][i] == 2)ok = true;}}return ok;}int main(){while(~scanf("%s", pu)){memset(map, 0, sizeof(map));for(int i = 0; i < strlen(pu); i++){if(i % 2 == 1){map[tonum(pu[i])][(int)pu[i - 1] - '0'] ++;}}if(judgeDouble())puts("Seven Pairs");else if(judgeSigle())puts("Thirteen Orphans");elseputs("Neither!");}return 0;}


