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: while 1:
	try: p=sorted(list(map(int,input().split(','))))
	except: break
	if (p[0] == p[3]) or (p[1] == p[4]): 
		print('four card')
	elif p[0] == p[2] or p[1] == p[3] or p[2] == p[4]:
		print('three card')
	elif (p[0] == p[1] == p[2] and p[3] == p[4]) or (p[0] == [1] and p[2] == p[3] == p[4]):
		print('full house')
	elif (p[0] == p[1] and p[2] == p[3]) or (p[1] == p[2] and p[3] == p[4]):
		print('two pair')
	elif p[0] == p[1] or p[1] == p[2] or p[3] == p[4]:
		print('one pair')
	elif (p[0] == p[1]-1) and (p[1] == p[2]-1) and (p[2] == p[3]-1) and (p[3] == p[4]-1) and (p[4] == p[3]+1):
		print('straight')
	else:
		print('null')

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

def fullhouse(card) :
    card.sort()
    if (card[0] ==  card[1] == card[2] and card[3] == card[4]) or (card[0] == card[1] and card[2] == card[3] == card[4]) :
        return True
    else :
        return False
        
def straight(card) :
    card.sort()
    if card[0] == 1 and card[1] == 10 and card[2] == 11 and  card[3] == 12 and card[4] == 13 :
        return True
    else :
        ans = 'True'
        for i in range(4) :
            if card[i] + 1 != card[i + 1] :
                ans = False
        if ans == 'True' :
            return True
        else :
            return False

def threecard(card) :
    if card.count(card[0]) == 3 or card.count(card[1]) == 3 or card.count(card[2]) == 3 :
        return True
    else :
        return False
def twopair(card) :
    card.sort()
    if card[0] == card[1] :
        if card[2] == card[3] or card[3] == card[4]:
            return True
    elif card[1] == card[2] :
        if card[3] == card[4] :
            return True
    else :
        return False
def onepair(card) :
    card.sort()
    if card[0] == card[1] or card[1] == card[2] or card[2] == card[3] or card[3] == card[4] :
        return True
    else :
        return False


while True :
    try :
        card = list(map(int, input().split(',')))
    except EOFError :
        break
    
    if fourcard(card) :
        print('four card')
    elif fullhouse(card) :
        print('full house')
    elif straight(card) :
        print('straight')
    elif threecard(card) :
        print('three card')
    elif twopair(card) :
        print('two pair')
    elif onepair(card) :
        print('one pair')
    else :
        print('null')

Python: from collections import Counter

def is_straight(game):
    if 1 in game:
        if game == [1, 2, 3, 4, 5] or game == [1, 10, 11, 12, 13]:
            return True
        else:
            return False
    else:
        for i in range(len(game)-1):
            if game[i+1] != game[i]+1:
                return False
            return True

while True:
    try: start = input()
    except: break

    game = list(map(int, start.split(',')))
    game.sort()
    result = Counter(game)
    values, counts = zip(*result.most_common())

    if counts[0] == 2:
        if len(counts) == 4:
            print('one pair')
        else:
            print('two pair')
    elif counts[0] == 3:
        if len(counts) == 3:
            print('three card')
        else:
            print('full house')
    elif counts[0] == 4:
        print('four card')
    elif is_straight(game):
        print('straight')
    else:
        print('null')