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 <bits/stdc++.h>
using namespace std;
#define int long long
#define UNIQUE(v) v.erase(unique(all(v)), v.end());
#define ZIP(v) sort(all(v)),UNIQUE(v)
#define ADD(a, b) a = (a + b) % mod
#define MUL(a, b) a = (a * b) % mod
#define repi(i,m,n) for(int i = m;i < n;i++)
#define drep(i,n,m) for(int i = n;i >= m;i--)
#define rep(i,n) repi(i,0,n)
#define rrep(i,n) repi(i,1,n+1)
#define chmin(x,y) x = min(x,y)
#define chmax(x,y) x = max(x,y)
#define all(v) v.begin(),v.end()
#define rall(v) v.rbegin(), v.rend()
#define dmp(x,y) make_pair(x,y)
#define pb(x) push_back(x)
#define fi first
#define se second
typedef pair<int,int> P;
typedef pair<int, P> PP;
typedef vector<int> vi;
const int inf = 1e9+7;
const int INF = 1e18+7;
//26

signed main(){
	int n = 9;
	rep(i,n){
		string str;int x, y;
		cin >> str;
		scanf("%lld%lld", &x, &y);
		int ans = x*200+y*300;
		cout << str << " ";
		printf("%lld %lld\n", x+y, ans);
	}
	return 0;
}

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

int main(){

  map < string , int > a;
  map < string , int > b;
  string str[100];
  int n,m,x;

  for(int i=0;i<9;i++){
    cin >> str[i] >> n >> m;
    a[str[i]] = n*200 + m*300;
    b[str[i]] = n + m;
  }

  for(int i=0;i<9;i++) cout << str[i] << " " <<  b[str[i]] << " " << a[str[i]] << endl;
}

C++: include<cstdio>
int a,b,d=400;int main(){for(char c[d];~scanf("%s%d%d",c,&a,&b);a=a/d?d:a,printf("%s %d %d\n",c,a+b,a*200+b*300))b=b/d?d:b;}

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

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

C++: #include <iostream>
#include <sstream>
#include <iomanip>
#include <algorithm>
#include <cmath>
#include <string>
#include <vector>
#include <list>
#include <queue>
#include <stack>
#include <set>
#include <map>
#include <bitset>
#include <numeric>
#include <climits>
#include <cfloat>
using namespace std;

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

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


main(){
  string cla[10][3];//for input// class name: am in:  pm in
  int data[10][2];//for output // sum(people) :sum(income)
  int i;
  int data2[10][2];
  i=0;
  while(cin >> cla[i][0] >> data[i][0]>> data[i][1]){
      i++;
     
      /* //Ã£ÂÂÃ£ÂÂÃ£ÂÂÃ£ÂÂ¯Ã§ÂÂ¨
      cout << cla[i-1][0]<< " "<< cla[i-1][1]<<" "<< cla[i-1][2]<<endl;//Ã¤Â¸ÂÃ£ÂÂ§Ã¨Â¶Â³Ã£ÂÂÃ£ÂÂ¦Ã£ÂÂÃ£ÂÂ®Ã£ÂÂ§Ã¯Â¼ÂÃ¥Â¼ÂÃ£ÂÂ
      */

      
      //data[i-1][1] = atoi(cla[i-1][1])*200 + atoi(cla[i-1][2])*300;
      data2[i-1][0] = data[i-1][0] + data[i-1][1];
      data2[i-1][1] = data[i-1][0]*200 + data[i-1][1]*300;
      
      //cout << cla[i-1][0] << " " << data[i-1][0]<<" " << data[i-1][1]<<endl;
      

    }

  i--;
  for(int j=0;j<9;j++){

    cout << cla[j][0] << " "<< data2[j][0] << " "<< data2[j][1]<< endl;

  }

  return 0;
}

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

int main() {
	string moji;
	int a,b,i;
	for(i=0;i<9;i++){
		cin>>moji;
		cin>>a>>b;
		cout<<moji<<" "<<a+b<<" "<<a*200+b*300<<endl;
	}
	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<string>
#include<iostream>
#include<algorithm>
using namespace std;
int main(){
	char class_[9][10];
	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];
	return 0;
}

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

int main() {
	int a, b;
	string s;
	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 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<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>

int main(void)
{
    char name[9][10];
    int am, pm;
    int money[9];
    
    for (int i = 0; i < 9; i++){
        scanf("%s %d %d", name[i], &am, &pm);
        money[i] = (am * 200) + (pm * 300);
    }
    
    for (int i = 0; i < 9; i++){
        printf("%s %d\n", name[i], money[i]);
    }
    
    return (0);
}

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

C++: #include <iostream>

using namespace std;

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

C++: #include <iostream>
#include <string>
using namespace std;
int main(void){
#define MAX 500
    int a[MAX], b[MAX]; //午前と午後の入場者数
    string name[9]; //クラス名

    for(int i = 0; i < 9; i++){
        cin >> name[i] >> a[i] >> b[i];
    }

    long int earnings[9]; //料金収入
    int sum_ab[9]; //入場者数の総和

    for(int i = 0; i < 9; i++){
        sum_ab[i] = a[i] + b[i];
        earnings[i] = 200 * a[i] + 300 * b[i];

        cout << name[i] << " " << sum_ab[i] << " " << earnings[i] << endl;
    }
}

C++: #include <cstdio>
#include <iostream>
using namespace std;
int main() {
    string c;
    int am, pm;
    while (cin >> c) {
        scanf("%d%d",&am,&pm);
        int resp = am + pm;
        int price = am * 200 + pm * 300;
        cout << c;
        printf(" %d %d\n", resp, price);
    }
}

C++: #include <iostream>

using namespace std;

int main()
{
	string s;
	for(int a,b;cin>>s>>a>>b;)
		cout<<s<<" "<<a+b<<" "<<a*200+b*300<<endl;
	
	return 0;
}

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


int main () {

const int num_class = 9;

string classname[num_class];
int am[num_class];
int pm[num_class];
int sum_mem[num_class];
int sum_syu[num_class];

for (int i = 0 ; i < num_class;i++) {
    cin >> classname[i] >> am[i] >> pm[i];
    // cout << classname[i] << " " << am[i] << " " << pm[i] << "\n";

    sum_mem[i] = am[i] + pm[i];
}



for (int i = 0;i < num_class;i++) {

    sum_syu[i] = 0;

    if (am[i] <= 400) {
    sum_syu[i] +=  am[i] * 200;
    }
    else {
    sum_syu[i] +=  400 * 200;
    }


    if (pm[i] <= 400) {
    sum_syu[i] +=  pm[i] * 300;
    }
    else {
     sum_syu[i] +=  400 * 300;
    }

    cout << classname[i] << " " << sum_mem[i] << " " << sum_syu[i] << "\n";

}


  return 0;
}