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<string>

using namespace std;

typedef struct{
	string name;
	int Anum;
	int Pnum;
}DATA;

int main(void){
	std::ios_base::sync_with_stdio();

	DATA goast[10];

	for(int i=0;i<9;i++){
		cin>>goast[i].name>>goast[i].Anum>>goast[i].Pnum;
	}
	for(int i=0;i<9;i++){
		cout<<goast[i].name<<" ";
		cout<<goast[i].Anum+goast[i].Pnum<<" ";
		cout<<goast[i].Anum*200+goast[i].Pnum*300<<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<cstring>
using namespace std;
int main()
{
	char na[30];
	int a,p;
	for(int i=0;i<9;i++)
	{
		cin >> na >> a >> p;
		cout << na << " " << a+p << " " << a*200+p*300 << endl;
	}
	return 0;
}

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

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

C++: #include <iostream>
#include <fstream>
#include <sstream>
#include <iomanip> 
#include <complex> 
#include <string>
#include <vector> 
#include <list>
#include <deque> 
#include <stack> 
#include <queue> 
#include <set>
#include <map>
#include <bitset>
#include <functional>
#include <utility>
#include <algorithm> 
#include <numeric> 
#include <typeinfo> 
#include <cstdio>
#include <cstdlib> 
#include <cstring>
#include <cmath>
#include <climits> 
#include <ctime>

using namespace std;

int main(void){
	char name[9][50];
	int num[9][2];
	int a;
	for(a=0;a<9;a++){
		scanf("%s%d%d",name[a],&num[a][0],&num[a][1]);
	}
	for(a=0;a<9;a++){
		printf("%s %d %d\n",name[a],num[a][0]+num[a][1],num[a][0]*200+num[a][1]*300);
	}
	return 0;
}

C++: #include <cstdio>
#include <cstring>
#include <cstdlib>
#include <cmath>
#include <complex>
#include <string>
#include <sstream>
#include <algorithm>
#include <numeric>
#include <vector>
#include <queue>
#include <stack>
#include <functional>
#include <iostream>
#include <map>
#include <set>
using namespace std;
typedef pair<int,int> P;
typedef long long ll;
typedef vector<int> vi;
typedef vector<ll> vll;
#define pu push
#define pb push_back
#define mp make_pair
#define eps 1e-9
#define INF 2000000000
#define sz(x) ((int)(x).size())
#define fi first
#define sec second
#define SORT(x) sort((x).begin(),(x).end())
#define all(x) (x).begin(),(x).end()
#define EQ(a,b) (abs((a)-(b))<eps)
int main()
{
	string s;
	int a,b;
	while(cin >> s >> a >> b)
	{
		int ans = 200*a+300*b;
		int sum = a+b;
		cout << s << ' ' << sum << ' ' << ans << endl;
	}
	return 0;
}

C++: #include<iostream>
#include<string>
#include<algorithm>	
#include<cmath>
#include<map>
#include<vector>
#define int long long
using namespace std;
int test[51];
signed main() {
    int n, a, b; string s;
    for (int h = 0; h < 9; h++) {
        cin >> s >> n >> a;
        cout << s << ' ' << n + a << ' ' << 200 * n + 300 * a << endl;
    }
}

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

int main()
{
    string str[9];
    int am[9];
    int pm[9];

    for (int i = 0; i < 9; i++){
        cin >> str[i];
        cin >> am[i];
        cin >> pm[i];
    }

    for (int i = 0; i < 9; i++){
        cout << str[i] << " " << am[i] + pm[i] << " " << (pm[i] * 300) + (am[i] * 200) << endl;
    }
    return (0);
}