#include <iostream>
using namespace std;
#define MORNINGFEE 200
#define AFTERNOONFEE 300

struct Class{
  string name;
  int amin, pmin;
};

Class classes[9];

int main(void){
  for(int i = 0; i < 9; i++){
    cin >> classes[i].name >> classes[i].amin >> classes[i].pmin;
  }
  for(int i = 0; i < 9; i++){
    int in, income;
    in = classes[i].amin + classes[i].pmin;
    income = classes[i].amin * MORNINGFEE + classes[i].pmin * AFTERNOONFEE;
    cout << classes[i].name << " " << in << " " << income << endl;
  }
  return 0;
}