Problem:


BMI

肥満は多くの成人病の原因として挙げられています。過去においては、一部の例外を除けば、高校生には無縁なものでした。しかし、過度の受験勉強等のために運動不足となり、あるいはストレスによる過食症となることが、非現実的なこととはいえなくなっています。高校生にとっても十分関心を持たねばならない問題になるかもしれません。

そこで、あなたは、保健室の先生の助手となって、生徒のデータから肥満の疑いのある生徒を探し出すプログラムを作成することになりました。

方法は BMI (Body Mass Index) という数値を算出する方法です。BMIは次の式で与えられます。

BMI = 22 が標準的で、25 以上だと肥満の疑いがあります。

各々の生徒の体重、身長の情報から BMI を算出し、25 以上の生徒の学籍番号を出力するプログラムを作成してください。

入力

入力は以下の形式で与えられます。

s1,w1,h1
s2,w2,h2
...
...

si (1 ≤ si ≤ 2,000)、wi (1 ≤ wi ≤ 200)、hi (1.0 ≤ hi ≤ 2.0) はそれぞれ、i 番目の生徒の学籍番号（整数）、体重（実数）、身長（実数）を表します。

生徒の数は 50 を超えません。

出力

BMI が 25 以上の生徒の学籍番号を、入力された順番にそれぞれ１行に出力します。

Sample Input

1001,50.0,1.60 
1002,60.0,1.70 
1003,70.0,1.80 
1004,80.0,1.70 
1005,90.0,1.60 

Output for the Sample Input

1004
1005 



Sample input:
1001,50.0,1.60
1002,60.0,1.70
1003,70.0,1.80
1004,80.0,1.70
1005,90.0,1.60


Sample output:
1004
1005

Submission status: Wrong Answer

Solution code:
import sys

for l in sys.stdin.readlines():
    data = l.split(",")
    x, y = float(data[1]), float(data[2])
    if 25 < x / y ** 2:
        print(data[0])

Submission status: Wrong Answer

Solution code:
A=[]
while True:
	try:
		number,weight,height=map(float,input().split(','))
		bmi=weight/(height)**2
		if bmi>25:
			A.append(int(number))
	except EOFError:
		break

for i in A:
	print(i)

Submission status: Wrong Answer

Solution code:
while True:
	try:
		number,weight,height=map(float,input().split(','))
		bmi=weight/(height)**2
		if bmi>25:
			print(int(number))
	except EOFError:
		break

Submission status: Wrong Answer

Solution code:
import sys

for line in sys.stdin:
    id, w, h = map(float, line.split(','))
    if w/h/h > 25.0:
        print int(id)

Submission status: Wrong Answer

Solution code:
def bmi(w,h):
    return w / (h ** 2)

s,w,h = [],[],[]
while True:
    try:
        tmp = input().split(',')
        s.append(float(tmp[0]))
        w.append(float(tmp[1]))
        h.append(float(tmp[2]))
    except EOFError:
        break
f = []
for i in range(len(s)):
    if bmi(w[i],h[i]) >= 25:
      f.append(s[i])
for i in range(len(f)-1):
    print(f[i])
if len(f) != 1 or len(f) != 0:
    print(f[-1])

Submission status: Wrong Answer

Solution code:
def bmi(w,h):
    return w / (h ** 2)

s,w,h = [],[],[]
while True:
    try:
        tmp = input().split(',')
        s.append(float(tmp[0]))
        w.append(float(tmp[1]))
        h.append(float(tmp[2]))
    except EOFError:
        break
f = []
for i in range(len(s)):
    if bmi(w[i],h[i]) >= 25:
      f.append(s[i])
if len(f) != 1 and len(f) != 0:
    for i in range(len(f)-1):
        print(f[i])
if len(f) != 1 and len(f) != 0:
    print(f[-1])
elif len(f) == 1:
    print(f[0])

Submission status: Wrong Answer

Solution code:
try:
    s, w, h = map(float, input().split(','))
    if w / h**2 >= 25:
        print(int(s))
except:
    pass

Submission status: Wrong Answer

Solution code:
total=0
s=0
i=0
try:
 while True:
  a,b = map(int,input().split(','))
  total += a*b
  s+=b
  i+=1
except:
 result=i+0.5 
 print(total)
 if isinstance(result,float):
    print(round(result))
 else:
    print(result)

Submission status: Wrong Answer

Solution code:
while True:
    try:
        s, w, h = map(float, input().split(','))
        if w / pow(h, 2) > 25:
            print(int(s))
    except:
        break

Submission status: Wrong Answer

Solution code:
# Aizu Problem 0075: BMI
#
import sys, math, os

# read input:
PYDEV = os.environ.get('PYDEV')
if PYDEV=="True":
    sys.stdin = open("sample-input.txt", "rt")


for line in sys.stdin:
    line = line.split(',')
    s = line[0]
    w = float(line[1])
    h = float(line[2])
    bmi = w / h**2
    if bmi > 25:
        print(s)

Submission status: Wrong Answer

Solution code:
import sys
for line in sys.stdin.readlines():
    ID,w,h=map(float,line.strip().split(","))
    if w/(h**2)>25:
        print int(ID)

Submission status: Wrong Answer

Solution code:
ans=[]
while True:
    try:
        stdNum,weight,height=map(float,raw_input().split(','))
    except EOFError:
        break
    if weight/(height**2) > 25.0:
        ans.append(int(stdNum))
        
for i in ans:
    print i

Submission status: Wrong Answer

Solution code:
import sys

l = [s.split(',') for s in sys.stdin]
print '\n'.join([i for i,j,k in l if float(j)/float(k)**2 > 25])

Submission status: Wrong Answer

Solution code:
while True:
    try:
        n, w, h = map(float, raw_input().split())
        if w/h**2 >= 25.0:
            print int(n)
    except:
        break

Submission status: Wrong Answer

Solution code:
personal = []
while True:
	try:
		personal.append(map(float,raw_input().split(',')))
	except:
		for date in personal:
			bmi = date[1] / (date[2]**2)
			if bmi > 25:
				print int(date[0])
		break

Submission status: Wrong Answer

Solution code:
while True:
    try:
        line = input()
    except EOFError:
        break

    n, w, t = map(float, line.split(','))
    if w / t**2 > 25: print(int(n))

Submission status: Accepted

Solution code:
import sys
print("\n".join(map(str, [int(s) for l in sys.stdin for s, w, h in [map(float, l.split(","))] if w/h**2 >= 25])))

Submission status: Accepted

Solution code:
i = 0
date = {}
while i < 50:
	try:
		s, w, h = list(map(float,input().split(",")))
	except:
		break
	date.update({int(s):w/h/h})
	i += 1
li = [i for i in date if date[i] >= 25]
for i in range(len(li)): print(li[i])

Submission status: Accepted

Solution code:
import sys
for s in sys.stdin:
    n,w,l = map(float,s.split(","))
    if w/l/l >= 25.0:
        print int(n)

Submission status: Accepted

Solution code:
import sys

for line in sys.stdin:
    l = line.split(',')
    uid = l[0]
    w = float(l[1])
    h = float(l[2])
    # print(uid,w,h)
    if w/(h*h) >= 25:
        print(uid)

Submission status: Accepted

Solution code:
import sys
f = sys.stdin

for line in f:
    id, weight, height = line.strip().split(',')
    weight = float(weight)
    height = float(height)
    if 25 <= weight / height / height:
        print(id)

Submission status: Accepted

Solution code:
while True:
    try:
        data=map(float,raw_input().split(","))
        if data[1]/data[2]**2 >= 25.0:
            print int(data[0])
    except:
        break

Submission status: Accepted

Solution code:
while True:
    try:
        n,w,h = raw_input().split(',')
        l = []
        if float(w)/(float(h))**2 >= 25:
            l.append(n)
        for j in l:
            print j
        
    except EOFError:
        break

Submission status: Accepted

Solution code:
while True:
    try:
        n,w,h = raw_input().split(',')
        if float(w)/(float(h))**2 >= 25: print n
    except EOFError: break

Submission status: Accepted

Solution code:
import sys

result = []
for line in sys.stdin:
    n, weight, height = map(float, line.rstrip().split(','))
    if 25 <= weight / (height**2):
        result.append(int(n))
else:
    if result:
        for n in result:
            print n

Submission status: Accepted

Solution code:
import sys

for l in sys.stdin.readlines():
    data = l.split(",")
    x, y = float(data[1]), float(data[2])
    if 25.0 <= x / y ** 2:
        print(data[0])

Submission status: Accepted

Solution code:
import sys
for line in sys.stdin.readlines():
  n,w,h = map(float,line.rstrip().split(','))
  if w / h**2 >= 25:
    print(int(n))

Submission status: Accepted

Solution code:
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
import time
import sys
import io
import re
import math
import itertools
import collections
#sys.stdin=file('input.txt')
#sys.stdout=file('output.txt','w')
#10**9+7
mod=1000000007
#mod=1777777777
pi=3.141592653589
xy=[(1,0),(-1,0),(0,1),(0,-1)]
bs=[(-1,-1),(-1,1),(1,1),(1,-1)]
def gcd(a,b): return a if b==0 else gcd(b,a%b)
def lcm(a,b): return a*b/gcd(a,b)
def choco(xa,ya,xb,yb,xc,yc,xd,yd): return 1 if abs((yb-ya)*(yd-yc)+(xb-xa)*(xd-xc))<1.e-10 else 0

#n=int(raw_input())
cnt=0
while 1:
    try:
        n,w,h=map(str,raw_input().split(','))
        b=float(w)/(float(h)**2)
        if b>=25.0:
            cnt=1
            print n
    except:
        if cnt==0:
            print '????????????'
        break
exit()

Submission status: Accepted

Solution code:
if __name__=="__main__":
    while True:
        try:
            data=raw_input().split(',')
            num=int(data[0])
            g=float(data[1])
            sin=float(data[2])**2
            bmi=g/sin
            if bmi>=25:
                print num
        except EOFError:break

Submission status: Accepted

Solution code:
while True:
	try:
		number,weight,height=map(float,input().split(','))
		bmi=weight/(height)**2
		if bmi>=25:
			print(int(number))
	except EOFError:
		break

Submission status: Accepted

Solution code:
import sys

for line in sys.stdin:
    id, w, h = map(float, line.split(','))
    if w/h/h >= 25.0:
        print int(id)

Submission status: Accepted

Solution code:
import sys

def inp():
    for i in sys.stdin:
        num = map(float, i.split(","))
        if num[1] / (num[2]**2) >= 25:
            print str(int(num[0]))

if __name__ == "__main__":
    inp()

Submission status: Accepted

Solution code:
while True: 
  try: 
    a, b, c = map(float, input(). split(",")) 
    if b / (c ** 2) >= 25.0: 
      print(int(a)) 
  except: 
    break

Submission status: Accepted

Solution code:
while 1:
    try:
        s,w,h=map(float,raw_input().split(","))
        if w/h**2>=25:
            print(int(s))
    except:
        break

Submission status: Accepted

Solution code:
while True:
    try:
        s,w,h = map(float,input().split(","))
        if (w / (h ** 2)) >= 25:
            print(int(s))
    except EOFError:
        break

Submission status: Accepted

Solution code:
import sys

for line in sys.stdin:
    s, w, h = line.strip().split(",")
    if float(w) / float(h) ** 2 >= 25: print(s)

Submission status: Accepted

Solution code:
a=[]
while 1:
    try:n,w,h=map(float,input().split(','))
    except:
        for i in a:print(i)
        break
    if w/h**2>=25:a.append(int(n))

Submission status: Accepted

Solution code:
def bmi(w,h):
    return w / (h ** 2)

s,w,h = [],[],[]
while True:
    try:
        tmp = input().split(',')
        s.append(int(tmp[0]))
        w.append(float(tmp[1]))
        h.append(float(tmp[2]))
    except EOFError:
        break
f = []
for i in range(len(s)):
    if bmi(w[i],h[i]) >= 25:
      f.append(s[i])
if len(f) != 1 and len(f) != 0:
    for i in range(len(f)-1):
        print(f[i])
if len(f) != 1 and len(f) != 0:
    print(f[-1])
elif len(f) == 1:
    print(f[0])

Submission status: Accepted

Solution code:
while True:
    try:
        f = input().strip().split(',')
        num = f[0]
        w,h = map(float,f[1:])
        if w/h/h >= 25.0:
            print(num)
    except EOFError:
        break

Submission status: Accepted

Solution code:
ans = []
while True:
    try:
        A = list(input().split(','))
    except EOFError:
        break
    S = int(A [0])
    W,H = float(A [1]),float(A [2])
    if W / H / H >= 25.0:
        ans.append(S)

for i in ans:
    print(i)

Submission status: Accepted

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

import sys
import os
import math

for s in sys.stdin:
    s, w, h = map(float, s.split(','))

    BMI = w / h / h

    if BMI >= 25:
        print(int(s))

Submission status: Accepted

Solution code:
try:
    while True: 
        s, w, h = map(float, input().split(','))
        if w / h**2 >= 25:
            print(int(s))
except:
    pass

Submission status: Accepted

Solution code:
while True:
 try:
   a,b,c=map(float,input().split(','))
   bmi=b/c**2
   if bmi>=25:
     print(int(a))
 except:
  break

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
"""
http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=0075
"""
import sys


def is_overweight(weight, height):
    bmi = weight / height**2
    if bmi >= 25.0:
        return True
    else:
        return False


def main(args):
    result = []
    for line in sys.stdin:
        id, weight, height = [float(x) for x in line.strip().split(',')]
        # print(id, weight, height)
        if is_overweight(weight, height):
            result.append(int(id))

    for id in result:
        print(id)

if __name__ == '__main__':
    main(sys.argv[1:])

Submission status: Accepted

Solution code:
while True:
    try:
        s, w, h = map(float, input().split(','))
        if w / pow(h, 2) >= 25:
            print(int(s))
    except:
        break

Submission status: Accepted

Solution code:
# Aizu Problem 0075: BMI
#
import sys, math, os

# read input:
PYDEV = os.environ.get('PYDEV')
if PYDEV=="True":
    sys.stdin = open("sample-input.txt", "rt")


for line in sys.stdin:
    line = line.split(',')
    s = line[0]
    w = float(line[1])
    h = float(line[2])
    bmi = w / h**2
    if bmi >= 25:
        print(s)

Submission status: Accepted

Solution code:
import sys

for line in sys.stdin:
  try:
    s, w, h = [float(i) for i in line.split(',')]
    if w / h**2 >= 25:
      print(int(s))
  except:
    break

Submission status: Accepted

Solution code:
import sys

for i in sys.stdin:
    n, w, t = map(float, i.split(','))
    print(int(n)) if w/(t**2) >= 25 else print('', end='')

Submission status: Accepted

Solution code:
def get_input():
    while True:
        try:
            yield ''.join(input())
        except EOFError:
            break

N = list(get_input())
for l in range(len(N)):
    S,W,H = N[l].split(",")
    s = int(S)
    w = float(W)
    h = float(H)
    BMI = w / h**2
    if BMI >= 25.0:
        print(s)

Submission status: Accepted

Solution code:
while True:
    try:
        s, w, h = map(float, input().split(","))
        if w/h**2 >= 25:
            print(int(s))
    except:
        break

Submission status: Accepted

Solution code:
import sys
for e in sys.stdin:
 s,w,h=e.split(',')
 if float(w)/float(h)**2>=25:print(s)

Submission status: Accepted

Solution code:
import sys
for e in sys.stdin:
 s,w,h=e.split(',')
 float(w)/float(h)**2<25 or print(s)

Submission status: Accepted

Solution code:
while True:
  try:
    s, w, h = input().split(",")
    if float(w) / float(h) ** 2 >= 25:
      print(s)

  except EOFError:
    break

Submission status: Accepted

Solution code:
import sys
l=[list(map(float,i.split(","))) for i in sys.stdin]
bmi=lambda i:i[1]/(i[2]**2)
[print(int(i[0])) for i in l if bmi(i)>=25]

Submission status: Accepted

Solution code:
# AOJ 0075 BMI
# Python3 2018.6.14 bal4u

while True:
	try:
		s, w, h = list(input().split(','))
	except EOFError:
		break
		
	if float(w) / float(h)**2 >= 25:
		print(s)

Submission status: Accepted

Solution code:
while True:
 try:
  a,b,c = map(float,raw_input().split(","))
  a = int(a)
  BMI= b/c**2
  if BMI >= 25: 
    print a
 except EOFError: break

Submission status: Accepted

Solution code:
#!/usr/bin/env python
# coding: utf-8

import sys


def is_himan(weight, height):
    bmi = weight / (height ** 2)
    himan = False
    if bmi >= 25:
        himan = True
    return himan


def main():
    params = [line.rstrip().split(",") for line in sys.stdin.readlines()]
    for param in params:
        weight = float(param[1])
        height = float(param[2])

        if is_himan(weight, height):
            print param[0]

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
while True:
    try:
        n = map(str,raw_input().split(','))
        n[1]=float(n[1])
        n[2]=float(n[2])
        if n[1]/n[2]**2 >= 25:
            print n[0]
    except EOFError:break

Submission status: Accepted

Solution code:
import sys
for line in sys.stdin.readlines():
    ID,w,h=map(float,line.strip().split(","))
    if w/(h**2)>=25:
        print int(ID)

Submission status: Accepted

Solution code:
ans=[]
while True:
    try:
        stdNum,weight,height=map(float,raw_input().split(','))
    except EOFError:
        break
    if weight/(height**2) >= 25.0:
        ans.append(int(stdNum))
        
for i in ans:
    print i

Submission status: Accepted

Solution code:

l = []                                                                                                                                                                                                       
while True:
    try:

        stn,a,b = map(float,raw_input().split(","))

        bmi = a/(b**2)
        if bmi >= 25:
            l.append(int(stn))



    except EOFError:
        break

if len(l) == 0:
    print "not found"
else:
    for i in range(len(l)):
        print l[i]

Submission status: Accepted

Solution code:
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import (division, absolute_import, print_function,
                        unicode_literals)
from sys import stdin

for line in stdin:
    number, weight, height = line.split(',')
    if 25.0 <= float(weight) / (float(height) ** 2):
        print(number)

Submission status: Accepted

Solution code:
import sys

l = [s.split(',') for s in sys.stdin]
print '\n'.join([i for i,j,k in l if float(j)/float(k)**2 >= 25])

Submission status: Accepted

Solution code:
while True:
    try:
        n, w, h = map(float, raw_input().split(","))
        if w/h**2 >= 25.0:
            print int(n)
    except:
        break

Submission status: Accepted

Solution code:
import sys
for s in sys.stdin:
        n, w, h = map(float, s.split(","))
        if w/h**2 >= 25.0: print int(n)

Submission status: Accepted

Solution code:
personal = []
while True:
	try:
		personal.append(map(float,raw_input().split(',')))
	except:
		for date in personal:
			bmi = date[1] / (date[2]**2)
			if bmi >= 25:
				print int(date[0])
		break

Submission status: Accepted

Solution code:
import sys
for s in sys.stdin:
    a,b,c=s.split(",")
    n=int(a)
    w,h=map(float,[b,c])
    bmi=w/h/h
    if bmi>=25: print n

Submission status: Accepted

Solution code:
import sys
for s in sys.stdin:
    n,w,h=map(float,s.split(","))
    n=int(n)
    bmi=w/h/h
    if bmi>=25: print n

Submission status: Accepted

Solution code:
import sys
for s in sys.stdin:
    n,w,h=map(float, s.split(","))
    bmi=w/h/h
    if bmi>=25: print int(n)

Submission status: Accepted

Solution code:
import sys
for s in sys.stdin:
    n,w,h=s.split(",")
    n,w,h=int(n),float(w),float(h)
    bmi=w/h/h
    if bmi>=25: print n

Submission status: Accepted

Solution code:
import sys
for s in sys.stdin:
    n,w,h=map(float,s.split(","))
    if w/h**2>=25: print int(n)

Submission status: Accepted

Solution code:
import sys
for s in sys.stdin:
    n,w,h = map(float, s.split(","))
    if w / h**2 >= 25: print int(n)

Submission status: Accepted

Solution code:
while 1:
    try:
        a, b, c = map(float, raw_input().split(','))
    except EOFError:
        break
    if b / c ** 2 >= 25:
        print int(a)

Submission status: Accepted

Solution code:
while True:
    try:
        line = input()
    except EOFError:
        break

    n, w, t = map(float, line.split(','))
    if w / t**2 >= 25: print(int(n))

Submission status: Accepted

Solution code:
while True:
    try:
        lst = list(input().split(','))
        s, w, h = int(lst[0]), float(lst[1]), float(lst[2])
        BMI = w/h/h
        if BMI >= 25:
            print(s)

    except EOFError:
        break

Submission status: Accepted

Solution code:
while True :
    try :
        s, w, h = map(float, input().split(","))
    except EOFError :
        break
    
    BMI = w / h / h
    if BMI >= 25 :
        print(int(s))

Submission status: Accepted

Solution code:
import sys
list = []
for l in sys.stdin:
    s,w,h = l.split(',')
    list.append((int(s),float(w)/float(h)**2))

for x in list:
    if x[1] >=25:
        print(x[0])

Submission status: Accepted

Solution code:
import sys
readlines = sys.stdin.readlines
write = sys.stdout.write
def solve():
    EPS = 1e-9
    for line in readlines():
        s, w, h = line.split(",")
        w = float(w); h = float(h)
        if w > 25*h*h - EPS:
            write("%s\n" % s)
solve()

Submission status: Accepted

Solution code:
try:
    while True:
        int_line = input().split(",")
        int_list = [float(a) for a in int_line]
        num = int_list[1] / (int_list[2] ** 2)
        if num >= 25:
            print(int(int_list[0]))
            continue
        else:
            continue
except EOFError as e:
    m = 0

Submission status: Accepted

Solution code:
try:
    while True:
        s, w, h= map(str, input().split(","))
        if float(w) / float(h)**2 >= 25 :
            print(s)
except EOFError:
    pass

Submission status: Accepted

Solution code:
while True:
    try:
        s,w,h = (float(x) for x in input().split(","))
        bmi = w / (h * h)
        if bmi >= 25:
            print(int(s))
    except:
        break

Submission status: Accepted

Solution code:
while True:
    try:
        a,b,c = map(float,input().split(","))
    except:
        break
    a = int(a)
    if b/(c**2) >= 25:
        print(a)

Submission status: Accepted

Solution code:
import sys
  
r = []
for l in sys.stdin:
    s,w_str,h_str = l.split(',')
    w = float(w_str)
    h = float(h_str)
    bmi = w/(h**2)
    if bmi >= 25:
        r.append(s)

print(*r, sep='\n')

Submission status: Accepted

Solution code:
L = []
while True:
    try:
        id, w, h = [float(x) for x in input().split(",")]
        id = int(id)
        if w / h**2  >= 25:
            L.append(id)
    except EOFError:
        break

for i in L:
    print(i)

Submission status: Accepted

Solution code:
while 1:
    try:
        s, w, h = map(float, input().split(','))
        bmi = w / (h * h)
        if bmi >= 25:
            print(int(s))
    except:
        break

Submission status: Accepted

Solution code:
while True:
  try:
    s,w,h = map(float,input().split(","))
    if w/(h*h)>=25:
      print(int(s))
  except EOFError:
        break

Submission status: Accepted

Solution code:
while True:
    try:
        s,w,h=map(float,input().split(","))
        if w/(h*h)>=25:
            print (int(s))
    except EOFError:
        break

Submission status: Accepted

Solution code:
while True:    
    try:
        s,w,h = map(float,input().split(","))
    except: break

    bmi = w/(h**2)
    if bmi >= 25:
        print(int(s))

Submission status: Accepted

Solution code:
while True:
  try:
    s,w,h=list(input().split(','))
  except EOFError:
    break
  
  if float(w) / float(h)**2 >=25:
    print(s)

Submission status: Accepted

Solution code:
while True:
  try:
    s, w, h = map(float, input().split(','))
    if w / h / h >= 25:
      print(int(s))
  except:
    break

Submission status: Accepted

Solution code:
while True:
    try:
        s,w,h =map(float, input().split(","))
    except:
        break
    bmi = w / (h**2)
    if bmi >= 25.0:
        print(int(s))

Submission status: Accepted

Solution code:
# coding=utf-8

###
### for atcorder program
###

import sys
import math

# math class
class mymath:
    ### pi
    pi = 3.14159265358979323846264338

    ### Prime Number
    def pnum_eratosthenes(self, n):
        ptable = [0 for i in range(n+1)]
        plist = []

        for i in range(2, n+1):
            if ptable[i]==0:
                plist.append(i)
                for j in range(i+i, n+1, i):
                    ptable[j] = 1
        return plist

    ### GCD
    def gcd(self, a, b):
        if b == 0:
            return a
        return self.gcd(b, a%b)

    ### LCM
    def lcm(self, a, b):
        return (a*b)//self.gcd(a,b)

    ### Mat Multiplication
    def mul(self, A, B):
        ans = []
        for a in A:
            c = 0
            for j, row in enumerate(a):
                c += row*B[j]
            ans.append(c)
        return ans

mymath = mymath()

### output class
class output:
    ### list
    def list(self, l):
        l = list(l)
        #print(" ", end="")
        for i, num in enumerate(l):
            print(num, end="")
            if i != len(l)-1:
                print(" ", end="")
        print()

output = output()

### input sample
#i = input()
#N = int(input())
#A, B, C = [x for x in input().split()]
#N, K = [int(x) for x in input().split()]
#inlist = [int(w) for w in input().split()]

#R = float(input())
#A.append(list(map(int,input().split())))

#for line in sys.stdin.readlines():
#    x, y = [int(temp) for temp in line.split()]

#abc list
#abc = [chr(ord('a') + i) for i in range(26)]

### output sample
#print("{0} {1} {2:.5f}".format(A//B, A%B, A/B))
#print("{0:.6f} {1:.6f}".format(R*R*math.pi,R*2*math.pi))
#print(" {}".format(i), end="")

def get_input():
    N = []
    while True:
        try:
            N.append(input())
            #N.append(int(input()))
        except EOFError:
            break
    return N

N = get_input()

for i in N:
    S, W, H = [x for x in i.split(',')]
    BMI = float(W) / (float(H) ** 2)
    if BMI >= 25:
        print(S)

Submission status: Accepted

Solution code:
while True:
  try:
    s, w, h = map(float, input().split(","))
  except:
    break
  bmi = w / h**2
  if bmi >= 25.0:
    print(int(s))

Submission status: Accepted

Solution code:
while True:
        try:
                a = input()
        except:
                break
        s,w,h = map(float,a.split(","))
        bmi = w / (h**2)
        if bmi >= 25:
                print(int(s))

Submission status: Accepted

Solution code:
try:
  while True:
    s,w,h =map(float, input().split(","))

    def BMI(w,h):
      x = w/ (h*h)
      return x

    if BMI(w,h)>=25:
      print(int(s))
except:
  pass

Submission status: Accepted

Solution code:
try:
  while True:
    s,w,h = map(float,input().split(","))
    bmi = w/(h*h)
    if bmi >= 25.0:
      print(int(s))
except:
  pass

Submission status: Accepted

Solution code:
try:
  while True:
    s, w, h = map(float, input().split(","))
    bmi = w / (h*h)
    if bmi >= 25.0:
     print(int(s))
except:
  pass

Submission status: Accepted

Solution code:
while True:
  try:
    s, w, h = input().split(",")
    if float(w) / float(h) ** 2 >= 25:
      print(s)
 
  except EOFError:
    break

Submission status: Accepted

Solution code:
try:
    while True:
        id ,w ,h = map(float,input().split(","))
        bmi = w / (h*h)
        if bmi>=25:
            print(int(id))
        
except:
    pass

Submission status: Accepted

Solution code:
import sys
import os
import math
 
for s in sys.stdin:
    s, w, h = map(float, s.split(','))
 
    BMI = w / h / h
 
    if BMI >= 25:
        print(int(s))

Submission status: Accepted

Solution code:
import sys
for line in sys.stdin.readlines():
  n,w,h = map(float,line.rstrip().split(','))
  if w / h**2 >= 25:
    print(int(n))

Submission status: Accepted

Solution code:
i = 0
date = {}
while i < 50:
	try:
		s, w, h = list(map(float,input().split(",")))
	except:
		break
	date.update({int(s):w/h/h})
	i += 1
li = [i for i in date if date[i] >= 25]
for i in range(len(li)): print(li[i])

Submission status: Accepted

Solution code:
S=[]
while True:
  try:
    s,w,h=map(float,input().split(","))
    if w//(h*h)>=25:
      S.append(int(s))
  except EOFError:
    break
for i in range(len(S)):
  print(S[i])

Submission status: Accepted

Solution code:
try:
   while True:
       id,w,h = map(float,input().split(","))
       bmi = w / (h*h)
       if bmi >= 25.0:
         print(int(id))
except:
 pass

Submission status: Accepted

Solution code:
try:
  while True:
    id, w, h = map(float, input().split(","))
    bmi = w / (h*h)
    if bmi >= 25.0:
      print(int(id))
except:
  pass

Submission status: Accepted

Solution code:
try:
    while True:
        id,w,h = map(float,input().split(","))
        bmi = w / (h*h)
        if bmi >= 25.0:
          print(int(id))
except:
  pass

Submission status: Accepted

Solution code:
try :
  while True :
    s, w, h = map(float, input().split(","))
    BMI = w / (h ** 2)
    if(BMI >= 25) :
      print(int(s))
except :
  pass

Submission status: Accepted

Solution code:
while True:
  try:
    s, w, h = map(float, input().split(","))
  except:
    break
  bmi = w / (h**2)
  if bmi >= 25.0:
    print(int(s))

Submission status: Accepted

Solution code:
try:
    while True:
        id, w, h = map(float, input().split(","))
        bmi = w / (h*h)
        if bmi >= 25.0:
            print(int(id))
except:
    pass

Submission status: Accepted

Solution code:
list=[]

while True:
  try:
    s,w,h=map(float,input().split(","))
  except:break
  
  BMI = w / h**2
  if BMI >= 25:
    list.append(int(s))
  
for n in list:
  print(n)

Submission status: Accepted

Solution code:
import sys
for line in sys.stdin:
  s,w,h=line.strip().split(",")
  if float(w)/(float(h)**2)>=25:
    print(s)

Submission status: Accepted

Solution code:
answer=[]
while 1:
    try:
        s,w,h=map(float,input().split(","))
        if w/h**2>=25:answer.append(s)
    except:
        for i in range(len(answer)):
            print(int(answer[i]))
        break

Submission status: Accepted

Solution code:
import sys
for line in sys.stdin:
	inpt = line.split(',')
	id = int(inpt[0])
	w = float(inpt[1])
	h = float(inpt[2])
	bmi = w / (h*h)
	if 25 <= bmi: print id

Submission status: Accepted

Solution code:
while 1:
    try:
        s,w,h=map(float,input().split(","))
        if w/h/h>=25:print(int(s))
    except:break

Submission status: Accepted

Solution code:
import sys
for l in sys.stdin:
    b=l.split(",")
    c=float(b[2])**2
    if float(b[1])/c>=25:
        print(b[0])

Submission status: Accepted

Solution code:
import sys
a = []
for l in sys.stdin:
    s, w, h =(float(i) for i in l.split(","))
    BMI = w / pow(h,2)
    if (BMI >= 25):
        print(int(s))

Submission status: Accepted

Solution code:
import sys
 
for line in sys.stdin:
    s, w, h = line.strip().split(",")
    if float(w) / float(h) ** 2 >= 25: print(s)

Submission status: Accepted

Solution code:
def bmi(s,w,h):
    if w/h**2 >= 25:
        print(s)

while(1):
    try:
        s,w,h = [i for i in input().split(",")]
        s = int(s)
        w = float(w)
        h = float(h)
        bmi(s,w,h)
    except EOFError:
        break

Submission status: Accepted

Solution code:
anslist = []
while 1:
    try:
        s, w, h = map(float, input().split(","))
    except:
        break

    bmi = w / h**2
    if bmi >= 25:
        anslist.append(int(s))

for ans in anslist:
    print(ans)

Submission status: Accepted

Solution code:
while True:
    try: n = input()
    except: break
    s, w, h = list(n.split(','))
    bmi = float(w) / float(h)**2 >= 25
    if bmi: print(s)

Submission status: Accepted

Solution code:
import sys
for line in sys.stdin:
    s,w,h=map(float,line.split(","))
    if w/h/h>=25:
        print(int(s))

Submission status: Runtime Error

Solution code:
import sys

for line in sys.stdin:
    s, w, h = map(float, line.strip().split(","))
    print(s if w / (h**2) >= 25)

Submission status: Runtime Error

Solution code:
total=0
s=0
i=0
try:
 while True:
  a,b = map(int,input().split(','))
  total += a*b
  s+=b
  i+=1
except:
 result=s/i+0.5 
 print(total)
 if isinstance(result,float):
    print(round(result))
 else:
    print(result)

Submission status: Runtime Error

Solution code:
total=0
s=0
i=0
try:
 while True:
  a,b = map(int,input().split(','))
  total += a*b
  s+=b
  i+=1
except:
 result=s/i+0.5 
 print(total)
 print(round(result))

Submission status: Runtime Error

Solution code:
total=s=i=0
try:
 while True:
  a,b = map(int,input().split(','))
  total += a*b
  s+=b
  i+=1
except:
 result=s/i+0.5 
 print(total)
 print(round(result))

Submission status: Runtime Error

Solution code:
total=s=i=0
try:
 while True:
  a,b = map(int,input().split(','))
  total += a*b
  s+=b
  i+=1
except:
 print(total)
 print(round(s/i+0.5 ))

Submission status: Runtime Error

Solution code:
try:
 total=s=i=0 
 while True:
  a,b = map(int,input().split(','))
  total += a*b
  s += b
  i += 1
except:
 print(total)
 print(round(s/i+0.5 ))