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++: #include <iostream>
#include <fstream>
#include <sstream>
#include <string>
#include <algorithm>
#include <vector>
#include <queue>
#include <deque>
#include <stack>
#include <map>
#include <set>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cmath>
#include <climits>
#include <cctype>
#include <complex>
using namespace std;

typedef long long ll;

#define REP(i,n,m) for(int i=n;i<m;i++)
#define rep(i,n) REP(i,0,n)

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

  while(cin>>s>>a>>b){
    cout<<s<<" "<<a+b<<" "<<a*200+b*300<<endl;
  }
}

C++: #include <bits/stdc++.h>
#define rep(i,l,n) for(int i=l;i<n;i++)
#define rer(i,l,n) for(int i=l;i<=n;i++)
#define all(a) a.begin(),a.end()
#define o(a) cout<<a<<endl
#define fi first
#define se second
using namespace std;
typedef long long ll;
typedef vector<int> vint;
typedef pair<int,int> pii;

int main(){
	string s[10];
	int b[10]={},a[10]={};
	rep(i,0,9){
		cin>>s[i]>>b[i]>>a[i];
		cout<<s[i]<<" "<<b[i]+a[i]<<" "<<200*b[i]+300*a[i]<<endl;
	}
}

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


int total(int a, int b){
	int c = a + b;
	return c;
}

int times(int a, int b){
	int c = a * 200 + b * 300;
	return c;
}


int main(){
	int a[9];
	int b[9];
	int c[9];
	int d[9];
	string name[9];
	for (int i = 0; i < 9; i++){
		cin >> name[i];
		cin >> a[i];
		cin >> b[i];
	}
	for (int i = 0; i < 9; i++){
		c[i] = total(a[i], b[i]);
		d[i] = times(a[i], b[i]);
	}
	for (int i = 0; i < 9; i++){
		cout << name[i] << " " << c[i] << " " << d[i] << endl;
	}
	return 0;
}

C++: 1a 132 243
1c 324 183
1f 93 199
2b 372 163
2c 229 293
2e 391 206
3a 118 168
3b 263 293
3d 281 102

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

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

C++: #include<iostream>
#include<string>
using namespace std;
string S;
int a, b;
int main() {
	while (cin >> S >> a >> b) {
		cout << S << ' ' << a + b << ' ' << a * 200 + b * 300;
	}
}

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

int main()
{
  string cl[9];
  int res[9], num[9];
  int n, m;
  for (int i = 0; i < 9; i++){
    cin >> cl[i] >> n >> m;
    num[i] = n + m;
    res[i] = n * 200 + m * 300;
  }

  for (int i = 0; i < 9; i++){
    cout << cl[i] << ' ' << num[i] << ' ' << res[i] << endl;
  }
  return (0);
}

C++: #include<cstdio>
#include<cstring>
#include<algorithm>
#include<functional>
using namespace std;
int main(void)
{
	int b,a,sum[10],p[10],i,x;
	char ss[10][16];
	i=0;
	while(scanf("%s %d %d",ss[i],&a,&b)!=EOF){
		sum[i]=a*200+b*300;
		p[i]=a+b;
//		printf("%s %d %d\n",ss[i],p,sum);
		i++;
	}
	x=i-1;
	for(i=0;i<x;i++) printf("%s %d %d\n",ss[i],p[i],sum[i]);
	return 0;
}

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


}

C++: #include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <functional>
#include <numeric>
#include <stack>
#include <queue>
#include <map>
#include <set>
#include <utility>
#include <sstream>
#include <complex>

using namespace std;

#define FOR(i,a,b) for(long long i=(a);i<(b);i++)
#define REP(i,N) for(long long i=0;i<(N);i++)
#define ALL(s) (s).begin(),(s).end()
#define fi first
#define se second

#define PI acos(-1.0)
#define INF 1000000007
#define EPS 1e-10

typedef long long ll;
typedef pair<ll, ll> P;
typedef pair<double, double> PD;
typedef pair<string, ll> PS;
typedef vector<ll> V;

string s[10];
int a[10], b[10], num[10], sum[10];

int main(){
	REP(i, 9){
		cin >> s[i] >> a[i] >> b[i];
		num[i] = a[i] + b[i];
		sum[i] = a[i] * 200 + b[i] * 300;
	}
	REP(i, 9){
		cout << s[i] << " " << num[i] << " " << sum[i] << endl;
	}
}

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

int main() {
  string name;
  int a, b;
  while (N--) {
    int am = 200, pm = 300;
    cin >> name >> a >> b;
    int num = a+b;
    int fee = a*am+b*pm;
    cout << name << " " << num << " " << fee << endl;
  }
  return 0;
}

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

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

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

    return 0;
}

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

int main()
{
  string s;
  int am, pm;
  while (cin>>s>>am>>pm) cout<<s<<" "<<am+pm<<" "<<am*200+pm*300<<endl;
}

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

int main(){
	char ch[16];
	int am,pm;
	while(cin >> ch >> am >> pm){
		cout << ch << " " << (am+pm) << " " << (am*200+pm*300) << endl;
		for(int i=0;i<16;i++){
			ch[i] = '\0';
		}
	}
	return 0;
}

C++: #define	_USE_MATH_DEFINES
#include <iostream>
#include <algorithm>
#include <functional>
#include <vector>
#include <cstdio>
#include <cstring>
#include <cmath>
#include <cfloat>
#include <map>
#include <queue>
#include <stack>
#include <list>
#include <string>
#include <set>
using namespace std;
int main(){
	
	string c[9];
	int	 p[9];
	int  s[9];
	
	for(int i=0;i<9;i++){
		int a,b;
		cin>>c[i];
		
		cin>>a>>b;
		
		p[i]=a+b;
		
		s[i]=200*a+300*b;
		
	}
	
	for(int i=0;i<9;i++)
		cout<<c[i]<<" "<<p[i]<<" "<<s[i]<<endl;
	
	
	
}

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

C++: #include<iostream>
#include<cstdio>
using namespace std;
int main(void)
{
    char name[16];
    int am,pm;
    while(scanf("%s %d %d",&name,&am,&pm)!=EOF){
        cout<<name<<" "<<am+pm<<" "<<am*200+pm*300<<"\n";
    }
}

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

int main(){
	for(int i=0;i<9;i++){
		string cls;
		int mo,ev;
		cin>>cls>>mo>>ev;
		int sum=mo+ev;
		int money=mo*200+ev*300;
		cout<<cls<<" "<<sum<<" "<<money<<endl;
	}
	return 0;
}

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