#include<iostream> #include<iomanip> using namespace std; int main() { int n; cin>>n; int x,y; double sum=0; for(int i=1;i<=n;i++) { cin>>x>>y; sum=sum+x*y/(10.0); } cout<<setiosflags(ios::fixed)<<setprecision(2)<<sum; return 0; }