AtCoder Beginner Contest 112
A
Programming Education
AtCoder
⌀ 0
原题
←B →
翻译中…

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$.

翻译中…

样例

Input #1
1
Output #1
Hello World
As $N=1$, Takahashi is one year old. Thus, we should print `Hello World`.
Input #2
2
3
5
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$.
题目信息
题号
abc112_a
时间限制
2 s
内存限制
1024 MB

题面与样例版权归 AtCoder 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。