#include <iostream>
using namespace std;
int main()
{
int inaltime, varsta;
float greutate;
char sx;
//Citire date :
cout << "Inaltimea (cm) :";
cin >> inaltime;
cout << "Varsta :";
cin >> varsta;
cout << "Introduce S.e.x.u.l (M/F) :";
cin >> sx;
//Procesare
greutate = 50 + 0.75 * (inaltime - 150) + (varsta - 20) / 4;
if(sx = 'F' || sx == 'f') greutate = greutate - 10;
//Afisare date
cout << "Greutatea ta ideala trebuie sa fie " << greutate << " KG." << endl;
}