#include <iostream>
#include <fstream>
using namespace std;
ifstream f("f.txt");
int a,b,c,suma, nint, nreale;
float d,e,media;
int main()
{
while (f >>a>>b>>c>>d>>e)
{
nreale+=2;
nint+=3;
suma=suma+a+b+c;
}
media=1.0*suma/nint;
cout << "fisierul contine " << nreale << " numere reale" << endl;
cout << "media aritmetica a tuturor numerelor intregi din fisier este " << media;
}