#include <stdio.h>
#include <iostream>
#include <string>
using namespace std;


int main () {

const int num_class = 9;

string classname[num_class];
int am[num_class];
int pm[num_class];

for (int i = 0 ; i < num_class;i++) {
    cin >> classname[i] >> am[i] >> pm[i];
    // cout << classname[i] << " " << am[i] << " " << pm[i] << "\n";
}



for (int i = 0;i < num_class;i++) {

    if (am[i] <= 400) {
    cout << classname[i] << " " << am[i] * 200;
    }
    else {
    cout << classname[i] << " " << 400 * 200;
    }


    if (pm[i] <= 400) {
    cout << " " <<am[i] * 300;
    }
    else {
    cout << " " <<400 * 300;
    }
    cout << "\n";
}


  return 0;
}