A - Nine or Nein
解説
/
/
実行時間制限: 2 sec / メモリ制限: 1024 MiB
配点 : 100 点
問題文
正の整数 A,B が与えられます。
以下の値のうち少なくとも 1 つが 9 に等しい場合は Nine を、そうでない場合は Nein を出力してください。
- A + B
- A - B
- A \times B
- A \div B
制約
- 1 \leq A \leq 100
- 1 \leq B \leq 100
- 入力される値はすべて整数
入力
入力は以下の形式で標準入力から与えられる。
A B
出力
答えを出力せよ。
入力例 1
16 7
出力例 1
Nine
16 - 7 = 9 なので、Nine を出力します。
入力例 2
66 7
出力例 2
Nein
以下のどの値も 9 に等しくないので、Nein を出力します。
- 66 + 7 = 73
- 66 - 7 = 59
- 66 \times 7 = 462
- 66 \div 7 = \frac{66}{7}
入力例 3
9 1
出力例 3
Nine
入力例 4
9 9
出力例 4
Nein
Score : 100 points
Problem Statement
You are given positive integers A and B.
If at least one of the following values is equal to 9, output Nine; otherwise, output Nein.
- A + B
- A - B
- A \times B
- A \div B
Constraints
- 1 \leq A \leq 100
- 1 \leq B \leq 100
- All input values are integers.
Input
The input is given from Standard Input in the following format:
A B
Output
Output the answer.
Sample Input 1
16 7
Sample Output 1
Nine
Since 16 - 7 = 9, output Nine.
Sample Input 2
66 7
Sample Output 2
Nein
None of the following values is equal to 9, so output Nein.
- 66 + 7 = 73
- 66 - 7 = 59
- 66 \times 7 = 462
- 66 \div 7 = \frac{66}{7}
Sample Input 3
9 1
Sample Output 3
Nine
Sample Input 4
9 9
Sample Output 4
Nein