#include<iostream>
#include<cstdio>
#include<algorithm>
#include<climits>
#include<string>
#include<vector>
#include<list>
#include<map>
#include<set>
#include<cmath>
#include<queue>
#include<cstring>
#include<stack>
#include<functional>
using namespace std;

int main(){
	for(int i=0;i<9;i++){
		string S;
		int A,B,sum;
		cin>>S>>A>>B; sum = 200*min(A,400)+300*min(B,400);
		cout<<S; printf(" %d %d\n",A+B,sum);
	}
	return 0;
}