#include<stdio.h>
#include<stdlib.h>
#include<math.h>
#include<iostream>
#include<string>
#include<algorithm>

using namespace std;

string name[9];

int G[9][2];

int Gnum = 0;

int GM = 0;

int main(void)
{
	for (int i = 0; i < 9; i++)
	{
		cin >> name[i];

		for (int j = 0; j < 2; j++)
		{
			cin >> G[i][j];

		}

	}

	for (int i = 0; i < 9;i++)
	{
		for (int j = 0; j < 2;j++)
		{
			Gnum += G[i][j];

			if (j==0)
			{
				GM += G[i][j] * 200;
			}
			else 
			{
				GM += G[i][j] * 300;
			}
		}

		cout << name[i] << " ";

		cout << Gnum << " " << GM << endl;

		Gnum = GM = 0;
	}


}
