#include<iostream>
#include<string>
using namespace std;
int main(){
	int am,pm;
	string c;
	for(int i=0; i<9; i++){
		cin >> c >> am >> pm;
		if( (c.size() < 1 && c.size() > 15 ) || am > 400 || pm > 400) return 0;
		cout << c << " " << am+pm  << " " << 200*am+300*pm << endl;
	}
	return 0;
}