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

int main(){
	int a[9],b[9],c[9];
	char d[9];
	for(int i=0;i<9;i++){
		cin >> a[i] >> d[i] >> b[i] >> c[i];
	}
	for(int i=0;i<9;i++){
		cout << a[i] << d[i] << " " << b[i]+c[i] << " " << b[i]*200+c[i]*300 << endl;
	}
	
	return 0;
}