#include <algorithm>
#include <deque>
#include <iostream>

using namespace std;

int main() {

	int a, ans;
	deque<int> h;

	while(1) {
		for(int i=0; i<5; i++) {
			cin >> a;
			h.push_back(a);
		}
		sort(h.begin(), h.end());
		while(1) {
			if(h[0]==h[1]) {
				if(h[1]==h[2]) {
					if(h[2]==h[3]) {
						ans=7;
						break;
					}
					if(h[3]==h[4]) {
						ans=6;
						break;
					}
					ans=4;
					break;
				}
				if(h[2]==h[3]&&h[3]==h[4]) {
					ans=6;
					break;
				}
				if(h[2]==h[3]||h[3]==h[4]||h[4]==h[2]) {
					ans=3;
					break;
				}
				ans=2;
				break;
			}
			if(h[1]==h[2]&&h[2]==h[3]&&h[3]==h[4]) {
				ans=7;
				break;
			}
			if(h[4]==h[3]+1&&h[3]==h[2]+1&&h[2]==h[1]+1&&h[1]==h[0]+1) {
				ans=5;
				break;
			}
			if(h[0]==1&&h[4]==h[3]+1&&h[3]==h[2]+1&&h[2]==h[1]+1) {
				ans=5;
				break;
			}
			if(h[1]==h[2]&&h[2]==h[3]||h[2]==h[3]&&h[3]==h[4]) {
				ans=4;
				break;
			}
			if(h[2]==h[3]&&h[4]==h[5]) {
				ans=3;
				break;
			}
			if(h[1]==h[2]||h[1]==h[3]||h[1]==h[4]||h[2]==h[3]||h[2]==h[4]||h[3]==h[4]) {
				ans=2;
				break;
			}
			ans=1;
			break;
		}
		h.clear();
		switch(ans) {
			case 1:
				cout << "null" << endl;
				break;
			case 2:
				cout << "one pair" << endl;
				break;
			case 3:
				cout << "two pair" << endl;
				break;
			case 4:
				cout << "three cards" << endl;
				break;
			case 5:
				cout << "straight" << endl;
				break;
			case 6:
				cout << "full house" << endl;
				break;
			case 7:
				cout << "four cards" << endl;
				break;
		}
	}

	return 0;

}