import java.util.*;
class Main
{
{
Scanner scan
= new Scanner
(System.
in); double total=0, sum=0;
while (scan.hasNext()){
if (!scan.hasNextDouble()){
scan.next();
total += scan.nextDouble();
sum++;
}
else scan.next();
}
}
}
aW1wb3J0IGphdmEudXRpbC4qOwogCmNsYXNzIE1haW4KewoJcHVibGljIHN0YXRpYyB2b2lkIG1haW4gKFN0cmluZ1tdIGFyZ3MpIHRocm93cyBqYXZhLmxhbmcuRXhjZXB0aW9uCgl7CgkJU2Nhbm5lciBzY2FuID0gbmV3IFNjYW5uZXIoU3lzdGVtLmluKTsKCQlkb3VibGUgdG90YWw9MCwgc3VtPTA7CgkJCgkJd2hpbGUgKHNjYW4uaGFzTmV4dCgpKXsKCQkJaWYgKCFzY2FuLmhhc05leHREb3VibGUoKSl7CgkJCQlzY2FuLm5leHQoKTsKCQkJCXRvdGFsICs9IHNjYW4ubmV4dERvdWJsZSgpOwoJCQkJc3VtKys7CgkJCX0KCQkJZWxzZQlzY2FuLm5leHQoKTsKCQl9CgkJU3lzdGVtLm91dC5wcmludCh0b3RhbC9zdW0pOwoJfQp9IA==