#include<iostream>
using namespace std;

int main(){
	string id;
	int am, pm;
	int n, money;
	for(int i=0; i < 9; i++){
		cin >> id >> am >> pm;
		money = am * 200 + pm * 300;
		n = am + pm;
		cout << id << ' ' << n << ' ' << money << endl;
	}
}