#include<iostream>
#include<string.h>
#include<cstdio>
#define NN 1000

using namespace std;

int main(){
  int ca[9],i,j,n,go[NN],ggo[NN],sum[NN],kane1[NN],kane2[NN],kei[NN];
  char clas[9];
  

  
  for(i=0;i<9;i++){
    cin >> ca[i] >>clas[i]  >> go[i] >> ggo[i];
    sum[i]=go[i]+ggo[i]; //nyuujougoukei
    kane1[i]=go[i]*200;
    kane2[i]=ggo[i]*300;
    kei[i]=kane1[i]+kane2[i];
  }

  for(i=0;i<9;i++){
    cout << ca[i]<< clas[i]<< " " << sum[i] << " "<< kei[i] << endl;
  }
  
  
  
  

}