#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);
	vector < 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;
		map <string, pair < int, int > > tt;
		tt.insert (make_pair (classname, make_pair (am, pm ) ) );
		t.push_back (tt);

	} // end loop

	for (int i = 0; i < t.size(); ++i){

		map<string, pair<int, int> >::iterator it = t[i].begin();

		for (; it != t[i].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
	} // end for	

	return 0;
}