#include<iostream>
#include<vector>
#include<algorithm>
#include<cstdio>
#include<cstdlib>
#include<string>
#include<sstream>
#include<cmath>
#include<numeric>
#include<map>
#include<stack>
#include<queue>
using namespace std;
int inf = 1000000000;

int main(void) {

  string s; int a, b;
  vector< pair<string, pair<int, int> > > ans;
  while( cin >> s >> a >> b ){
    bool f = false;
    for(int i=0; i<ans.size(); i++){
      if( ans[i].first == s ){
        f = true;
        ans[i].second.second += 200 * a + 300 * b;
        ans[i].second.first += a + b;
      }
    }
    if( !f ) ans.push_back( make_pair(s, make_pair(a+b, 200*a + 300*b)) );
  }
  for(int i=0; i<ans.size(); i++){
    cout << ans[i].first << " " << ans[i].second.first << " " << ans[i].second.second << endl;
  }

  return 0;
}

// EOF