#include <iostream>
#include <iomanip>
#include <vector>
#include <string>
#include <stack>
#include <queue>
#include <deque>
#include <set>
#include <map>
#include <algorithm>
#include <sstream>
#include <cstdlib>
#include <cstring>
#include <functional>
#include <numeric>
#include <cmath>
#include <climits>
#include <limits>
#include <cfloat>
#include <fstream>
using namespace std;

int main()
{
//	cut here before submit 
//	freopen("testcase.hh", "r", stdin);
	map<string, pair<int, int > > t;
	string str = "";

	while (getline (cin, str ) ){

		string classname = "";
		int am = 0;
		int pm = 0;

		stringstream ss(str);
		ss >> classname >> am >> pm;

		t.insert (make_pair (classname, make_pair (am, pm ) ) );

	} // end loop

	map<string, pair<int, int > >::iterator it = t.begin();
	for (; it != t.end(); ++it){

		string cn = (*it).first;
		int am = (*it).second.first;
		int pm = (*it).second.second;
		int sum = am + pm;
		int total = 200*am + 300*pm;

		cout << cn << ' ';
		cout << sum << ' ' << total << endl;

	} // end for
		
	return 0;
}