Go: package main

import (
	"bufio"
	"os"
	"strings"
	"strconv"
	"sort"
	"fmt"
)

var scanner = bufio.NewScanner(os.Stdin)

func main() {
	for scanner.Scan() {
		input := strings.Split(scanner.Text(), ",")
		cards := make([]int, 5)
		for i :=range input {
			cards[i], _ = strconv.Atoi(input[i])
		}
		sort.Sort(sort.IntSlice(cards))
		if cards[0] == cards[1] && cards[2] == cards[3] && cards[2] == cards[1] {
			fmt.Println("four card")
		} else if cards[1] == cards[2] && cards[3] == cards[4] && cards[3] == cards[2]{
			fmt.Println("four card")
		} else if cards[0] == cards[1] && cards[1] == cards[2] && cards[3] == cards[4] {
			fmt.Println("full house")
		} else if cards[0] == cards[1] && cards[2] == cards[3] && cards[3] == cards[4] {
			fmt.Println("full house")
		} else if cards[0] == 1 && cards[1] == 10 && cards[2] == 11 && cards[3] == 12 && cards[4] == 13 {
			fmt.Println("straight")
		} else if cards[0]+1 == cards[1] && cards[1]+1 == cards[2] && cards[2]+1 == cards[3] && cards[3]+1 == cards[4] {
			fmt.Println("straight")
		} else if (cards[0] == cards[1] && cards[1] == cards[2]) || (cards[1] == cards[2] && cards[2] == cards[3]) || (cards[2] == cards[3] && cards[3] == cards[4]) {
			fmt.Println("three card")
		} else if ((cards[0] == cards[1]) && ((cards[2] == cards[3]) || (cards[3] == cards[4]))) || ((cards[1] == cards[2]) && (cards[3] == cards[4])) {
			fmt.Println("two pair")
		} else if cards[0] == cards[1] || cards[1] == cards[2] || cards[2] == cards[3] || cards[3] == cards[4] {
			fmt.Println("one pair")
		} else {
			fmt.Println("null")
		}
	}
}

Python: from collections import Counter

def is_strait(_cnt):
    f = 0
    for i in range(1, 14):
        if _cnt[(i % 13) + 1] == 1:
            f += 1
            if f == 5:
                return True
        elif f > 0 or _cnt[(i % 13) + 1] > 1:
            return False
    return False

try:
    while 1:
        cnt = Counter(map(int,input().split(',')))
        mc = cnt.most_common(2)
        if mc[0][1] == 4:
            print('four card')
        elif mc[0][1] == 3 and mc[1][1] == 2:
            print('full house')
        elif mc[0][1] == 3:
            print('three card')
        elif mc[0][1] == mc[1][1] == 2:
            print('two pair')
        elif mc[0][1] == 2:
            print('one pair')
        elif is_strait(cnt):
            print('straight')
        else:
            print('null')
except:
    pass

Python: import sys
for e in sys.stdin:
 c=[list(map(int,e.split(','))).count(i+1)for i in range(13)];d=c+c
 print('four card'if 4 in c else'full house'if 2 in c else'three card'if 3 in c else'two pair'if c.count(2)-1 else'one pair'if 2 in c else'straight'if sum([1]*5==d[i:i+5]for i in range(10)) else'null')

Python: def function(a,b,c,d,e):
	A=[a,b,c,d,e]
	A.sort()
	#4card
	if A[0]==A[1]==A[2]==A[3] or A[1]==A[2]==A[3]==A[4]:
		print("four card")
	#Full house
	elif (A[0]==A[1] and A[2]==A[3]==A[4]) or (A[0]==A[1]==A[2] and A[3]==A[4]):
		print("full house")
	#straight A?????????
	elif A[0]==1 and A[1]==10 and A[2]==11 and A[3]==12 and A[4]==13:
		print("straight")
	#straight A???????????????
	elif A[0]==A[1]-1==A[2]-2==A[3]-3==A[4]-4:
		print("straight")
	#threee
	elif A[0]==A[1]==A[2] or A[1]==A[2]==A[3] or A[2]==A[3]==A[4]:
		print("three card")
	elif (A[0]==A[1] and A[2]==A[3]) or (A[1]==A[2] and A[3]==A[4]):
		print("two pair")
	elif A[0]==A[1] or A[1]==A[2] or A[2]==A[3] or A[3]==A[4]:
		print("one pair")
	else:
		print("null")

while True:
	try:
		a,b,c,d,e=map(float,input().split(','))
		function(a,b,c,d,e)
	except EOFError:
		break

Python: while(1):
    try:
        a = [int(i) for i in input().split(",")]
        a.sort()
        pairs = []
        for i in set(a):
            count = 0
            for j in a:
                if j == i:
                    count += 1
            pairs.append(count)
        if 5 in pairs:
            print("full house")
        elif 4 in pairs:
            print("four card")
        elif 3 in pairs and 2 in pairs:
            print("full house")
        elif 3 in pairs:
            print("three card")
        elif pairs.count(2) == 2:
            print("two pair")
        elif 2 in pairs:
            print("one pair")
        elif [a[i+1] - a[i] for i in range(4)] == [1 for i in range(4)] or a == [1,10,11,12,13]:
            print("straight")
        else:
            print("null")
    except EOFError:
        break

Python: from collections import Counter

def checkStraint(hand):
    hand=sorted(hand)
    if set(hand)==set([10,11,12,13,1]):
        return True
    for i in range(5):
        if hand[0]+i==hand[i]:
            continue
        else:
            return False
    return True

while True:
    try:
        hand=[int(i) for i in input().split(",")]
        hand=sorted(hand)
        c=Counter(hand)
        c=sorted(dict(c).items(),key=lambda w:w[1],reverse=True)
        if c[0][1]==4:
            print("four card")
            continue
        elif c[0][1]==3 and c[1][1]==2:
            print("full house")
            continue

        elif checkStraint(hand):
            print("straight")
            continue
        elif c[0][1]==3:
            print("three card")
            continue
        elif c[0][1]==2 and c[1][1]==2:
            print("two pair")
            continue
        elif c[0][1]==2:
            print("one pair")
            continue
        else:
            print("null")

    except EOFError:
        break

Python: from collections import Counter
import sys

for line in sys.stdin:
    card = sorted(list(map(int, line.split(','))))
    pair = Counter(card).most_common()

    if pair[0][1] == 4:
        print('four card')
    elif pair[0][1] == 3 and pair[1][1] == 2:
        print('full house')
    elif pair[0][1] == 3:
        print('three card')
    elif pair[0][1] == pair[1][1] == 2:
        print('two pair')
    elif pair[0][1] == 2:
        print('one pair')
    elif [x - card[0] for x in card] == [0,1,2,3,4] or card == [1,10,11,12,13]:
        print('straight')
    else:
        print('null')

Python: 
def chk_all(A):
	s_A = set(A)
	B = list(s_A)
	leng = len(s_A)
	if leng == 2:
		if A.count(B[0]) == 4 or A.count(B[1]) == 4:
			return "four card"
		else:
			return "full house"
	elif leng == 3:
		if A.count(B[0]) == 3 or A.count(B[1]) == 3 or A.count(B[2]) == 3:
			return "three card"
		else:
			return "two pair"
	elif leng == 4:
		return "one pair"
	else:
		A = sorted(A)

		if A[0] == 1 and A[1] == 10 and A[2] == 11 and A[3] == 12 and A[4] == 13:
			return "straight"

		for i in range(1,5):
			if A[i] - A[i-1] != 1:
				return "null"

		return "straight"

	return "null"

if __name__ == '__main__':

	while True:
		try:
			A = list(map(int,input().split(",")))
			print(chk_all(A))

		except EOFError:
			break

Python: while True : 
    try :
        temp = [int(_) for _ in input().split(',')]
        length = len(set(temp))
        
        if length == 2 :
            if temp.count(temp[0]) == 1 or temp.count(temp[0]) == 4 : print('four card')
            else : print('full house')
        elif length == 3 :
            for _ in set(temp) :
                if temp.count(_) == 2 :
                    print('two pair')
                    break
                elif temp.count(_) == 3 :
                    print('three card')
                    break
        elif length == 4 : print('one pair')
        else : 
            temp.sort(reverse = True)
            test = [(temp[0] - _) for _ in range(5)]
            if temp == test or temp == [13, 12, 11, 10, 1] : print('straight')
            else : print('null')
    except :
        break