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: import collections

while 1:
    try:
        hand = list(map(int, input().split(",")))
    except:
        break

    chand = collections.Counter(hand)
    count = chand.most_common()

    straight = [1, 10, 11, 12, 13]

    if count[0][1] == 4:
        print("four card")
        continue
    elif count[0][1] == 3 and count[1][1] == 2:
        print("full house")
        continue
    else:
        hand.sort()
        if hand == straight:
            print("straight")
            continue
        else:
            check = True
            for i in range(len(hand)-1):
                if hand[i+1] - hand[i] != 1:
                    check = False
            if check:
                print("straight")
                continue
    if count[0][1] == 3:
        print("three card")
        continue
    elif count[0][1] == count[1][1] == 2:
        print("two pair")
        continue
    elif count[0][1] == 2:
        print("one pair")
        continue
    else:
        print("null")

Python: straight = '12345678910111213110111213'

while True:
    try:
        lst = list(map(int, input().split(',')))
        lst.sort()
        clst = []

        for i in lst:
            clst.append(lst.count(i))

        if clst.count(4) == 4:
            print('four card')

        elif clst.count(3) == 3:
            if clst.count(2) == 2:
                print('full house')
            else:
                print('three card')
        elif clst.count(2) == 4:
            print('two pair')
        elif clst.count(2) == 2:
            print('one pair')
        else:
            s = str(lst[0]) + str(lst[1]) + str(lst[2]) + str(lst[3]) + str(lst[4])
            if s in straight:
                print('straight')
            else:
                print('null')
    
    except EOFError:
        break

Python: def straight(cards):
    if cards==[1,10,11,12,13]:
        return 1
    else:
        for i in range(1,5):
           if cards[i] != cards[i-1] + 1 :
               return 0
        return 1       

while True:
    try:
        cards = sorted(list(map(int, input().split(','))))
    except:
        break
    if cards.count(cards[1])==4:
        print('four card')
        continue
    elif len(set(cards))==2:
        print('full house')
        continue
    elif straight(cards)==1:
        print('straight')
        continue
    elif cards.count(cards[2])==3:
        print('three card')
        continue
    elif len(set(cards))==3:
        print('two pair')
        continue
    elif len(set(cards))==4:
        print('one pair')
        continue
    else:
        print('null')
        continue

Python: import collections

def solution1(kard):
    #強いものから順に探していく
    if fourcard(kard):
        print("four card")
    elif fullhouse(kard):
        print("full house")
    elif straight(kard):
        print("straight")
    elif threecard(kard):
        print("three card")
    elif twopair(kard):
        print("two pair")
    elif onepair(kard):
        print("one pair")
    else:
        print("null")

def fourcard(kard):
    if kard.count(kard[0])==4 or kard.count(kard[1])==4:
        return True
    else:
        return False

def fullhouse(kard):
    list=collections.Counter(kard)
    if len(list)==2:
        return True
    else:
        return False

def straight(kard):
    c=sorted(kard,reverse=True)
    if c[0]==(c[1]+1)==(c[2]+2)==(c[3]+3)==(c[4]+4) or (c[0]==(c[1]+1)==(c[2]+2)==(c[3]+3) and c[4]==1 and c[0]==13):
        return True
    else:
        return False
    

def threecard(kard):
    if kard.count(kard[0])==3 or kard.count(kard[1])==3 or kard.count(kard[2])==3:
        return True
    else:
        return False
    
def twopair(kard):
    list=collections.Counter(kard)
    if len(list)==3:
        return True
    else:
        return False

def onepair(kard):
    list=collections.Counter(kard)
    if len(list)==4:
        return True
    else:
        return False


while True:
    try:
        kard=list(map(int,input().split(",")))
    except:
        break
    solution1(kard)

Python: from collections import Counter
import sys

for t in sys.stdin:
    l=sorted(map(int,t[:-1].split(",")))
    s=False
    p1=Counter(l)
    p2=Counter(p1.values())

    if 3 in p2 and 2 in p2:
        print("full house")
    elif 2 in p2:
        if p2[2]==1:
            print("one pair")
        elif p2[2]==2:
            print("two pair")
    elif 3 in p2:
        print("three card")
    elif 4 in p2:
        print("four card")
    else:
        for i in range(1,10):
            if list(range(i,i+5))==l:
                print("straight")
                s=True
                break
        if [1,10,11,12,13]==l:
            print("straight")
            s=True
        if not s:
            print("null")

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

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

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