Go: package main

import (
	"bufio"
	"os"
	"strings"
	"strconv"
	"fmt"
)

var scanner = bufio.NewScanner(os.Stdin)

func main() {
	for i := 0; i < 9; i++ {
		scanner.Scan()
		buf := strings.Split(scanner.Text(), " ")
		name := buf[0]
		am, _ := strconv.Atoi(buf[1])
		pm, _ := strconv.Atoi(buf[2])
		visitor := am + pm
		income := am*200 + pm*300
		fmt.Printf("%s %d %d\n", name, visitor, income)
	}
}

C++: /*
	0173:Haunted House
*/
#include	<iostream>
#include	<string>

using namespace std;

int main(void) {
	for(int i = 0; i < 9; i++) {
		string name;
		int a, b;
		
		cin >> name >> a >> b;
		
		cout << name << ' ' << a + b << ' ' << a * 200 + b * 300 << endl;
	}
	
	return 0;
}

C++: #include<iostream>
#include<string>
using namespace std;

int main(){

  int a, b;
  string str;
  
  for(int i=0; i<9; i++){
    cin >> str >> a >> b;
    cout << str << " " << a + b << " " << a * 200 + b * 300 << endl;
  }

  return 0;

}

C++: #include <iostream>
#include <cstdio>
#include <map>
#include <vector>
using namespace std;
typedef pair<string,int>P;
int main(){
  string id;
  vector<P> vs(9);
  vector<P> ma(9);
  for(int i = 0 ; i < 9 ; i++ ){
    int a,b;
    cin >> id >> a >> b;
    ma[i] = P(id,a*200 + b*300);
    vs[i] = P(id,a+b);
  }

  for(int i = 0 ; i < 9 ; i++ ){
    cout << ma[i].first << ' ' << vs[i].second << ' ' <<  ma[i].second<< endl;
}
  return 0;
}

C++: #include <iostream>
#include <string>
using namespace std;
int main(void){
    
    string team;
    int a, b;
    
    for(int i = 0; i < 9; i++){
        cin >> team >> a >> b;
        cout << team << " " << a + b << " " << 200 * a + 300 * b << endl;
    }
}

C++: //33
#include<iostream>

using namespace std;

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

C++: #include <string>
#include <iostream>
 
using namespace std;
 
int main()
{
    string name; int a, b;
 
    for (int i = 0; i < 9; i++)
    {
        cin >> name >> a >> b;
 
        cout << name << ' ' << a + b << ' ' << a * 200 + b * 300 << endl;
    }
 
    return 0;
}

C++: #include <iostream>
#include <iomanip>
#include <vector>
#include <string>
#include <stack>
#include <queue>
#include <deque>
#include <set>
#include <map>
#include <algorithm>
#include <sstream>
#include <cstdlib>
#include <cstring>
#include <functional>
#include <numeric>
#include <cmath>
#include <climits>
#include <limits>
#include <cfloat>
#include <fstream>
using namespace std;

int main()
{
//	cut here before submit 
//	freopen("testcase.hh", "r", stdin);
	vector < map < string, pair < int, int > > > t;
	string str = "";

	while (getline (cin, str ) ){

		string classname = "";
		int am = 0;
		int pm = 0;

		stringstream ss(str);
		ss >> classname >> am >> pm;
		map <string, pair < int, int > > tt;
		tt.insert (make_pair (classname, make_pair (am, pm ) ) );
		t.push_back (tt);

	} // end loop

	for (int i = 0; i < t.size(); ++i){

		map<string, pair<int, int> >::iterator it = t[i].begin();

		for (; it != t[i].end(); ++it){

			string cn = (*it).first;
			int am = (*it).second.first;
			int pm = (*it).second.second;
			int sum = am + pm;
			int total = 200*am + 300*pm;

			cout << cn << ' ';
			cout << sum << ' ' << total << endl;
		} // end for
	} // end for	

	return 0;
}

C++: #include <bits/stdc++.h>
using namespace std;

#define FOR(i, a, b) for (int i = (a); i < (b); i++)
#define REP(i, n) for (int i = 0; i < (n); i++)

int main()
{
  string cls;
  int a, b;

  REP(i, 9){
    cin >> cls >> a >> b;
    cout << cls << " " << a + b << " " << a * 200 + b * 300 << endl;
  }
}

C++: #include<stdio.h>
int main(void)
{
    int a[9],b[9],i;
	for(i=0;i<9;i++){
	    scanf("%d %d",&a[i],&b[i]);
		a[i]=a[i]+b[i];
		b[i]=a[i]*500;		
	}

	    printf("1e %d %d\n",a[0],b[0]);
		printf("1c %d %d\n",a[1],b[1]);
		printf("1f %d %d\n",a[2],b[2]);
		printf("2b %d %d\n",a[3],b[3]);
		printf("2c %d %d\n",a[4],b[4]);
		printf("2e %d %d\n",a[5],b[5]);
		printf("3a %d %d\n",a[6],b[6]);
		printf("3b %d %d\n",a[7],b[7]);
		printf("3d %d %d\n",a[8],b[8]);

	return 0;
}

C++: #include<stdio.h>
int main(void)
{
	int a,b,x[10],x1[10],i;
	char name[10][10];
	for(i=0;i<9;i++){
		scanf("%s%d%d",&name[i],&a,&b);
		x[i]=a*200+b*300;
		x1[i]=a+b;
	}
	for(i=0;i<9;i++){
		printf("%s %d %d\n",name[i],x1[i],x[i]);
	}
	return 0;
}

C++: #include <cstdio>
#include <cctype>
#include <utility>
#include <string>
using namespace std;

#define gcu getchar_unlocked
#define pcu putchar_unlocked
#define _T template <typename T>
#define _HT template <typename H, typename... T>
#define _il inline
#define _in _il int in
#define _sc _il bool scan
_T T in(int c){T n=0;bool m=false;
	while (isspace(c)) {c = gcu();}
	if(c=='-')m=true,c=gcu();
	do{n=10*n+(c-'0'),c=gcu();}while(c>='0');return m?-n:n;} //&&c<='9'
_in() {return in<int>(gcu());}
_T T scan(T &n){int c=gcu();return c==EOF?false:(n=in<T>(c),true);}
_sc(char &c){c=gcu();gcu();return c!=EOF;}
#ifdef _GLIBCXX_STRING
_sc(string &s){int c;s="";
	for(;;){c=gcu();if(c=='\n'||c==' ')return true;else if(c==EOF)return false;s+=c;}}
#endif
_HT _sc(H &h, T&&... t){return scan(h)&&scan(t...);}
#define _vo _il void out
#define _vl _il void outl
_vo(bool b) {pcu('0'+b);}
_vo(const char *s){while(*s)pcu(*s++);}
_vo(char c){pcu(c);}
#ifdef _GLIBCXX_STRING
_vo(string s){for(char c:s)pcu(c);}
#endif
_T _vo(T n){static char buf[20];char *p=buf;
	if(n<0)pcu('-'),n*=-1;if(!n)*p++='0';else while(n)*p++=n%10+'0',n/=10;
	while (p!=buf)pcu(*--p);}
_vl(){out('\n');}
#ifdef _GLIBCXX_VECTOR
_T _vo(vector<T> &v){for(T &x:v)out(&x == &v[0]?"":" "),out(x);outl();}
#endif
_HT _vo(H&& h, T&&... t){out(h);out(move(t)...);}
template <typename... T> _vl(T&&... t){out(move(t)...);outl();}

int main() {
	string s;
	for (int a, b; scan(s, a, b);)
		outl(s, ' ', a + b, ' ', a * 200 + b * 300);
}

C++: #include<iostream>
#include<cstdio>
#include <cstring>
#include<map>
#include<string>
using namespace std;

int main(void){
	string a;
	int b,c;
	while(cin>>a>>b>>c)
	{
		cout<<a<<" "<<b+c<<" ";
		b=b*200+c*300;
		cout<<b<<endl;
	}
	return 0;
}

C++: #include <iostream>
using namespace std;
int main(void){
    string z;
    int b,c;
    for(int i=0;i<9;i++){
        cin>>z>>b>>c;
        cout<<z<<" "<<b+c<<" "<<b*200+c*300<<endl;
    }
    return 0;
}

C++: #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;
}

C++: #include<iostream>
#include<string>
using namespace std;
int main(){
	string a[9];
	int b[9], c[9];
	for (int i = 0; i < 9; i++){
		cin >> a[i] >> b[i] >> c[i];
	}
	for (int i = 0; i < 9; i++){
		cout << a[i] << " " << b[i] + c[i] << " " << b[i] * 200 + c[i] * 300 << endl;
	}
	cin >> a[1];
	return 0;
}

C++: #include <iostream>
using namespace std;

int main()
{
  string cla;
  int n, m;

  for (int i = 0; i < 9; i++){
    cin >> cla >> n >> m;
    cout << cla << " " << n + m << " " << 200 * n + 300 * m << endl;
  }
}

C++: #include <iostream>
#include <cstdio>

int main(){
	std::string name, ns[9];
	int am, pm, i=0, p[9] = {0}, pf[9] = {0};
	//input
	for(;i<9;i++){
		std::cin >> name >> am >> pm;
		ns[i] = name;
		p[i] = am + pm;
		pf[i] = am * 200 + pm * 300;
	}

	//output
	i = 0;
	for(;i<9;i++){
		std::cout << ns[i] << " " << p[i] << " " << pf[i] << std::endl;
	}
}

C++: #import<cstdio>
int main(){char s[20];for(int a,b;~scanf("%s%d%d",s,&a,&b);printf("%s %d %d\n",s,a+b,a*200+b*300));}