Feedback | If you notice incorrect translations in Contester, please let author know.
|
|
Time limit 2000/4000/4000/4000 ms. Memory limit 65000/65000/65000/65000 Kb. Автор: Фёдор Меньшиков, ВГПУ.
There are given 5 are integers. Among them:
If there are 5 same integers, then print
"Impossible" ,
otherwise if there are 4 same integer, then print
"Four of a Kind" ,
otherwise if there are 3 by 2, then print
"Full House" ,
otherwise if the integers are consecutive (sorting not important),
then print "Straight" ,
otherwise if there are 3 same integers, print
"Three of a Kind" ,
otherwise if there are 2 by 2 by 1, then output
"Two Pairs" ,
otherwise if there are 2 same integers, then output
"One Pair" ,
otherwise print "Nothing" .
Input:
The first line contains five numbers separated by a space.
Output:
Displayed one line - the result of analysis.
Restrictions:
All the numbers from 1 to 13 inclusive.
Input 1
|
Input 2
|
Input 3
|
Input 4
|
Input 5
|
1 3 9 3 2
|
1 5 5 4 4
|
1 5 2 4 3
|
10 11 12 13 1
|
2 2 2 5 5
|
Output 1
|
Output 2
|
Output 3
|
Output 4
|
Output 5
|
One Pair
|
Two Pairs
|
Straight
|
Nothing
|
Full House
|
Для отправки решений необходимо выполнить вход.
|