#include <iostream>
#include <algorithm>
#include <vector>

int main()
{
	std::vector<unsigned> grades;
	unsigned grade;
	std::cin >> grade;
	while (grade != 0) {
	    grades.push_back(grade);
	    std::cin >> grade;
	}
	std::cout << "You have entered " << grades.size() << " elements" << std::endl;
	std::cout << "Your GPA is " << (std::accumulate(grades.begin(), grades.end(), 0u) / grades.size()) << std::endl;
}