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 <cstdio>
#include <utility>
using namespace std;

#define gcu getchar_unlocked
#define ii inline int in
#define is inline bool scan
ii(int c) {
	int n = 0;
	bool minus = false; if (c == '-') minus = true, c = gcu();
	do {n = 10 * n + (c - '0'), c = gcu();} while (c >= '0');
	//return n; }
	return minus ? -n : n; }
ii() {return in(gcu());}
is(int &n) {int c=gcu();return c==EOF?false:(n=in(c),true);}
is(char &c){c=gcu();gcu();return c!=EOF;}
//is(string &s) {int c;for(;;){c=gcu();if(c=='\n'||c==' ')return true;s+=c;}}
#undef ii
#define pcu putchar_unlocked
template <typename T>
void out(T n) {
	static char buf[20];
	char *p = buf;
	if(n < 0) pcu('-'), n *= -1;
	if (!n) *p++ = '0';
	else while (n) *p++ = n % 10 + '0', n /= 10;
	while (p != buf) pcu(*--p); }
void out(const char *s){while(*s)pcu(*s++);}
void out(char c){pcu(c);}
//void out(string &s){for (char c: s) pcu(c);}
template <typename head, typename... tail>
void out(head&& h, tail&&... t){out(h);out(move(t)...);}
//template <typename T>
//void out(vector<T> &v){for(T &x:v)out(' '),out(x);out('\n');}
//void out(vector<T> &v){for(T &x:v)out(&x == &v[0]?"":" "),out(x);out('\n');}
#undef svo

int main() {
	int n;
	float w, h;
	while (scanf("%d,%f,%f", &n, &w, &h) != EOF) {
		if (w / (h * h) >= 25)
			out(n, '\n');
	}
}

C++: #include <cstdio>
#include <vector>
using namespace std;
const double BMI_FAT = 25.0;

int main(int argc, char *argv[]) {
	vector<int> fat_list;
	
	int id;
	float mass, height;
	while (EOF != fscanf(stdin, "%d,%f,%f", &id, &mass, &height)) {
		float bmi = mass / (height * height);
		if (BMI_FAT <= bmi) {
			fat_list.push_back(id);
		}
	}
	// print
	const int list_size = static_cast<int>(fat_list.size());
	if (list_size > 0) {
		for (int i = 0; i < list_size; i++) {
			printf("%d\n", fat_list[i]);
		}
	}
	else {
		puts("ツ該ツ督鳴づ按つオ");
	}
	return 0;
}

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

const double EPS = 1e-9;

//æØè¶ÅæØéB
//s=üÍ,t=æØè¶
std::vector<string> splitAll(string s,string t){

  std::vector<string> v;

  for(int p=0; (p = s.find(t)) != s.npos; ){
    v.push_back(s.substr(0,p));
    s=s.substr(p+t.size());
  }
  v.push_back(s);

  return v;
}


int main() {

  string s;
  while(getline(cin,s)){
    if( s=="" ) break;
    vector<string> v;
    v = splitAll(s,",");
    double w = atof( v[1].c_str() );
    double h = atof( v[2].c_str() );
    if( (w/(h*h) - 25.0) > EPS ) {
      cout<<v[0]<<endl;
    }
  }
}

C++: #include <iostream>
using namespace std;
int main() {
    int n;
    double w, h;
    char d;
    while (cin >> n >> d >> w >> d >> h) {
        if (w / (h * h) >= 25) {
            cout << n << "\n";
        }
    }
    return 0;
}

C++: #include <stdio.h>

int main(){
  int s;
  double w,h;
  while(scanf("%d,%lf,%lf",&s,&w,&h)!=EOF){
    double BMI = w / (h*h);
    if(BMI>=25) printf("%d\n",(int)s);
  }
  return 0;
}

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

int main() {
	double bmi;
	int s;
	double w, h;
	while (scanf("%d,%lf,%lf", &s, &w, &h) + 1) {
		bmi = w / (h*h);
		if (bmi >= 25) {
			cout << s;
		}
	}
	return 0;
}

C++: #include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <functional>
#include <map>
#include <numeric>
using namespace std;

#define FOR(i,a,b) for(long long int i=(a);i<(b);i++)
#define REP(i,n) for(long long int i=0;i<(n);i++)
#define ALL(s) (s).begin(),(s).end()

#define PI 3.14159265358479

typedef long long ll;
typedef vector<long long int> vi;
typedef vector<long long int>::iterator vit;

int main(){
	int n, c = 0;
	double l, m;
	vector<ll> vi;
	while (scanf("%d,%lf,%lf", &n, &l, &m) != EOF){
		if (l / powl(m, 2) >= 25){
			vi.push_back(n);
			c++;
		}
	}
	if (c == 0){
		cout << "????????????\n";
	}
	else{
		REP(i, c){
			cout << vi[i] << "\n";
		}
	}
	return 0;
}

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

int main() {
	int s;
	double w, h;
	std::vector <int> fat;
	while (std::cin >> s >> w >> h) {
		if (w / h / h >= 25){
			fat.push_back(s);
		}
	}
	for (int i = 0; i < fat.size(); i++){
		cout << fat[i] << endl;
	}
	return 0;
}

C++: #include<iostream>
#include<sstream>
#include<fstream>
#include<vector>
#include<list>
#include<stack>
#include<queue>
#include<deque>
#include<set>
#include<map>
#include<algorithm>
#include<string>
#include<utility>
#include<cmath>
#include<cstdlib>
#include<cstdio>
#include<cstring>
#include<cctype>
using namespace std;


int main(){
	int n;
	double a,b;
	map<int,double> data;
	
	while(scanf("%d,%lf,%lf",&n,&a,&b) != EOF){
		data[n] = a/pow(b,2);
	}
	
	for(map<int,double>::iterator it = data.begin();it!=data.end();++it){
		if( it->second > 25.0){
			printf("%d\n",it->first);
		}
	}

}

C++: #include <iostream>
#include <cmath>
using namespace std;
int main(void){
    int s;
    double w, h;
 
    while(scanf("%d, %lf, %lf", &s, &w, &h) != EOF){
        double BMI;
        BMI = w / pow(h, 2);
        if(BMI >= 25){
            cout << s << endl;
        }
    }
}

C++: #include <iostream>
#include <algorithm>
using namespace std;
int main(void){
    int a;
    char d;
    double b,c;
    
    while(cin>>a>>d>>b>>d>>c) {
        if(b/(c*c)>=25) cout << a << endl;}

    
}

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

int main()
{
  int id;
  char k;
  double wei, hei;
  while(cin >> id >> k >> wei >> k >> hei)
    if(25 <= wei / (hei * hei))
      cout << id << endl;
}

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

int main() {
  int n;
  double w, h, bmi;
  char c;

  while (cin >> n >> c >> w >> c >> h) {
    bmi = w/(h*h);
    if (bmi >= 25.0) cout << n << endl;
  }

  return 0;
}

C++: #include<iostream>
#include<algorithm>
#include<vector>
#include<cstdio>
#include<cstring>
#include<climits>
#include<cfloat>
#include<cmath>
#include<map>
#include<complex>

#define f first
#define s second
#define mp make_pair

#define REP(i,n) for(int i=0; i<(int)(n); i++)
#define FOR(i,c) for(__typeof((c).begin()) i=(c).begin(); i!=(c).end(); i++)
#define ALL(c) (c).begin(), (c).end()
#define DBL(x) ((x)*(x))

typedef unsigned int uint;
typedef long long ll;

using namespace std;

int main(){
  char buff[64];
  double w,h;
  while(~scanf(" %[0-9],%lf,%lf",buff,&w,&h))
    if(w/(h*h) >= 25.0) puts(buff);
  return 0;
}

C++: #include <cstdio>
#include <cmath>
#include <vector>
using namespace std;
int main() {
	vector<int> over;
	int num;
	float w, h;
	while (scanf("%d,%f,%f",&num,&w,&h)!=EOF) {
		double bmi = w/pow(h,2);
		if (bmi>=25) over.push_back(num);
	}
	if (over.empty()) {
		printf("ツ該ツ督鳴づ按つオ\n");
	} else {
		for (int i=0; i<over.size(); i++) printf("%d\n",over[i]);
	}
}

C++: #include<iostream>
#include<vector>
using namespace std;
int main()
{
	int s[50] = {};
	double w[50] = {};
	double h[50] = {};
	int i = 0;
	vector <int> sb(50, 0);
	while (scanf("%d,%f,%f", s[i], w[i], h[i])) {
		if ((w[i] / (h[i] * h[i])) >= 25) {
			sb.push_back(s[i]);
		}
		i++;
	}
	int j = 0;
	while (sb[j] == 0) {
		cout << sb[j] << endl;
		j++;
	}

	return 0;
}