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: # -*- coding: utf-8 -*-

import sys
import os

for s in sys.stdin:
    A = list(map(int, s.split(',')))
    A.sort()
    #print(A)

    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] == A[2]) and (A[3] == A[4]):
        print('full house')
    elif (A[0] == A[1]) and (A[2] == A[3] == A[4]):
        print('full house')

    # straight
    elif A[0] == A[1] - 1 == A[2] - 2 == A[3] - 3 == A[4] - 4:
        print('straight')
    elif A[1] == 10 and A[2] == 11 and A[3] == 12 and A[4] == 13 and A[0] == 1:
        print('straight')

    # three card
    elif (A[0] == A[1] == A[2]) or (A[1] == A[2] == A[3]) or (A[2] == A[3] == A[4]):
        print('three card')

    # two pair
    elif ((A[0] == A[1]) and (A[2] == A[3])) or ((A[0] == A[1]) and (A[3] == A[4])) or ((A[1] == A[2]) and (A[3] == A[4])):
        print('two pair')

    # one 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')

Python: import sys
readlines = sys.stdin.readlines
write = sys.stdout.write
def solve(C):
    d = {}
    for c in C:
        d[c] = d.get(c, 0) + 1
    *vs, = d.values()
    vs.sort()
    if vs[-1] == 4:
        return "four card"
    if vs == [2, 3]:
        return "full house"
    c0 = C[0]
    if C == list(range(c0, c0+5)) or C == [1, 10, 11, 12, 13]:
        return "straight"
    if vs == [1, 1, 3]:
        return "three card"
    if vs == [1, 2, 2]:
        return "two pair"
    if vs == [1, 1, 1, 2]:
        return "one pair"
    return "null"

for line in readlines():
    *C, = map(int, line.split(","))
    C.sort()
    write("%s\n" % solve(C))

Python: import sys
for line in sys.stdin.readlines():
  l = [int(i) for i in line.split(',')]
  l.sort()
  n =sum([l.count(i) for i in l])
  if n == 17:
    print('four card')
  elif n == 13:
    print('full house')
  elif n == 11:
    print('three card')
  elif n == 9:
    print('two pair')
  elif n == 7:
    print('one pair')
  elif max(l)-min(l)==4 or (l[1] == 10 and l[0]==1):
    print('straight')
  else:
    print('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("threee 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: import sys
for e in sys.stdin:
 e=sorted(map(int,e.split(',')))
 print([['null','straight'][e[4]-e[0]==4 or e[0]*10==e[1]],'one pair','two pair','three card','full house',0,'four card'][sum(e.count(s)for s in e)//2-2])

Python: # Aizu Problem 0038: Poker Hand
#
import sys, math, os

# read input:
PYDEV = os.environ.get('PYDEV')
if PYDEV=="True":
    sys.stdin = open("sample-input.txt", "rt")


def is_straight(hand):
    if hand == [1, 10, 11, 12, 13]:
        return True
    m = min(hand)
    if hand == list(range(m, m + 5)):
        return True
    return False


def poker_hand(hand):
    hand = sorted(hand)
    counts = {}
    for card in hand:
        counts[card] = counts.get(card, 0) + 1
    counts = sorted(list(counts.values()))
    if counts == [1, 4]:
        return "four card"
    elif counts == [2, 3]:
        return "full house"
    elif is_straight(hand):
        return "straight"
    elif counts == [1, 1, 3]:
        return "three card"
    elif counts == [1, 2, 2]:
        return "two pair"
    elif counts == [1, 1, 1, 2]:
        return "one pair"
    else:
        return "null"


while True:
    try:
        hand = [int(_) for _ in input().split(',')]
    except EOFError:
        break
    print(poker_hand(hand))

Python: N = 13
while True:
    try:
        A = list(map(int,input().split(',')))
    except EOFError:
        break
    flag = False
    for i in range(1,N + 1):
        if A.count(i) == 4:
            flag = True
            print('four card')
            break
    if flag:
        continue
    for i in range(1,N + 1):
        for j in range(1,N + 1):
            if i == j:
                continue
            if A.count(i) == 3 and A.count(j) == 2:
                flag = True
                print('full house')
                break
        if flag:
            break
    if flag:
        continue
    for i in range(1,11):
        cnt = 0
        for j in range(0,5):
            if i + j == 14:
                cnt += A.count(1) > 0
            else:
                cnt += A.count(i + j) > 0
        if cnt == 5:
            flag = True
            print('straight')
            break
    if flag:
        continue
    for i in range(1,N + 1):
        if A.count(i) == 3:
            flag = True
            print('three card')
            break
    if flag:
        continue
    for i in range(1,N + 1):
        for j in range(1,N + 1):
            if i == j:
                continue
            if A.count(i) == 2 and A.count(j) == 2:
                flag = True
                print('two pair')
                break
        if flag:
            break
    if flag:
        continue
    for i in range(1,N + 1):
        if A.count(i) == 2:
            flag = True
            print('one pair')
            break
    if flag:
        continue
    print('null')