#include <bits/stdc++.h>

using namespace std;
using ll = long long;
using pii = pair<int, int>;

int main() {
  cin.tie(0);
  ios_base::sync_with_stdio(false);
  cout << fixed << setprecision(10);
  
  int a[5];
  char c;
  while (cin >> a[0]) {
    for (int i = 1; i < 5; i++) {
      cin >> c >> a[i];
    }
    sort(a, a + 5);
    map<int, int> mp;
    for (int i = 0; i < 5; i++) {
      mp[a[i]]++;
    }
    int cnt = 0;
    for (auto i : mp) cnt = max(cnt, i.second);
    if (mp.size() == 2 && cnt == 4) {
      cout << "four card" << endl;
    } else if (mp.size() == 2 && cnt == 3) {
      cout << "full house" << endl;
    } else if (mp.size() == 3 && cnt == 3) {
      cout << "three card" << endl;
    } else if (mp.size() == 3 && cnt == 2) {
      cout << "two pair" << endl;
    } else if (mp.size() == 4) {
      cout << "one pair" << endl;
    } else {
      bool flag = true;
      for (int i = 1; i + 1 < 5; i++) {
        flag &= a[i + 1] - a[i] == 1;
      }
      if (flag && ((a[0] == 1 && a[1] == 10) || (a[1] - a[0] == 1))) {
        cout << "straight" << endl;
      } else {
        cout << "null" << endl;
      }
    }
  }

  return 0;
}
