Problem:


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



Sample input:
1


Sample output:
Hello World

Submission status: Runtime Error

Solution code:
#

array = list(map(int, input().strip().split(' ')))


N =  array[0]

T =  array[1]


#print(N)
#print(T)

if N < 1:
    sys.exit()

if N > 100:
    sys.exit()


if T < 1:
    sys.exit()

if T > 1000:
    sys.exit()



c_min = 9999


for i in range(N):
    array1 = list(map(int, input().strip().split(' ')))
    cN =  array1[0]

    tN =  array1[1]

    if cN < 1:
        sys.exit()

    if cN > 1000:
        sys.exit()

    if tN < 1:
        sys.exit()

    if tN > 1000:
        sys.exit()
    
    if tN <= T:
        if c_min > cN:

            c_min = cN

if c_min == 0:
    print("TLE")

else:
    print(c_min)

Submission status: Runtime Error

Solution code:
I=input()
if I==1:
 print('hello world')
else:
  A=input()
  B=input()
  print(int(A)+int(B))

Submission status: Runtime Error

Solution code:
n = int(input())
a = [list(map(int, input().split())) for i in range(n)]
for i in range(101):
    for j in range(101):
        H = []
        check = []
        for k in range(n):
            x = a[k][0]
            y = a[k][1]
            h = a[k][2]
            if h ==  0:
                check.append((x, y))
            else:
                H.append(h + abs(x-i) + abs(y-j))
                if len(set(H)) > 1:
                    break
            if k == n-1:
                state = False
                for s,t in check:
                    if H[0] - abs(s-i) - abs(t-j) > 0:
                        state = True
                        break
                if state:
                    break
                print(i, j, H[0])
                exit()

Submission status: Runtime Error

Solution code:
#

array = list(map(int, input().strip().split(' ')))


N =  array[0]

T =  array[1]


#print(N)
#print(T)

if N < 1:
    quit()

if N > 100:
    quit()


if T < 1:
    quit()

if T > 1000:
    quit()




c_min = 9999


for i in range(N):
    array1 = list(map(int, input().strip().split(' ')))
    cN =  array1[0]

    tN =  array1[1]

    if cN < 1:
        quit()

    if cN > 1000:
        quit()

    if tN < 1:
        quit()

    if tN > 1000:
        quit()

    if tN <= T:
        if c_min > cN:

            c_min = cN

if c_min == 0:
    print("TLE")

else:
    print(c_min)

Submission status: Runtime Error

Solution code:
N, T = map(int, input().split())
cage,cage2=[],[]
for i in range(N):
  c, t = map(int, input().split())
  if t<=T:
	cage.append(c)
if cage is None:
  print("TLE")
else:
  print(min(cage))

Submission status: Runtime Error

Solution code:
N, T = map(int, input().split())
cage,cage2=[],[]
for i in range(N):
  c, t = map(int, input().split())
  if t<=T:
	cage.append(c)
if cage==None:
  print("TLE")
else:
  print(min(cage))

Submission status: Runtime Error

Solution code:
I=input()
if I==1:
 print('hello world')
else:
  A=Input()
  B=Input()
  print(A+B)

Submission status: Runtime Error

Solution code:
n, T = map(int, input().split())
a = set()
min_ = 1001
for i in range(n):
    c, t = map(int, input().split())
    a.add(c)
    if t <= T and c <= min_:
        min_ = c
    a.remove(c)
if min_ == 1001:
    print('TLE')
else:
    print(min_)

Submission status: Runtime Error

Solution code:
N,T=map(int, input().split())
ct=[]
Nminimum=int(101)
output=str('TLE')
for i in range(N):
    ct.append(list(map(int, input().split())))
for i in range(N):
    if ct[i][1]<=T:
        if ct[i][0]<Nminimum:
            Nminimum=ct[i][0]
            output=Nminimum
print(output)

Submission status: Runtime Error

Solution code:
n, T = map(int, input().split())
a = set()
min_ = 1000
for i in range(n):
    c, t = map(int, input().split())
    a.add(c)
    if t <= T and a[i] <= min_:
        min_ = a[i]
    a.remove(c)
if min_ == 1000:
    print('TLE')
else:
    print(min_)

Submission status: Runtime Error

Solution code:
n,a,b=map(int,[input() for i in range(3)])
print('Hello World' if n==1 else a+b)

Submission status: Runtime Error

Solution code:
n = int(raw_input())
pts = [map(int, raw_input().split()) for i in xrange(n)]

for i in xrange(105):
    for j in xrange(105):
        H = -7
        ok = True
        for k in pts:
            if max(H - abs(k[0] - i) - abs(k[1] - j), 0) == k[2]:
                continue
            elif H < 1:
                H = k[2] + abs(k[0] - i) + abs(k[1] - j)
            else:
                ok = False
        if ok:
            print i, j, max(H, 1)
            exit(0)

Submission status: Runtime Error

Solution code:
n,a,b=map(int,input().split())
print('Hello World' if n==1 else a+b)

Submission status: Runtime Error

Solution code:
N = int(input())
A = int(input())
B = int(input())

if N==1:
  print('Hello World')

else:
  print(A+B)

Submission status: Runtime Error

Solution code:
N = input()

if N  == 1:
  print("Hello World")
else:
  a = input()
  b = input()
  print(a + b)

Submission status: Runtime Error

Solution code:
n, T = map(int, input().split())
a = []
min_ = 1001
for i in range(n):
    c, t = map(int, input().split())
    a.append(c)
    if t <= T and a[i] <= min_:
        min_ = a[i]
if min_ == 1001:
    print('TLE')
else:
    print(min_)

Submission status: Runtime Error

Solution code:
route_num, limit = map(int, input().split(' '))

costs = []
spends = []
for i in range(route_num):
    cost, spend = map(int, input().split(' '))
    costs.append(cost)
    spends.append(spend)

min_cost = 2000
for cost, spend in zip(costs, spends):
    if spend <= limit and cost < min_cost:
        min_cost = cost

if min_cost == 2000:
    print("TLE")

else:
    print(min_cost)

Submission status: Runtime Error

Solution code:
n = int(input())
A = int(input())
B = int(input())

if n == 1:
    print("Hello World")
if n == 2:
    print(A + B)

Submission status: Runtime Error

Solution code:
N = input()
if N == 1:
  print("Hello World")
else:
  a = int(input())
  b = int(input())
  sum = int(a+b)
  print(sum)

Submission status: Runtime Error

Solution code:
n = int(input())
a = int(input())
b = int(input())
 
if n == 1:
    print("Hello World")
    exit()
else:
    print(a + b)
    exit()

Submission status: Runtime Error

Solution code:
n,t=map(int, input().split())
l=[input().split() for i in range(n)]

k=[]

for x in range(n):
  if (int(l[x][1])<=t):
    k.append(l[x][0])
  
if (k==[]):
  print('TLE')
else:  
  print(min(k))

Submission status: Runtime Error

Solution code:
if N == 1:
  print("Hello World")
  
else N == 2:
  print(A + B)

Submission status: Runtime Error

Solution code:
N = input()
if N == 1:
  print("Hello World")
else:
  a = int(input())
  b = int(input())
  print("{}".format(int(a + b)))

Submission status: Runtime Error

Solution code:
age = input()
a = int(input())
b = (input())

if age == 1:
    print("Hello World")
else:
    print(a+b)

Submission status: Runtime Error

Solution code:
n = input()
if(n == 1):
  print "Hello World"
else:
  a, b = map(int, raw_input().split())
  print a + b

Submission status: Runtime Error

Solution code:
n, m = map(int, raw_input().split())

target = m / n

while True:
    if (m - target * n) % target == 0:
        print target
        exit(0)
    target -= 1

Submission status: Runtime Error

Solution code:
n = input()

if n == 1:
  print ("Hello World")
else:
  a = input()
  b = input()
  a = int(a)
  b = int(b)
  c = a + b
  print (c)

Submission status: Runtime Error

Solution code:
print(int(input())+int(input())if input()=='1'else"Hello World")

Submission status: Runtime Error

Solution code:
N,A,B=map(int, input().split())
if N == 1:
  print('Hallo World')
else:
  print(A+B)

Submission status: Runtime Error

Solution code:
N,A,B=map(int, input().split())
if N == 1:
  print("Hallo World")
else :
  print(A+B)

Submission status: Runtime Error

Solution code:
input_num = input()

if input_num != 1:
    a = int(input())
    b = int(input())
    print(a + b)
else:
    print('Hello World')

Submission status: Runtime Error

Solution code:
N = int(input())
A = int(input())
B = int(input())
C = A + B
if N == 1:
    print("Hello World")
else:
    print(C)

Submission status: Runtime Error

Solution code:
a = list(map(int,input().split()))

if a[0] == 1:
    print("Hello World")
else:
    print(a[1] + a[2])

Submission status: Runtime Error

Solution code:
N, A, B = map(int, input().split())
if N = 1;
 print("Hallo World")
  else print(A+B)

Submission status: Runtime Error

Solution code:
N, A, B = map(int, input().split())
if N == 1;
 print("Hallo World")
  else print(A+B)

Submission status: Runtime Error

Solution code:
N = int(input())
A = int(input())
B = int(input())
 
if N == 2:
  print(A+B)
elif N ==1:
  print("Hello World")

Submission status: Runtime Error

Solution code:
N,A,B=map(int, input().split())
if N == 1;
 print("Hallo World")
  else print(A+B)

Submission status: Runtime Error

Solution code:
N = int(input())
A = int(input())
B = int(input())

if N = 2:
  print(A+B)
elif N =1:
  print("Hello World")

Submission status: Runtime Error

Solution code:
N = int(input())
if N == 1:
  print('Hello World')
elif N == 2:
 {
   A = int(input())
   B = int(input())
   print(A+B)
 }
else:
  pass

Submission status: Runtime Error

Solution code:
N = int(input())
A = int(input())
B = int(input())

if N > 1:
  print(A+B)
else:
  print("Hello World")

Submission status: Runtime Error

Solution code:
def main():
    N= int(input())
    A= int(input())
    B= int(input())

    if N==1:
        print("Hello World") 
    else:
        print(A+B)
        
main()

Submission status: Runtime Error

Solution code:
N=int(input())
A=int(input())
B=int(input())
if N == 1;
 print("Hallo World")
  else print(A+B)

Submission status: Runtime Error

Solution code:
dat0 = input()
if dat0 == 1:
    print("Hello World")
else:
    dat1 = input()
    dat2 = input()
    ans = int(dat1) + int(dat2)
    print(ans)

Submission status: Runtime Error

Solution code:
n = int(input())
A = int(input())
B = int(input())
if n == 1:
    print("Hello World")
elif n == 2:
    print(A + B)

Submission status: Runtime Error

Solution code:
N = int(input())
a = int(input())
b = int(input())
if N == 1:
    print("Hello World")
else:
    print(a+b)

Submission status: Runtime Error

Solution code:
def main():
    N= input()
    A= int(input())
    B= int(input())

    if N==1:
        print("Hello World") 
    else:
        print(A+B)
        
main()

Submission status: Runtime Error

Solution code:
dat0 = input()
dat1 = input()
dat2 = input()


if dat0 == 1:
    print("Hello World")
else
    ans = int(dat1) + int(dat2)
    print(ans)

Submission status: Runtime Error

Solution code:
int(input())=N
int(input())=A
int(input())=B
if N == 1;
 print("Hallo World")
  else print(A+B)

Submission status: Runtime Error

Solution code:
N = int(input())
A = int(input())
B = int(input())

if N == 1:
  print("Hello World")
  
elif N == 2:
  print(A + B)

Submission status: Runtime Error

Solution code:
N, T = map(int, input().split())

mc = float("inf")
ans = "TLE"

for i in range(N):
    c, t = map(int, input().split())
    if t <= T and c < mc:
        mc = c
        ans = str(c)

print(ans)

Submission status: Runtime Error

Solution code:
n = int(input())
A = int(input())
B = int(input())
if n == 1:
    print("Hello World")
else:
    print(A + B)

Submission status: Runtime Error

Solution code:
n = int(input())
if n == 2:
    ab = list(map(int, input().split()))

if n == 1:
    print("Hello World")
if n == 2:
    print(ab[0] + ab[1])

Submission status: Runtime Error

Solution code:
if int(input) == 1;
 print("Hallo World")
  else print(A+B)

Submission status: Runtime Error

Solution code:
n = int(input())
a = int(input())
b = int(input())
if n==1:
    print('Hello World')
else:
    print(a+b)

Submission status: Runtime Error

Solution code:
input_data = [int(i) for i in input().split(" ")]

if input_data[0] == 1:
    print("Hello World")
    exit()

print(input_data[1] + input_data[2])

Submission status: Runtime Error

Solution code:
n = int(input())
ab = list(map(int, input().split()))

if n == 1:
    print("Hello World")
if n == 2:
    print(ab[0] + ab[1])

Submission status: Runtime Error

Solution code:
def main()
    N= input()
    A= input()
    B= input()

    If N==1:
        print("Hello World") 
    else:
        print(A+B)
        
main()

Submission status: Runtime Error

Solution code:
import sys

stdin = sys.stdin

ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
ns = lambda: stdin.readline().rstrip()  # ignore trailing spaces
def tr(x):
    if "DEBUG" in globals(): sys.stderr.write(f"{x}\n")

x = ni()
if x == 1:
    print("Hello World")
else:
    a, b = na()
    print(a+b)

Submission status: Runtime Error

Solution code:
n = int(input())
a = int(input())
b = int(input())
if n == 1:
    print('Hello World')
else:
    print(a+b)

Submission status: Runtime Error

Solution code:
n = int(input())
a = int(input())
b = int(input())

if n == 1:
    print("Hello World")
else:
    print(a + b)

Submission status: Runtime Error

Solution code:
N=input()

if N==1:
  print("Hello World")
else:
  A=int(input())
  B=int(input())
  print(A+B)

Submission status: Runtime Error

Solution code:
# atcoder abc112 A




age = int(input())
A = int(input())
B = int(input())


if age == 2:
	print(A+B)
else:
	print("Hello World")

Submission status: Runtime Error

Solution code:
N = int(input())
A = int(input())
B = int(input())

if N == 1:
    print("Hello World")
if N == 2:
    print(A + B)

Submission status: Runtime Error

Solution code:
print("Hello World" if input() == "1" int(input()) + int(input()))

Submission status: Runtime Error

Solution code:
int N = int(input())
int a = int(input())
int b = int(input())
if N == 1:
    print("Hello World")
else:
    print(a+b)

Submission status: Runtime Error

Solution code:
n = input()
a = input()
b = input()
n = int(n)
a = int(a)
b = int(b)
if n == 1:
    print("Hello World")
else:
    print(a+b)

Submission status: Runtime Error

Solution code:
N = input()
A = int(input())
B = int(input())

if N > 1:
  print(A+B)
else:
  print("Hello World")

Submission status: Runtime Error

Solution code:
if input() == 1:
    print('Hello World')
else:
    print(int(input()) + int(input()))

Submission status: Runtime Error

Solution code:
age = int(input())

if age == 1:
    print(Hello World)
else:
    a = int(input())
    b = int(input())
    print(a + b)

Submission status: Runtime Error

Solution code:
N = int(input())
A = int(input())
B = int(input())

print('Hello World' if N == 1 else A+B )

Submission status: Runtime Error

Solution code:
n = int(input())
a = int(input())
b = int(input())

if n ==1:
    print('Hello World')
else:
    print(a + b)

Submission status: Runtime Error

Solution code:
n=int(input())
if n=1:
    print("Hello World")
else:
    a=int(input())
    b=int(input())
    print(a+b)

Submission status: Runtime Error

Solution code:
n = int(input())
a = int(input())
b = int(input())
if n == 1:
    print("Hello World")
else:
    print(a + b)

Submission status: Runtime Error

Solution code:
n=int(input())
a=int(input())
b=int(input())
if n == 1:
    print('Hello World')
else:
    print(a+b)

Submission status: Runtime Error

Solution code:
N = int(input())
A = int(input())
B = int(input())

if N == 1:
  print("Hello World")
elif N == 2:
  print(A+B)

Submission status: Runtime Error

Solution code:
N = int(input())
If N == 1:
  print('Hello World')
else:
  A = int(input())
  B = int(input())
  print(A+B)

Submission status: Runtime Error

Solution code:
if input() == 1:
    print('Hello World')
else:
    print(input() + input())

Submission status: Runtime Error

Solution code:
import numpy as np,math,itertools
n=int(input())
a=int(input())
b=int(input())
if n==1:print("Hello World")
else:print(a+b)

Submission status: Runtime Error

Solution code:
n = int(input())
if n == 1:
  print('Hello World')
else:
  a,b=map(int,input().split())
  print(a+b)

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-

def main():
    N = input()

    if N == 1:
        print("Hello World")
        exit()
    else:
        print(int(input()) + int(input()))

if __name__ == '__main__':
    main()

Submission status: Runtime Error

Solution code:
N = int(input())
A = int(input())
B = int(input())

if N == 1:
    print("Hello World")
else:
    print(A+B)

Submission status: Runtime Error

Solution code:
int N = int(input())
int a = int(input())
int b = int(input())
print(N==1 ? "hello World" : a+b)

Submission status: Runtime Error

Solution code:
n = input()
if n == 1:
    print("Hello World")
else:
    a = int(input())
    b = int(input())
    print(a+b)

Submission status: Runtime Error

Solution code:
a = list(map(int,input().split()))

if a == 1:
    print("Hello World")
else:
    b = int(input())
    c = int(input())
    print(b+c)

Submission status: Runtime Error

Solution code:
import sys

stdin = sys.stdin

ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
ns = lambda: stdin.readline().rstrip()  # ignore trailing spaces
def tr(x):
    if "DEBUG" in globals(): sys.stderr.write(f"{x}\n")

x = ni()
if x == 1:
    print("Hello World")
else:
    a = ni()
    b = ni()
    print(a+b)

Submission status: Runtime Error

Solution code:
N = int(input())
A = int(input())
B = int(input())

if N == 1:
    print('Hello World')
else:
    print(A+B)