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:
def pyramid(N: int, info: list) -> tuple:
    """
    """
    _info = sorted(info, key=lambda x: x[2], reverse=True)
    x, y, h = _info[0]
    candidtes = [
        (cx, cy, h + abs(cx - x) + abs(cy - y))
        for cx in range(100+1)
        for cy in range(100+1)]

    for x, y, h in _info[1:]:
        temp = []
        for cx, cy, H in candidtes:
            th = max(H - abs(cx - x)-abs(cy - y), 0)
            if th == h:
                temp.append((cx, cy, H))

        candidtes = temp

    return candidtes[0]

if __name__ == "__main__":
    N = int(input())
    info = [
        tuple(int(s) for s in input().split())
        for _ in range(N)]
    cx, cy, h = pyramid(N, info)
    print(cx, cy, h)

Submission status: Runtime Error

Solution code:
def programming_education(N: int) -> str:
    if N == 1:
        return 'Hello World'

    A, B = map(int, input().split())
    return str(A + B)


if __name__ == "__main__":
    N = int(input())
    ans = programming_education(N)
    print(ans)

Submission status: Runtime Error

Solution code:
N = int(input())
xyh = []

for i in range(N):
    xyh.append([int(i) for i in input().split()])

for x in range(101):
    for y in range(101):

        ##Reference Height##

        for i in range(len(xyh)):
            if(xyh[i][2] != 0):
                reference_index = i
        height = abs(x - xyh[reference_index][0]) + \
            abs(y - xyh[reference_index][1]) + xyh[reference_index][2]
        ####################

        counter = 0

        for n in range(N):
            if(xyh[n][2]==0):
                if not (height <= abs(x - xyh[n][0]) +
                        abs(y - xyh[n][1]) + xyh[n][2]):
                    counter += 1

            else:
                if not (height == abs(x - xyh[n][0]) +
                        abs(y - xyh[n][1]) + xyh[n][2]):
                    counter += 1

        if(counter == 0):
            print("{} {} {}".format(x, y, height))

Submission status: Runtime Error

Solution code:
#include <bits/stdc++.h>
using namespace std;
#define REP(i, n) for(int i = 0; i < n; i++)
#define REPR(i, n) for(int i = n - 1; i >= 0; i--)
#define FOR(i, m, n) for(int i = m; i <= n; i++)
#define FORR(i, m, n) for(int i = m; i >= n; i--)
#define SORT(v, n) sort(v, v+n);
#define VSORT(v) sort(v.begin(), v.end());
#define ll long long
#define pb(a) push_back(a)

ll mod = 1e9 + 7;

int main(){
  cin.tie(0);
  ios::sync_with_stdio(false);

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

Submission status: Runtime Error

Solution code:
n = int(input())
lis = [list(map(int,input().split())) for i in range(n)]
li = []
for nu,nuu,nuuu in lis:
  if nuuu != 0:li.append([nu,nuu,nuuu])
for i in range(101):
  for j in range(101):
    s = set()
    for h in range(len(li)):
      num = abs(li[h][0]-i)+abs(li[h][1]-j)
      if num + li[h][2] < 0:
        s.add(num + li[h][2] + 1)
      s.add(num + li[h][2])
    if len(s) == 1:
      for num in s:
        print(i,j,num)

Submission status: Runtime Error

Solution code:
N = int(input())

if N == 1:
    print('Hello, World')
else:
    A, B = map(int, open(0).read().split())
    print(A+B)

Submission status: Runtime Error

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

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())
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,B=map(int,input().split())
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,B = map(int, input().split())
  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(int(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(int(a+b))

Submission status: Runtime Error

Solution code:
def solve(string):
    flag, *ab = map(int, string.split())
    return str(sum(ab)) if flag - 1 else "Hello World"


if __name__ == '__main__':
    flag = int(input())
    if flag - 1:
        flag = "{}\n".format(flag) + "\n".join([input(), input()])
    print(solve(flag))

Submission status: Runtime Error

Solution code:
N=int(input())

if N==2:
  A=int(input())
  B=int(input())
  
print('Hello World' if N==1 else a+b)

Submission status: Runtime Error

Solution code:
import itertools

N = int(input())
params = []
for i in range(N):
    xyh = [int(n) for n in input().split()]
    params.append(xyh)

for cxi, cyi in itertools.product(range(101), range(101)):
    for k in range(N):
        if params[k][2] > 0:
            hight = params[k][2] + abs(params[k][0] - cxi) + abs(params[k][1] - cyi)

    for k in range(N):
        if params[k][2] != max(hight - abs(params[k][0] - cxi) - abs(params[k][1] - cyi), 0)
            break
    
    else:
        print(cxi, cyi, hight)

Submission status: Runtime Error

Solution code:
N = int(input())

position_list = []
for _ in range(N):
    position_list.append(list(map(int, input().split(' '))))

def check_position_diff(position1, position2):
    x = position1[0] - position2[0]
    y = position1[1] - position2[1]
    return x, y

for x in range(102):
    for y in range(102):
        base_position = position_list[0]
        diff_x, diff_y = check_position_diff((x,y), (base_position[0], base_position[1]))
        h = max(abs(diff_x) + abs(diff_y) + base_position[2], 0)
        collect = []
        for position in position_list:
            diff_x, diff_y = check_position_diff((x,y), (position[0], position[1]))
            hx = max(h - abs(diff_x) - abs(diff_y),0)
            collect.append(position[2]==hx)
        if all(collect):
            print(x, y, h)
            exit()
        collect=[]

Submission status: Runtime Error

Solution code:
import sys, os, random, math

def rd():
        return sys.stdin.readline().rstrip()

def rdi():
        return [ int(x) for x in rd().split() ]

def solve(N, M):
        L = math.sqrt(M) + 0.5
        i = N
        while i <= L:
                if M % i == 0:
                        return M / i
                i = i + 1
        i = N-1
        while i >= 1:
                if M % i == 0 and M / i >= N:
                                return i
                i = i - 1
        assert 0

N, M = rdi()
print solve(N, M)

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())
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())
if N == 1:
  print("Hello World")
else:
  A, B = list(map(int,input().split()))
  print(A + B)

Submission status: Runtime Error

Solution code:
import math

N,M = map(int,input().split())
A = []
n = 0
if N == 1:
    print(M)
else:
    ans = 1
    for i in range(1, int(math.sqrt(M))+1):
        if (M % i == 0):
            if i <= M//N:
                A.append(i)
            if M/i <= M//N:
                A.append(int(M/i))
    A.sort()
    print(A[-1])

Submission status: Runtime Error

Solution code:
from sys import exit

N = int(input())

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

A, B = [int(x) for x in input().split()]
print(A + B)

Submission status: Runtime Error

Solution code:
s = [int(input()) for i in range(3)]
if s[0] == 1:
    print('Hello World')
if s[0] == 2:
    print(int(s[1] + s[2]))

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=input()
if N=='1':print("Hello World")
else:
    l=list(map(int,N.split()))
    print(l[1]+l[2])

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N = int(input())
L = []
for _ in range(N):
    l = list(map(int,input().split()))
    if l[2] != 0:
        L.append(l)
#print(L)

for i in range(101):
    for j in range(101):
        tmp = -1
        for x in L:
            H = abs(x[0]-i) + abs(x[1]-j) + x[2]
            if H < 1:
                break
            if tmp != -1 and tmp != H:
                break
            else:
                tmp = H
        else:
            for x in L:
                if x[2]==max(0,H-abs(x[0]-i)-abs(x[1]-j)):
                    pass
                else:
                    break
            else:
                print(i,j,H)

Submission status: Runtime Error

Solution code:
import sys

def main():
  input = sys.stdin.readline
  N = int(input())
  A = int(input())
  B = int(input())
  if N == 1:
    print('Hello World')
  else:
    print(A + B)


if __name__ == '__main__':
  main()

Submission status: Runtime Error

Solution code:
N = int(input())
if N == 1
  print("Hello World")
  exit()
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())

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=[]

x,y,k=-1,-1,-1
n=-1
for _ in range(n):
    a.append(list(map(int,input().split())))
    if a[_][2] != 0:
        n=i
for i in range(101):
    for j in range(101):
        h=a[0][2]+abs(a[0][0]-i)+abs(a[0][1]-j)
        d=True

        for l in range(n):
            if a[l][2] > 0 and h != a[l][2]+abs(a[l][0]-i)+abs(a[l][1]-j):
                d=False
            if a[l][2]==0 and h>abs(a[l][0]-i)+abs(a[l][1]-j):
                d=False
            
        if d:
            x,y,k=i,j,h
            print(x,y,k)
            exit()

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")
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 World")
else:
  print(A+B)

Submission status: Runtime Error

Solution code:
N, T = map(int, input().split())
result = 1001
for _ in range(N):
    c, t = map(int, input().split())
    if t <= T:
        result = min(result, c)

if (result == 1001):
    print('TLE') 
else:
    print(result)

Submission status: Runtime Error

Solution code:
N,T=map(int,input().split())
li = [list(map(int,input().split())) for i in range(N)]
#print(li)
t_cost=[T - li[i][1] for i in range(N)]
#print(t_cost)
if(all(x < 0 for x in t_cost)):#時間内Tに帰宅不可能な場合
  print('TLE')
else:#時間内に帰宅できる場合に最小コストのものを出力
  t_cost_1=[]
  for i in range(N):
    if(t_cost[i]>=0):
      t_cost_1.append(i)
    else:continue
  #print(t_cost_1)
  print(min([li[t_cost_1[i]][0] for i in range(len(t_cost_1))]))

Submission status: Runtime Error

Solution code:
N,T=map(int,input().split())
li = [list(map(int,input().split())) for i in range(N)]
t_cost=[T - li[i][1] for i in range(N)]
if(all(x < 0 for x in t_cost)):
  print('TLE')
else:
  t_cost_1=[]
  for i in range(N):
    if(t_cost[i]>=0):
      t_cost_1.append(i)
    else:continue
  print(min([li[t_cost_1[i]][0] for i in range(len(t_cost_1))]))

Submission status: Runtime Error

Solution code:
N,T=map(int,input().split())
li = [list(map(int,input().split())) for i in range(N)]
t_cost=[T - li[i][1] for i in range(N)]
if(all(x < 0 for x in t_cost)):
  print('TLE')
else:
  t_cost_1=[]
  for i in range(N):
    if(t_cost[i]>=0):
      t_cost_1.append(i)
    else:
  print(min([li[t_cost_1[i]][0] for i in range(len(t_cost_1))]))

Submission status: Runtime Error

Solution code:
N = int(input())
L = [input().split() for i in range(N)]
answer = 0
center = []

for i in range(101):
  for j in range(101):
    List = []
    for l in L:
      if int(l[2]) != 0:
        List.append(int(l[2]) + abs(int(l[0]) - i) + abs(int(l[1]) - j))
      #else:
        #List.append(0)
    if len(list(set(List))) == 1:
      answer = List[0]
      center.append(i)
      center.append(j)

print(center[0], center[1], answer)

Submission status: Runtime Error

Solution code:
import sys
a = sys.stdin.readlines()

if a[0] == 1:
    print('Hello World')
else:
    print(sum(a[1:]))

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N = input()
if N == 1:
  print('Hello World')
else :
  a = input()
  b = input()
  print(int(a) + int(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:
d = [int(input()) for i in range(0, 3)]
print("Hello World" if d[0] == 1 else sum(d[1:]))

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N=int(input())
A=int(input())
B=int(input())
C=A+B
if N==1:
    print("Hello World")
if N==2:
    print(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:
# A
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:
n,w = map(int,input().split())
m = 1001
for i in range(n):
    a,b = map(int,input().split())
    if b <= w and a < m:
        m = a
if m == 1001:
    print("TLE")
else:
    print(m)

Submission status: Runtime Error

Solution code:
a=int(input())
b=int(input())
c=int(input())
if a==1:
  print("Hello World")
elif a==2:
  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 = 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())
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())
A = int(input())
B = int(input())

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

Submission status: Runtime Error

Solution code:
import math as m
N,M = map(int,input().split())
# N == 1 の処理
if N == 1:
    print(M)
    exit()
# Mの素数判定
judge = "prime"
for i in range(m.floor(pow(M,1/2)),1,-1):
    if M % i == 0:
        judge = "conposite"
        break
if judge == "prime":
    print(1)
    exit()
for i in range(M // N,0,-1):
    if M % i == 0:
        print(i)
        exit()

Submission status: Runtime Error

Solution code:
age = int(input());
if age == 1:
  print(1);
else:
  b, c = map(int, input().split());
  print(b + c);

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)
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,B = map(int,input().split())
if N % 2 == 0:
  print(A+B)
else:
  print("Hello World")

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

XYHA = []

for i in range(N):
    x,y,h = map(int,input().split())
    if h == 0:
        N -= 1
        continue
    XYHA.append([x,y,h])

for i in range(101):
    for j in range(101):
        HC = XYHA[0][2] + abs(XYHA[0][0] - i) + abs(XYHA[0][1] - j)

        for k in range(1, N):
            H = XYHA[k][2] + (XYHA[k][0] - i) + abs(XYHA[k][1] - j)

            if HC != H:
                break

            if k == N - 1:
                print(i,j,HC)
                exit()
print(0,0,0)

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

Submission status: Runtime Error

Solution code:
n = in(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())

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

Submission status: Runtime Error

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

C,t = [], []

for i in range(N):
    CT = list(map(int,input().split()))
    C.append(CT[0])
    t.append(CT[1])

C_min = 10000
for i,t_i in enumerate(t):
    if t_i <= T and C_min >= C[i]:
        C_min = C[i]
        
if C_min == 10000:
    print('TLE')
else:
    print(C_min)

Submission status: Runtime Error

Solution code:
N = int(input())

if N == 1:
	print('Hello World')
else:
	for i in range(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())
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())
result ='Hello World' if n == 1 else a+b
print(result)

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

Submission status: Runtime Error

Solution code:
# 帰宅経路数と時間を取得
N, T = map(int, input().split())
# 時間制限
ans = 1001
# N個の帰宅経路と時間を取得し、比較する
for i in range(N):
    cost, time = map(int, input().split())
    if time < T:
        ans = min(ans, cost)
# 出力する
if ans == 1001:
    print("TLE")
else:
    print(ans)

Submission status: Runtime Error

Solution code:
# 帰宅経路数と時間を取得
N, T = map(int, input().split())
# 時間制限
ans = 1001
# 制約判断
if N < 1 or N > 100 or T < 1 or T > 1000:
    SystemExit
# N個の帰宅経路と時間を取得し、比較する
for i in range(N):
    cost, time = map(int, input().split())
    if time < T:
        ans = min(ans, cost)
# 出力する
if ans == 1001:
    print("TLE")
else:
    print(ans)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n , t = map(int , input().split())
mn=10**6
for i in range(n):
    a,b=map(int , input().split())
    if b<=t:
        mn=min(a,mn)
print(a)

Submission status: Runtime Error

Solution code:
N=input()
if   (N=='1'):
            print('Hello word')
            
if   (N=='2'):
    A=input()
    B=input()
            print(A+B)

Submission status: Runtime Error

Solution code:
import math


def prime(M):
    if M == 1:
        return [1]
    lst = []
    for i in range(1, int(math.sqrt(M)+1)):
        if M % i == 0:
            lst.append(i)
            div = M // i
            if div not in lst:
                lst.append(div)
    return sorted(lst)


N, M = map(int, input().split())
lst = prime(M)
res = 1
for num in lst:
    if (M // N) < num:
        break
    else:
        res = num

print(res)

Submission status: Runtime Error

Solution code:
from math import *
import sys

N = int(input())
all_input_list = [list(map(int, input().split())) for i in range(N)]
x, y, h = [all_input_list[i] for i in range(N) if all_input_list[i][2] > 0][0]
for cx in range(101):
    for cy in range(101):
        H = h + abs(cx - x) + abs(cy - y)
        for input_list in all_input_list:
            result = H - abs(cx - input_list[0]) -  abs(cy - input_list[1])
            if (result < 0) or (input_list[2] != result):
                break
        else:
            print("%s %s %s" % (cx, cy, H))
            sys.exit(0)

Submission status: Runtime Error

Solution code:
from math import *
import sys

N = int(input())
all_input_list = [list(map(int, input().split())) for i in range(N)]
x, y, h = [all_input_list[i] for i in range(N) if all_input_list[i][2] > 0][0]
for cx in range(101):
    for cy in range(101):
        H = h + abs(cx - x) + abs(cy - y)
        for input_list in all_input_list:
            result = H - abs(cx - input_list[0]) - abs(cy - input_list[1])
            if (result >  0) and (input_list[2] != result):
                break
        else:
            print("%s %s %s" % (cx, cy, H))
            sys.exit(0)

Submission status: Runtime Error

Solution code:
from math import *
import sys

N = int(input())
all_input_list = [list(map(int, input().split())) for i in range(N)]
x, y, h = [all_input_list[i] for i in range(N) if all_input_list[i][2] > 0][0]
for cx in range(101):
    for cy in range(101):
        H = h + abs(cx - x) + abs(cy - y)
        for input_list in all_input_list:
            if (input_list[2] != (H - abs(cx - input_list[0]) - abs(cy - input_list[1])):
                break
        else:
            print("%s %s %s" % (cx, cy, H))
            sys.exit(0)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

if( N == 1):
  print('Hello World')
  
if( N == 2):
  A = int(input())
  B = int(input())
  
 print(int( A + B))

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n = int(input())

hints = []
for i in range(n):
    x, y, h = map(int, input().split())
    hints.append([x, y, h])

def height(center , point):
    if point[2] == 0:
        return 0
    else:
        return point[2] + abs(point[0] - center[0]) + abs(point[1] - center[1])

for i in range(101):
    for j in range(101):
        cent = [i, j]
        hmax = height(cent, hints[0])
        k = 1
        while ((k < n) and (hmax == height(cent, hints[k]) or height(cent, hints[k]) == 0 or hmax == 0)):
            if (hmax == 0 and height(cent, hints[k]) != 0):
                hmax = height(cent, hints[k])
            k += 1
        #print(cent)
        #print(k)
        #print (hmax)
        if k == n:
            break
        else:
            continue
    if k == n:
        break

print("{} {} {}".format(cent[0], cent[1], hmax))

Submission status: Runtime Error

Solution code:
N, T = map(int,input().split())
ans = float("inf")

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

if ans == float("inf"):
    print("TLE")
else:
    print(ans)

Submission status: Runtime Error

Solution code:
N, T = map(int,raw_input().split())
ans = float("inf")

for i in range(N):
    c,t = map(int,input(),split())
    if t <= T:
        ans = min(num,c)

if ans == float("inf"):
    print("TLE")
else:
    print(ans)

Submission status: Runtime Error

Solution code:
N, T = map(int,input().split())
ans = float("inf")

for i in range(0,N):
    c,t = map(int,input(),split())
    if t <= T:
        ans = min(num,c)

if ans == float("inf"):
    print("TLE")
else:
    print(ans)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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)

Submission status: Runtime Error

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

for i in range(N):
    a,b = map(int,input().split())
    if b >= T:
        back.append(a)

if len(back) == 0:
    print('TLE')
else:
    print(min(back))

Submission status: Runtime Error

Solution code:
def soinsuubunkai(n):
    i = 2
    list = [1]
    while i**2 <= n:
        if n%i == 0:
            list.append(i)
            if i != n//i:
                list.append(n//i)
        i += 1
    list.append(n)
    return list
n, m = map(int, input().split())
l = soinsuubunkai(m)
r = len(l)
for i in range(r):
    if m//l[r-i-1] >= n:
        print(l[r-i-1])
        quit()

Submission status: Runtime Error

Solution code:
n, m = map(int, input().split())
kouyaku_max = m // n
kouyaku = 1
for i in range(min(kouyaku_max,int(m**0.5)),0,-1):
    if ((m % (i) == 0) and (n*i <= m)):
        kouyaku = i
        break

print('{}'.format(kouyaku))

Submission status: Runtime Error

Solution code:
a = int(input())
if a == 1:
    print("Hello World")
else:
    b, c = map(int, input().split())
    print('{}'.format(b+c))

Submission status: Runtime Error

Solution code:
N,M=map(int,input().split())
i=N
while(i*2 <=M):
    if(M%i==0):
        break
    i+=1
if(i*2>M):
    i=M
print(M//i)

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)

Submission status: Runtime Error

Solution code:
N = int(input())
    if N == 1:
        print("Hello World")
    elif N == 2:
        a,b = int(input().split())
        print(a+b)

Submission status: Runtime Error

Solution code:
N = int(input())
    if N == 1:
        print("Hello World")
    elif N == 2
        a,b = int(input().split())
        print(a+b)

Submission status: Runtime Error

Solution code:
N = int(input())
    if N == 1:
        print("Hello World")
    elif N == 2
        a,b = int(input().split())
        print(a+b)

Submission status: Runtime Error

Solution code:
N = int(input())
if N == 1:
    print("Hello World)
elif N == 2
    a,b = 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")
elif n == 2:
    print(a + b)

Submission status: Runtime Error

Solution code:
n = 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 = input()
a = input()
b = input()

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