import java.util.*;
import java.lang.*;
import java.io.*;
class A278 {
Scanner scanner
= new Scanner
(System.
in); double numerator = 0;
int denominator = 0;
while (scanner.hasNext()) {
int n = scanner.nextInt();
double x = scanner.nextDouble();
numerator += n*x;
denominator += n;
}
double result = numerator / denominator;
}
}
CmltcG9ydCBqYXZhLnV0aWwuKjsKaW1wb3J0IGphdmEubGFuZy4qOwppbXBvcnQgamF2YS5pby4qOwoKY2xhc3MgQTI3OCB7CglwdWJsaWMgc3RhdGljIHZvaWQgbWFpbiAoU3RyaW5nW10gYXJncykgdGhyb3dzIGphdmEubGFuZy5FeGNlcHRpb24gewoJCVNjYW5uZXIgc2Nhbm5lciA9IG5ldyBTY2FubmVyKFN5c3RlbS5pbik7CiAgICAgICAgZG91YmxlIG51bWVyYXRvciA9IDA7CgkJaW50IGRlbm9taW5hdG9yID0gMDsKCQl3aGlsZSAoc2Nhbm5lci5oYXNOZXh0KCkpIHsKCQkJaW50IG4gPSBzY2FubmVyLm5leHRJbnQoKTsKCQkJZG91YmxlIHggPSBzY2FubmVyLm5leHREb3VibGUoKTsKCQkJbnVtZXJhdG9yICs9IG4qeDsKCQkJZGVub21pbmF0b3IgKz0gbjsKCQl9CgkJZG91YmxlIHJlc3VsdCA9IG51bWVyYXRvciAvIGRlbm9taW5hdG9yOwoJCVN5c3RlbS5vdXQucHJpbnRsbihyZXN1bHQpOwoJfQp9