#include<iostream>
#include<string>

using namespace std;

int main()
{
	string str[9];
	int sum[20];
	int a,b;
	
	for(int i=0;i<9;i++)
	{
		cin >> str[i] >> a >> b ;
		sum[i]=a+b;
		sum[9+i]=200*a+300*b;
	}
	
	for(int i=0;i<9;i++)
		cout << str[i] << " " << sum[i] << " " << sum[9+i] << endl;
}