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 sys


def checkPairs(cards):
  result = {}
  for card in cards:
    if cards.count(card) >= 2:
      result.update({card: cards.count(card)})
  keysNum = len(result.keys())
  values = list(result.values())
  if keysNum == 0:
    return "null"
  elif keysNum == 2:
    if values.count(3) > 0:
      return "full house"
    else:
      return "two pair"
  else:
    if values.count(4) > 0:
      return "four card"
    elif values.count(3) > 0:
      return "three card"
    else:
      return "one pair"


def checkStraight(cards):
  if cards.count(1) > 0:
    if cards[1] == 10 and cards[2] == 11 and cards[3] == 12 and cards[4] == 13:
      return True
  if cards[0] == cards[1] - 1 and cards[1] == cards[2] - 1 and cards[2] == cards[3] - 1 and cards[3] == cards[4] - 1:
    return True
  else:
    return False


for line in sys.stdin:
  try:
    cards = [int(i) for i in line.split(',')]
    cards.sort()
    result = checkPairs(cards)
    if result == "full house" or result == "four card":
      print(result)
    else:
      print("straight" if checkStraight(cards) else result)
  except:
    break

Python: while True:
    try:
        Size = []
        Card_Lis = list(map(int,input().split(",")))
        Card_Lis.sort()
        
        
        for tag in sorted(set(Card_Lis), key=Card_Lis.index):
            Size.append(Card_Lis.count(tag))
       
        Size.sort()

        if max(Size) == 4:
            print("four card")
        elif Size == [2,3]:
            print("full house")
        elif max(Size) == 3:
            print("three card")
        elif Size == [1,2,2]:
            print("two pair")
        elif max(Size) == 2:
            print("one pair")
        elif max(Size) == 1:
            if Card_Lis[0] == 1:
                if Card_Lis == [1,2,3,4,5] or Card_Lis == [1,10,11,12,13]:
                    print("straight")
                else:
                    print("null")
            elif Card_Lis[0] + 4 == Card_Lis[4]:
                    print("straight")
            else:
                print("null")
            
    except EOFError:
        break

Python: try:
    while True:
        a: list = sorted(map(int, input().split(",")))

        if a.count(a[0]) == 4 or a.count(a[1]) == 4:
            print("four card")
        elif len(set(a)) == 2:
            print("full house")
        elif (a[0]+4 == a[1]+3 == a[2]+2 == a[3]+1 == a[4] or
              a == [1, 10, 11, 12, 13]):
            print("straight")
        elif max(a.count(a[0]), a.count(a[1]), a.count(a[2])) == 3:
            print("three card")
        elif len(set(a)) == 3:
            print("two pair")
        elif len(set(a)) == 4:
            print("one pair")
        else:
            print("null")

except EOFError:
    exit()

Python: while 1:
    try:n=sorted(map(int,input().split(',')))
    except:break
    c=sum(n.count(x) for x in n)
    if c==17:c=3
    elif c in [13,11,9,7]:c-=5
    elif max(n)-min(n)==4 or (n[1] == 10 and n[0]==1):c=1
    else:c=0
    print(['null','straight','one pair','four card','two pair','','three card','','full house'][c])

Python: import sys
from collections import Counter

straight = [list(range(i, i+5)) for i in range(1, 10)] + [[1,10,11,12,13]]

def hantei(hand):
	l = sorted(Counter(hand).values(), reverse=True)
	if l[0] == 4: return "four card"
	if l[0] == 3 and l[1] == 2: return "full house"
	if hand in straight: return "straight"
	if l[0] == 3: return "three card"
	if l[0] == l[1] == 2: return "two pair"
	if l[0] == 2: return "one pair"
	return "null"

for line in sys.stdin:
	hand = sorted(map(int, line.split(',')))
	print(hantei(hand))

Python: import sys
f = sys.stdin

for line in f:
    c = sorted(list(map(int, line.strip().split(','))))
    if c[0] == c[3] or c[1] == c[4]:
        print('four card')
    elif (c[0] == c[2] and c[3] == c[4]) or (c[0] == c[1] and c[2] == c[4]):
        print('full house')
    elif c[0] == c[2] or c[1] == c[3] or c[2] == c[4]:
        print('three card')
    else:
        cnt = 0
        for i in range(4):
            if c[i] == c[i + 1]:
                cnt += 1
        if cnt == 2:
            print('two pair')
        elif cnt == 1:
            print('one pair')
        elif c == [1,10,11,12,13] or c[0] == c[1] - 1 == c[2] - 2 == c[3] - 3 == c[4] - 4:
            print('straight')
        else:
            print('null')

Python: from collections import Counter

def is_strait(_cnt):
    f = 0
    for i in range(14):
        if _cnt[(i % 13) + 1] == 1:
            f += 1
            if f == 5:
                return True
        else:
            f = 0
    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:
 e=list(map(int,e.split(',')))
 c=[e.count(i+1)for i in range(13)];d=c+c
 if 4 in c:s='four card'
 elif 3 in c:
  if 2 in c:s='full house'
  else:s='three card'
 elif 2 in c:
  if c.count(2)-1:s='two pair'
  else:s='one pair'
 elif sum([1]*5==d[i:i+5]for i in range(10)):s='straight'
 else:s='null'
 print(s)

Python: #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import (division, absolute_import, print_function,
                        unicode_literals)

from sys import stdin
from collections import Counter


for line in stdin:
    L = sorted([int(s) for s in line.split(',')])
    cnt = Counter(L)
    length, num = len(cnt), cnt.most_common(1)[0][1]
    if length == 4 and num == 2:
        print('one pair')
    elif length == 3 and num == 2:
        print('two pair')
    elif length == 3 and num == 3:
        print('three card')
    elif length == 2 and num == 3:
        print('full house')
    elif length == 2 and num == 4:
        print('four card')
    elif L[0] == L[1]-1 == L[2]-2 == L[3]-3 == L[4]-4:
        print('straight')
    elif L[0] == 1 and L[1]-1 == L[2]-2 == L[3]-3 == L[4]-4:
        print('straight')
    else:
        print('null')