#include <iostream>
#include <cstdio>
#include <map>
#include <vector>
using namespace std;

int main(){
  string id;
  map<string,int>vs;
  map<string,int> ma;
  for(int i = 0 ; i < 9 ; i++ ){
    int a,b;
    cin >> id >> a >> b;
    ma[id] += a*200 + b*300;
    vs[id] = a+b;
  }
  map<string ,int>::iterator itt = vs.begin();
  for(map<string ,int>::iterator it = ma.begin() ; it != ma.end() ; it++,itt++ ){
    cout << (*it).first << ' '<< (*itt).second <<' ' << (*it).second << endl;
  }
  return 0;
}