#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;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8YWxnb3JpdGhtPgojaW5jbHVkZSA8dmVjdG9yPgoKaW50IG1haW4oKQp7CglzdGQ6OnZlY3Rvcjx1bnNpZ25lZD4gZ3JhZGVzOwoJdW5zaWduZWQgZ3JhZGU7CglzdGQ6OmNpbiA+PiBncmFkZTsKCXdoaWxlIChncmFkZSAhPSAwKSB7CgkgICAgZ3JhZGVzLnB1c2hfYmFjayhncmFkZSk7CgkgICAgc3RkOjpjaW4gPj4gZ3JhZGU7Cgl9CglzdGQ6OmNvdXQgPDwgIllvdSBoYXZlIGVudGVyZWQgIiA8PCBncmFkZXMuc2l6ZSgpIDw8ICIgZWxlbWVudHMiIDw8IHN0ZDo6ZW5kbDsKCXN0ZDo6Y291dCA8PCAiWW91ciBHUEEgaXMgIiA8PCAoc3RkOjphY2N1bXVsYXRlKGdyYWRlcy5iZWdpbigpLCBncmFkZXMuZW5kKCksIDB1KSAvIGdyYWRlcy5zaXplKCkpIDw8IHN0ZDo6ZW5kbDsKfQ==