Time Limit: 2 sec / Memory Limit: 1024 MB
問題文
N 個の文字列の組 S = (S_1,S_2,\ldots,S_N) が与えられます。
各 S_i は Perfect
, Great
, Good
, Bad
, Miss
のいずれかです。
S が Perfect
のみからなるならば All Perfect
を、
そうでなく Perfect
と Great
のみからなるならば Full Combo
を、
これらの条件をいずれも満たさないならば Failed
を出力してください。
制約
- 1\leq N \leq 100
- N は整数
- S_i は
Perfect
,Great
,Good
,Bad
,Miss
のいずれか
入力
入力は以下の形式で標準入力から与えられる。
N S_1 S_2 \vdots S_N
出力
答えを出力せよ。
入力例 1
3 Perfect Great Perfect
出力例 1
Full Combo
S は Perfect
のみからなるわけではありませんが、Perfect
と Great
のみからなります。
よって Full Combo
を出力します。
入力例 2
1 Perfect
出力例 2
All Perfect
入力例 3
5 Bad Miss Perfect Great Good
出力例 3
Failed
Problem Statement
You are given a tuple of N strings: S = (S_1,S_2,\ldots,S_N).
Each S_i is one of Perfect
, Great
, Good
, Bad
, and Miss
.
If S only contains Perfect
, print All Perfect
;
otherwise, if it consists of Perfect
and Great
, print Full Combo
;
otherwise, print Failed
.
Constraints
- 1\leq N \leq 100
- N is an integer.
- S_i is one of
Perfect
,Great
,Good
,Bad
, andMiss
.
Input
The input is given from Standard Input in the following format:
N S_1 S_2 \vdots S_N
Output
Print the answer.
Sample Input 1
3 Perfect Great Perfect
Sample Output 1
Full Combo
S does not consist only of Perfect
, but it consists of Perfect
and Great
.
Thus, Full Combo
should be printed.
Sample Input 2
1 Perfect
Sample Output 2
All Perfect
Sample Input 3
5 Bad Miss Perfect Great Good
Sample Output 3
Failed