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:
if input()="1":
    print("Hello World")
else:
    print(int(input())+int(input()))

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 = int(input())
a = int(input())
b = int(input())
if n == 1:
    print('Hellow World')
elif n == 2:
    print(a + b)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import math

n,m = map(int,input().split())
m_div = []
for i in range(1,math.ceil(math.sqrt(m)+1)):
  if m%i ==0:
    m_div.extend([i,m//i])
m_div = list(set(m_div))
m_div.sort(reverse = True)
for div in m_div:
  if div >= n:
    ans = m//div
  else:
    break
print(ans)

Submission status: Runtime Error

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

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())
if n == 1:
  print('Hello World')
else:
  a,b = map(int,input().split())
  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())print("Hello World" if n==1 else a=int(input() b=int(input() print(a+b)))

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n = int(input())

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

Submission status: Runtime Error

Solution code:
n = int(input())

if n == 1:
  print('Hello World')
else if n == 2:
  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())
surveys = [list(map(int, input().split())) for _ in range(N)]
for x in range(101):
  for y in range(101):
    before = -1
    identified = True
    for survey in surveys:
      height = survey[2] + abs(x-survey[0]) + abs(y-survey[1])
      if before != -1 and before != height:
        if survey[2] == 0:
          continue
        identified = False
        break
      if before == -1:
        before = height
    if identified:
      print(x, y, before)

Submission status: Runtime Error

Solution code:
import sys

if sys.platform =='ios':
    sys.stdin=open('input_file.txt')
    
n=int(input())

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

Submission status: Runtime Error

Solution code:
A = input()
if A = 1:
  print("Hello world")
if A = 2:
  B = int(input())
  C = int(input())
  print(A+B)

Submission status: Runtime Error

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

l = []

for i in range(N):
    a = list(map(int, input().split()))
    if a[1] <= T:
        l.append(a[0])

print('TLE' if len(l) == 0 else min(l))

Submission status: Runtime Error

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

l = []

for i in range(N):
    a = list(map(int, input().split()))
    if T >= a[1]:
        l.append(a[0])

print('TLE' if len(l) == 0 else min(l))

Submission status: Runtime Error

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

l = []

for i in range(N):
    a = list(map(int, input().split()))
    if T >= a[1]:
        l.append(a[0])

print('TLE' if len(l) == 0 else min(l))

Submission status: Runtime Error

Solution code:
N = int(input())
if N ==1:
  print("Hello World")
else:
  A,B = [int(x) for x in input().split()]
  print(A+B)

Submission status: Runtime Error

Solution code:
# ABC112A - Programming Education
def main():
    N, A, B = map(int, open(0).read().split())
    flg = N == 1
    print("Hello World" if flg else A + B)


if __name__ == "__main__":
    main()

Submission status: Runtime Error

Solution code:
n, T= map(int, input().split())
m = 1001
for i in range(n):
  c, t = map(int, input().split())
  if t < T:
    m = min(c, m)
if m == 1001:
  print("TLE")
else:
  print(m)

Submission status: Runtime Error

Solution code:
n = int(input())
if n ==1 :
  print("Hello World")
else :
  a = [input() for i in range(2)]
  print(a[o]+ a[1])

Submission status: Runtime Error

Solution code:
n = int(input())
a = [input() for i in range(n)]
if n ==1 :
  print("Hello World")
else :
  print(a[o]+ a[1])

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import sys
N = int(sys.stdin.readline())

if N == 1:
    print('Hello World')
    sys.exit()

if N == 2:
    ans = 0
    for value in sys.stdin.readlines():
        ans += value

    print(ans)

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, M = map(int, input().split())
x = M//N
max = 1
for i in range(x+1, 1, -1):
    mod = M - (N-1)*i
    if mod%i == 0:
        max = i
        break
print(max)

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, T = map(int, input().split())
ans = []
for i in range(N):
  c, t = map(int, input().split())
  if t <= T:
    ans.append(c)
if not ans:
  print('TLE')
else:
  ans.sort()
  print(ans[0])

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 = int(input())
A = int(input())
B = int(input())

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

if N == 2:
    print(A + B)

Submission status: Runtime Error

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

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:
#include <bits/stdc++.h>
using namespace std;
#define IOS ios::sync_with_stdio(false); cin.tie(0);
#define FOR(i,s,n) for(int i = s; i < (n); i++)
#define REP(i,n) FOR(i,0,n)
#define ALL(n) (n).begin(), (n).end()
#define RALL(n) (n).rbegin(), (n).rend()
#define ATYN(n) cout << ( (n) ? "Yes":"No") << endl;
#define CFYN(n) cout << ( (n) ? "YES":"NO") << endl;
using ll = long long;
using ull = unsigned long long;

int main(void)
{
    IOS
    int n; cin >> n;
    if (n==1) cout << "Hello World" << endl;
    else {
        int a, b;
        cin >> a >> b;
        cout << a + b << endl;
    }

    return 0;
}

Submission status: Runtime Error

Solution code:
Hello World

Submission status: Runtime Error

Solution code:
Age = int(input())
if Age ==1:
  	print("Hello World")
else:
	AB = [int(input()) for i in range(2)]
    print(AB[0]+AB[1])

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 = 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:
n = int(input())
a = int(input())
b = int(input())
c = a+b
print("Hello World" if n == 1 else c)

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())
if n==1:print("Hello World")
print(int(input())+int(input()))

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n = int(input())
xy = [[i, j] for i in range(101) for j in range(101)]

def md(x1, x2):
  return abs(x1[0]-x2[0]) + abs(x1[1]-x2[1])
        
infos = []
for i in range(n):
  info = list(map(int, input().split()))
  infos.append(info)
  
  if infos[i][2] == 0:
    xy.remove(infos[i][0], infos[i][1])
  
  if i != 0:
    for j in range(i):
      if infos[j][0] != 0:
        dh = infos[i][2] - infos[j][2]
        xy = list(filter(lambda x: md(x, infos[j][:2]) - md(x, infos[i][:2]) == dh, xy))
      
  if len(xy) == 1:    
    break

    
x = xy[0][0]
y = xy[0][1]
k = 0
for i in range(n):
  if infos[i][2] > 0:
    k = i
    break
h = md(infos[k][:2], [x, y]) + infos[k][2]
print('{} {} {}'.format(x, y, h))

Submission status: Runtime Error

Solution code:
n = int(input())
xy = [[i, j] for i in range(101) for j in range(101)]

def md(x1, x2):
  return abs(x1[0]-x2[0]) + abs(x1[1]-x2[1])
        
infos = []
for i in range(n):
  info = list(map(int, input().split()))
  infos.append(info)
  
  if i != 0:
    for j in range(i):
      if infos[j][0] != 0:
        dh = infos[i][2] - infos[j][2]
        xy = list(filter(lambda x: md(x, infos[j][:2]) - md(x, infos[i][:2]) == dh, xy))
      
  if len(xy) == 1:    
    break

    
x = xy[0][0]
y = xy[0][1]
k = 0
for i in range(n):
  if infos[i][2] > 0:
    k = i
    break
h = md(infos[k][:2], [x, y]) + infos[k][2]
print('{} {} {}'.format(x, y, h))

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 = 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())
ans=[]
if n == 1:
    ans="Hello World"
else:
    ans=a+b
print(ans)

Submission status: Runtime Error

Solution code:
N = int(input())
XYHs = []
for _ in range(N):
    x, y, h = map(int, input().split())
    if h > 0:
        XYHs.append((x, y, h))


def height(i):
    return abs(XYHs[i][0] - cx) + abs(XYHs[i][1] - cy) + XYHs[i][2]


for cx in range(101):
    for cy in range(101):
        H = height(0)
        for i in range(1, N):
            if height(i) != H:
                sw = False
                break
        else:
            print("%d %d %d" % (cx, cy, H))
            break
    else:
        continue
    break

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())

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

Submission status: Runtime Error

Solution code:
N = int(input())
surveys = [list(map(int, input().split())) for _ in range(N)]
for x in range(101):
  for y in range(101):
    before = 0
    identified = True
    for survey in surveys:
      if survey[2] == 0:
        continue
      height = survey[2] + abs(x-survey[0]) + abs(y-survey[1])
      if before != 0 and before != height:
        identified = False
        continue
      before = height
    if identified:
      print(x, y, before)
      exit()

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:
import itertools

n = int(input())
x, y, h = [], [], []
for _ in range(n):
    xi, yi, hi = map(int, input().split())
    if hi != 0:
        x.append(xi)
        y.append(yi)
        h.append(hi)
candidate_cx = list(range(min(x), max(x) + 1))
candidate_cy = list(range(min(y), max(y) + 1))

for cx, cy in list(itertools.product(candidate_cx, candidate_cy)):
    adapted = True
    ch = h[0] + abs(x[0] - cx) + abs(y[0] - cy)
    for xi, yi, hi in zip(x, y, h):
        if hi != ch - abs(xi - cx) - abs(yi - cy):
            adapted = False
            break
    if adapted == False:
        continue
    print(cx, cy, ch, sep = ' ')
    exit(0)

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
N = int(input())
points = [list(map(int, input().split())) for i in range(N)]


def main(N, points):
    points.sort(key=lambda x: x[2], reverse=True)
    for x in range(101):
        for y in range(101):
            # 初期化
            H = -1
            for point in points:
                h = abs(point[0] - x) + abs(point[1] - y) + point[2]
                if point[2] > 0:
                    if H == -1:
                        H = h
                    elif H != h:
                        H = -1
                        break
                else:
                    if H > h:
                        H = -1
                        break
            if H > 0:
                print(x, y, h)
                return


main(N, points)

Submission status: Runtime Error

Solution code:
N = int(input())
hxy = []
for _ in range(N):
        x,y,h = map(int,input().split())
        hxy.append([h,x,y])
hxy.sort(reverse=True)
xy = [[x,y] for x in range(101) for y in range(101)]
for i in range(len(hxy) - 1):
        h1,x1,y1 = hxy[i]
        for j in range(i + 1,len(hxy)):
                h2,x2,y2 = hxy[j]
                xy_copy = xy.copy()
                if h1 == 0 and h2 == 0:
                        xy.remove([x1,y1])
                        xy.remove([x2,y2])
                        continue
                elif h1 == 0:
                        for x,y in xy_copy:
                                if abs(x - x2) + abs(y - y2) - abs(x - x1) - abs(y - y1) + h2 > 0:
                                        xy.remove([x,y])
                                        if len(xy) == 1:
                                                x,y = xy[0]
                                                print(x,' ',y,' ',h1 + abs(x - x1) + abs(y - y1))
                                                exit()
                                        continue
                elif h2 == 0:
                        for x,y in xy_copy:
                                if abs(x - x1) + abs(y - y1) - abs(x - x2) - abs(y - y2)  + h1 > 0:
                                        xy.remove[x,y]
                                        if len(xy) == 1:
                                                x,y = xy[0]
                                                print(x,' ',y,' ',h1 + abs(x - x1) + abs(y - y1))
                                                exit()
                                        continue
                

                for x,y in xy_copy:
                        if abs(x - x1) + abs(y - y1) - abs(x - x2) - abs(y - y2) != h2 - h1:
                                xy.remove([x,y])
                if len(xy) == 1:
                        x,y = xy[0]
                        print(x,' ',y,' ',h1 + abs(x - x1) + abs(y - y1))
                        exit()

Submission status: Runtime Error

Solution code:
N = int(input())
hxy = []
for _ in range(N):
        x,y,h = map(int,input().split())
        hxy.append([h,x,y])
hxy.sort(reverse=True)
xy = [[x,y] for x in range(101) for y in range(101)]
for i in range(len(hxy) - 1):
        h1,x1,y1 = hxy[i]
        for j in range(i + 1,len(hxy)):
                h2,x2,y2 = hxy[j]
                xy_copy = xy.copy()
                if h1 == 0 and h2 == 0:
                        xy.remove([x1,y1])
                        xy.remove([x2,y2])
                        continue
                elif h1 == 0:
                        for x,y in xy_copy:
                                if abs(x - x2) + abs(y - y2) - abs(x - x1) - abs(y - y1) + h2 > 0:
                                        xy.remove([x,y])
                                        continue
                elif h2 == 0:
                        for x,y in xy_copy:
                                if abs(x - x1) + abs(y - y1) - abs(x - x2) - abs(y - y2)  + h1 > 0:
                                        xy.remove[x,y]
                                        continue
                

                for x,y in xy_copy:
                        if abs(x - x1) + abs(y - y1) - abs(x - x2) - abs(y - y2) != h2 - h1:
                                xy.remove([x,y])
                if len(xy) == 1:
                        x,y = xy[0]
                        print(x,' ',y,' ',h1 + abs(x - x1) + abs(y - y1))
                        exit()

Submission status: Runtime Error

Solution code:
N = int(input())
hxy = []
for _ in range(N):
        x,y,h = map(int,input().split())
        hxy.append([h,x,y])
hxy.sort(reverse=True)
xy = [[x,y] for x in range(101) for y in range(101)]
for i in range(len(hxy) - 1):
	h1,x1,y1 = hxy[i]
	for j in range(i + 1,len(hxy)):
                h2,x2,y2 = hxy[j]
                xy_copy = xy.copy()
                if h1 == 0 or h2 == 0:
                        if h1 == 0:
                                for x,y in xy_copy:
                                        if h1 + abs(x - x1) + abs(y - y1)) > 0:
                                                xy.remove[x,y]
                                                xy_copy = xy.copy()
                        if h2 == 0:
                                for x,y in xy_copy:
                                        if h2 + abs(x - x2) + abs(y - y2)) > 0:
                                                xy.remove[x,y]
                        continue

		for x,y in xy_copy:
			if abs(x - x1) + abs(y - y1) - abs(x - x2) - abs(y - y2) != h2 - h1:
				xy.remove([x,y])
		if len(xy) == 1:
			x,y = xy[0]
			print(x,' ',y,' ',h1 + abs(x - x1) + abs(y - y1))
			exit()

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())
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")
elif n==2:
    ans=a+b
    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:
data = [int(input()) for i in range(3)]
N = data[0]
A = data[1]
B = data[2]
if N == 1:
    print("Hello World")
else:
    print(A + B)

Submission status: Runtime Error

Solution code:
data = [int(input()) for i in range(3)]
N = data[0];A = data[1];B = data[2]
if N == 1:
    print("Hello World")
else:
    print(A + B)

Submission status: Runtime Error

Solution code:
def solve():
    age = int(input())
    if age == 1:
        return "Hello World"
    a, b = map(int, input().split())
    return a + b


if __name__ == "__main__":
    print(solve())

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a = int(input())
b=[int(input()) for i in range(2)]
c=b[0]+b[1]
if a == 1:
  print('Hello World')
else:
  print(c)

Submission status: Runtime Error

Solution code:
a = int(input())
list=[int(input()) for i in range(2)]
if a == 1:
  print(Hello World)
else:
  print(list[0]+list[1])

Submission status: Runtime Error

Solution code:
a = int(input())
if a == 1:
  print(Hello World)
else:
  list=[int(input()) for i in range(2)]
  print(list[0]+list[1])

Submission status: Runtime Error

Solution code:
a = int(input())
if a == 1:
  print(Hello World)
else:
  list=[input() for i in range(2)]
  print(list[0]+list[1])

Submission status: Runtime Error

Solution code:
N = int(input())
x = [0] * N
y = [0] * N
h = [0] * N
for i in range(N):
    x[i], y[i], h[i] = map(int, input().split())

top = [[] for _ in range(101*101)]

for i in range(101):
    for j in range(101):
        top[i*101+j] = [i, j]

#print(top)

H = 0

for i in range(len(top)):
    topx = top[i][0]
    topy = top[i][1]
    H = 0
    h_list = []
    for j in range(N):
        if h[j] != 0:
            tmp = abs(topx - x[j]) + abs(topy - y[j]) + h[j]
            h_list.append(tmp)
    if h_list.count(h_list[0]) == N - h.count(0) :
        ansx = topx
        ansy = topy
        ansH = h_list[0]
        break

print(ansx, ansy, ansH)

Submission status: Runtime Error

Solution code:
n, T = map(int, input().split(' '))
cost, time = [], []
for i in range(n):
    c, t = map(int, input().split(' '))
    if t <= T:
        cost.append(c)
        time.append(t)
if len(cost) == 0:
  	print('TLE')
else:
    print(min(cost))

Submission status: Runtime Error

Solution code:
import math

# inputList=[]
# for i in range(6):
#     inputNum = input()
#     inputList.append(inputNum)
inputa = input().split()
# inputb = input().split()

a = int(inputa[0])
# b = int(inputa[1])
# c = int(inputa[2])

# x = int(inputb[0])
# y = int(inputb[1])

if a == 1:
    print("Hello World")
    
elif a == 2:
    inputb = input().split()
    inputc = input().split()

b = int(inputb[0])
c = int(inputc[0])

print(b + c)

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,t=map(int,input().split())
cost_list=[]
for i in range(n):
  cost,time=map(int,input().split())
  if time<=t:
    cost_list+=[cost]
if cost_list!=[]:
  print(min(cost_list))
else:
  print(TLE)

Submission status: Runtime Error

Solution code:
n=list(map(int,open(0).read().split()))
print((n[1]+n[2],"Hello World")[n[0]==1])

Submission status: Runtime Error

Solution code:
N = int(input())
surveys = [list(map(int, input().split())) for _ in range(N)]
for x in range(101):
  for y in range(101):
    before = 0
    identified = True
    for survey in surveys:
      height = survey[2] + abs(x-survey[0]) + abs(y-survey[1])
      if height != 0 and before != height:
        identified = False
        continue
      if height != 0:
        before = height
    if identified:
      print(x, y, before)

Submission status: Runtime Error

Solution code:
N = int(input())
if N % 2 == 1:
  print("Hello World")
else:
  a,b = map(int,input().split())
  print(a*b)

Submission status: Runtime Error

Solution code:
N = int(input())
if N == 2:
  A,B = map(int, input().split())
  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')
elif n[0]==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(a+b)

Submission status: Runtime Error

Solution code:
n=int(input())
if n==1:
    print('Hello World')
elif n==2:
    a,b=(int(x) for x in input().split())
    print(int(a + b))

Submission status: Runtime Error

Solution code:
age = int(input())

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import sys
input = sys.stdin.readline
W = 101
def main():
	n = int(input().strip())
	x = [0] * n
	y = [0] * n
	h = [0] * n
	for i in range(n):
		x[i], y[i], h[i] = map(int, input().strip().split())
	for s in range(W):
		for t in range(W):
			needH = -1
			for i in range(n):
				if h[i] > 0:
					tmp = h[i] + abs(x[i]-s) + abs(y[i]-t)
					if needH == -1:
						needH = tmp
					elif needH != tmp:
						needH = -2
						break
			if needH == -2:
				continue
			for i in range(n):
				if h[i] == 0 and needH > abs(x[i]-s) + abs(y[i]-t):
					needH = -2
					break
			if needH == -2:
				continue
			else:
				print("{} {} {}".format(s, t, needH))

if __name__ == '__main__':
	main()

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n=int(input())
hoge=[]
for i in range(n):
  x,y,z=map(int,input().split())
  if(z!=0):
    hoge.append([x,y,z])
  

if(len(hoge)==1):
  print(*hoge[0])
  exit()

for i in range(101):
  for j in range(101):
    h=[]
    for k in range(len(hoge)):
      h.append(hoge[k][2]+abs(hoge[k][0]-i)+abs(hoge[k][1]-j))
      
    if(h.count(h[0])==len(h)):
      print(i,j,h[0])

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N = int(input())
lst = [int(input()) for i in range(2)]
if (N == 1):
    print('Hello World')
else:
    print(sum(lst))

Submission status: Runtime Error

Solution code:
N = int(input())
lst = [int(input()) for i in range(N)]
if (N == 1):
    print('Hello World')
else:
    print(sum(lst))

Submission status: Runtime Error

Solution code:
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for(int i=0;i<(int)(n);i++)
#define all(x)    (x).begin(),(x).end()
typedef long long ll;
const int MOD = (int)1e9 + 7;

int main(){
  int n;
  cin >> n;
  if(n==1){
    cout << "Hello World" << endl;
    return 0;
  }
  int a,b;
  cin >> a >> b;
  cout << a + b << endl;
}

Submission status: Runtime Error

Solution code:
a = int(input())
kazu = [int(input()) for _ in range(1)]
if a == 1:
  print("Hello World")
else:
  print(sum(kazu))

Submission status: Runtime Error

Solution code:
a = int(input())
kazu = [int(input()) for _ in range(2)]
if a == 1:
  print("Hello World")
else:
  print(sum(kazu))

Submission status: Runtime Error

Solution code:
n = int(input())
if n == 1:
  print('Hello World')
elif n == 2:
  a, b = map(int, input().split())
  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,b, = map(int,input().split())

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())
XYH = [list(map(int, input().split())) for _ in range(N)]
H_list= [XYH[i][2] for i in range(N)]
H_max = max(H_list)
H_min = min(H_list)
H_diff = H_max - H_min
ans = []

# 高さH,中心座標を(Cx, Cy)として総当たりで試す
for H in range(H_max - (200 - H_diff), H_max + (201 - H_diff)):
    for Cx in range(0, 101):
        for Cy in range(0, 101):
            count = 0
            for X, Y, h in XYH:
                if h == max(H - abs(X - Cx) - abs(Y - Cy), 0):
                    count += 1
                else:
                    break

            if count == N:
                ans = [str(Cx), str(Cy), str(H)]

print(' '.join(ans))

Submission status: Runtime Error

Solution code:
age=input()
if age==1:
  print('Hello World')
 
else:
  A=int(input())
  B=int(input())
  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:
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")
elif:
  print(int(input())+int(input()))

Submission status: Runtime Error

Solution code:
N,T=map(int,input().split())
cost=1000
for _ in range(N):
    c,t=map(int,input().split())
    if t<=T:
        if cost>=c:
            cost=c
if cost<=1000:
    print(cost)
else:print("TLE")

Submission status: Runtime Error

Solution code:
N,T=map(int,input().split())
cost=1000
for _ in range(N):
    c,t=map(int,input().split())
    if t<=T:
        if cost>c:
            cost=c
if cost>1000:
    print(cost)
else:print("TLE")

Submission status: Runtime Error

Solution code:
a = int(input())

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

Submission status: Runtime Error

Solution code:
takahashi = list(int(input()) for i in range(3))

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

else:
  X = takahashi[1] + takahashi[2]
  print(X)