12986 - Poker Straight   

Description

Poker Straight

 

Straight

 

 

 

A Straight is one of the good poker hands that can be very valuable. It is made out of five cards of sequential ranking. The suits of the cards are not important when making a standard Straight.

What does a Straight look like?

A♥, K♦, Q♠, J♦, 10♣

Q♦, J♣, 10♥, 9♥, 8♠

7♥, 6♣, 5♥, 4♦, 3♣

 

Write a program to input five integers in the range [1,13] and determine if they are consecutive.  Hint: Define an array of size 13 to count the frequency of each value in [1,13].

Input

n n n n n

such that, 1 < n ≤ 13.

Output

"a straight\n" or "not a straight\n"

Sample Input  Download

Sample Output  Download

Tags




Discuss