#include <iostream>
using namespace std;
int main() {
float media;
int totale=0;
int conta=0;
int tempo=0;
do {
cin >>tempo;
if (tempo!= 0){
totale= totale+ tempo;
conta=conta+1;
}
} while (tempo!= 0);
media= 1.0* totale/ conta;
cout <<media;
// your code goes here
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CglmbG9hdCBtZWRpYTsKCWludCB0b3RhbGU9MDsKCWludCBjb250YT0wOwoJaW50IHRlbXBvPTA7CglkbyB7CgkJY2luID4+dGVtcG87CgkJaWYgKHRlbXBvIT0gMCl7CgkJCXRvdGFsZT0gdG90YWxlKyB0ZW1wbzsKCQkJY29udGE9Y29udGErMTsKCQl9Cgl9IHdoaWxlICh0ZW1wbyE9IDApOwoJbWVkaWE9IDEuMCogdG90YWxlLyBjb250YTsKCWNvdXQgPDxtZWRpYTsKCQoJLy8geW91ciBjb2RlIGdvZXMgaGVyZQoJcmV0dXJuIDA7Cn0=