A - Programming Education Editorial /

Time Limit: 2 sec / Memory Limit: 1024 MB

配点: 100

問題文

2020 年, AtCoder 社は年商 10 億円を超え, プログラミング教育にも手を出すようになった.
ある日行われたテストでは, 1 才児は Hello World を出力するプログラムを, 2 才児は整数 A, B を入力して A+B を出力するプログラムを書かなければならない.
高橋君はこのテストを受けているが, 突然自分が何才なのかが分からなくなってしまった.
そこで, 最初に自分の年齢 N (N1 または 2) を入力し, N=1 ならば Hello World と出力し, N=2 ならば A, B を入力して A+B を出力するプログラムを作ることにした.
高橋君に代わって, このようなプログラムを作りなさい.

制約

  • N1 または 2
  • A1 以上 9 以下の整数
  • B1 以上 9 以下の整数

入力

入力は以下の 2 つのうちいずれかの形式で標準入力から与えられる.

1
2
A
B

出力

N=1 のとき, Hello World と出力し, N=2 のとき, A+B を出力しなさい.


入力例 1

1

出力例 1

Hello World

N=1 なので, 高橋君は 1 才である. したがって, Hello World を出力する.


入力例 2

2
3
5

出力例 2

8

N=2 なので, 高橋君は 2 才である. A=3, B=5 なので, A+B である 8 を出力する.

Score: 100 points

Problem Statement

In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education.
One day, there was an exam where a one-year-old child must write a program that prints Hello World, and a two-year-old child must write a program that receives integers A, B and prints A+B.
Takahashi, who is taking this exam, suddenly forgets his age.
He decides to write a program that first receives his age N (1 or 2) as input, then prints Hello World if N=1, and additionally receives integers A, B and prints A+B if N=2.
Write this program for him.

Constraints

  • N is 1 or 2.
  • A is an integer between 1 and 9 (inclusive).
  • B is an integer between 1 and 9 (inclusive).

Input

Input is given from Standard Input in one of the following formats:

1
2
A
B

Output

If N=1, print Hello World; if N=2, print A+B.


Sample Input 1

1

Sample Output 1

Hello World

As N=1, Takahashi is one year old. Thus, we should print Hello World.


Sample Input 2

2
3
5

Sample Output 2

8

As N=2, Takahashi is two years old. Thus, we should print A+B, which is 8 since A=3 and B=5.