Go: package main

import (
	"bufio"
	"fmt"
	"os"
	"strconv"
	"strings"
)

var sc = bufio.NewScanner(os.Stdin)

// func read() string {
// 	sc.Scan()
// 	return sc.Text()
// }

func main() {
	sc.Split(bufio.ScanLines)
	for sc.Scan() {
		n := strings.Split(sc.Text(), ",")
		id, _ := strconv.Atoi(n[0])
		weight, _ := strconv.ParseFloat(n[1], 64)
		height, _ := strconv.ParseFloat(n[2], 64)
		bmi := weight / (height * height)
		if bmi >= 25.0 {
			fmt.Println(id)
		}
	}
}

C++: #include <bits/stdc++.h>

using namespace std;

int main(){

        double bmi[3];

        while(scanf("%lf,%lf,%lf", &bmi[0], &bmi[1], &bmi[2]) != EOF){

                if(bmi[1] / (bmi[2] * bmi[2]) >= 25) cout << bmi[0] << endl;

        }

}

C++: #include <iostream>
#include <sstream>
#include <cstdio>
#include <cstdlib>
#include <cmath>
#include <cstring>
#include <string>
#include <vector>
#include <stack>
#include <queue>
#include <set>
#include <map>
#include <algorithm>
#include <functional>

using namespace std;

int main()
{
	string buffer;

	while ( cin >> buffer )
	{
		for ( unsigned i = 0; i < buffer.length(); i++ )
		{
			if ( buffer[i] == ',' )
			{
				buffer[i] = ' ';
			}
		}

		int num;
		double weight, height;

		istringstream( buffer ) >> num >> weight >> height;

		if ( 25 <= weight / pow( height, 2 ) )
		{
			cout << num << endl;
		}
	}

	return 0;
}

C++: #include <algorithm>
#include <vector>
#include <math.h>
#include <stdio.h>
#include <cctype>
#include <iostream>
#include <set>
#include <string>
#include <queue>
#include <map>
using namespace std;
int size(string x){
	string::size_type size=x.size();
	return size;
}
#define fu(l,k) for(int i=l;i<k;i++)
#define fd(l,k) for(int i=l;i>k;i--)
#define fi first
#define se second
typedef  vector<string> vs;
typedef  vector<int> vi;
double pi(){
	return M_PI;
}
typedef set<int> set_i;
typedef set<string> set_s;
int INF=1000000;
int main(){
	int name;
	double w,t;
	char n;
	while(cin>>name>>n>>w>>n>>t){
		double bmi;
		bmi=w/(t*t);
		if(bmi>=25) cout<<name<<endl;
	}
}

C++: #include <iostream>
using namespace std;

int main() {

  int n;
  double w,h;
  char c;

  while( cin >> n >> c >> w >> c >> h ) {

    if ( w / ( h*h ) >= 25.00 ) cout << n << endl;

  }

  return 0;

}

C++: #include <iostream>
#include <string>
#include <cmath>
using namespace std;

int num;
double w, h, BMI;
char cnm;

double BMIk(double w, double h){
	double ans = w / pow(h, 2);
	return ans;
}

int main(){
	while(cin >> num >> cnm >> w >> cnm >> h){
		BMI = BMIk(w, h);
		if(BMI >= 25){
			cout << num < endl;
		}
	}
	return 0;
}

C++: #include<iostream>
#include<cstdio>
#include<cmath>
#include<vector>
#include<string>
#include<queue>
#include<map>
#include<stack>
#include<cstdlib>
#include<cstring>
#include<algorithm>
#include<sstream>


#define reps(i,f,n) for(int i = f; i < int(n); i++)
#define rep(i,n) reps(i,0,n)

#define PII pair<int,int>
#define PP pair< int,PII >


using namespace std;

int main(){
	
	int num;
	double w,h;
	
	while(scanf("%d,%lf,%lf", &num, &w, &h)!=EOF){
		if(25.0*h*h <= w){
			printf("%d\n", num);
		}
	}
	return 0;
}

C++: #define _CRT_SECURE_NO_WARNINGS
#include<bits/stdc++.h>
using namespace std;
#ifndef FAST_IO
 #define IOS ios_base::sync_with_stdio(false);cin.tie(nullptr);
#endif

#define FILE_IO freopen("input.txt","r",stdin)
//#define int long long
#define f first
#define s second
#define endl '\n'
#define all(c) c.begin(),c.end()
#define bp __builtin_popcount
#define debug(x) cerr << #x << " = " << x << endl;

const int MOD = 1e7 + 7;
//const int INF = 1e18;

mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());
template <typename T>void print(T t){for(auto &it : t)cout<<it<<" ";}
inline int powerexp(int a, int b, int m = MOD){ int res = 1;while(b){if(b&1)res = res * a % m;a = a * a % m,b >>= 1;}return res % m;}
inline int modinv(int a){ return powerexp(a,MOD-2,MOD);}
inline int lcm(int a, int b){ int g = __gcd(a,b);return a/g*b;}
inline int add(int x, int y){ x += y; if (x >= MOD) x -=  MOD; return x;}
inline int mul(int x, int y){ return (x * 1ll * y) % MOD;}
inline int sub(int x, int y){ x -= y; if (x<0) x += MOD; return x ;}

//-------------------< start here >-------------------------// 
const int N = 1000;
int value[N]; 
double  weight[N], height[N];
char ch;

double BMI(double height, double weight){
   return weight / pow(height / 100.0, 2);	
}

void solve(){
   int c = 0;
   while(cin >> value[c] >> ch >> weight[c] >> ch >> height[c]) c++;
   
   for(int i = 0; i < c; i++){
	   if (BMI(height[i] * 100.0, weight[i]) >= 25.00){
		    cout << value[i] << endl; 
		  } 
	 }  
}

//-----------------------------
//comment from here for TOPCODER 
int32_t main(){
   IOS;
   solve();
   //find();
   #ifdef LOCAL_DEFINE
   cerr << "time elapsed " << (double)clock()/CLOCKS_PER_SEC << endl;
   #endif
}

C++: #include <iostream>
#include <algorithm>
#include <string>
#include <sstream>
using namespace std;


int main() {
  string str;
  while(getline(cin,str)) {
    replace(str.begin(), str.end(), ',', ' ');
    stringstream ss;
    ss << str;
    int num;
    double w, h;
    ss >> num >> w >> h;
    if(w/(h*h) >= 25.0) cout << num << endl;
  }
  return 0;
}

C++: #include <iostream>
#include <cstdio>
#include <vector>
using namespace std;

double calcBMI(double weight, double height) {
    return(weight / (height*height));
}

int main(void) {
    int no;
    double weight, height;
    vector<int> selection;
    while(scanf("%d,%lf,%lf", &no, &weight, &height) != EOF) {
        if(calcBMI(weight, height) >= 25) {
            selection.push_back(no);
        }
    }
    if(selection.size() == 0) {
        cout << "該当なし" << endl;
        return(0);
    }
    vector<int>::iterator ite;
    for(ite = selection.begin(); ite != selection.end(); ite++) {
        cout << *ite << endl;
    }
    return(0);
}

C++: #include<iostream>
#include<cstdio>
#define eps 10e-9
using namespace std;
int main()
{
	int n;
	double w,h;
	while(scanf("%d,%lf,%lf",&n,&w,&h)!=EOF)
	{
		if(25.0+eps<w/(h*h)) cout<<n<<endl;
	}
  return 0;
}