1135: 算菜价
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner cin = new Scanner(System.in);
double ans=0;
while(cin.hasNext())
{
String str=cin.next();
double w=cin.nextDouble();
double p=cin.nextDouble();
ans+=w*p;
}
System.out.printf("%.1f",ans);
}
}