Go: package main

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

var scanner = bufio.NewScanner(os.Stdin)

func main() {
	for scanner.Scan() {
		buf := strings.Split(scanner.Text(), " ")
		a, _ := strconv.Atoi(buf[0])
		b, _ := strconv.Atoi(buf[1])
		c, _ := strconv.Atoi(buf[2])
		d, _ := strconv.Atoi(buf[3])
		e, _ := strconv.Atoi(buf[4])
		f, _ := strconv.Atoi(buf[5])
		if a == 0 {
			break
		}
		fmt.Println(100-((5*a+3*b)*2)-(f-5*a-3*b-e)*3+15*a+15*b+15*(5*a+3*b)+c*7+d*2)
	}
}

C++: #include <iostream>

using namespace std;

int main() {
	int b, r, g, c, s, t;
	while (cin >> b >> r >> g >> c >> s >> t, b || r || g || c || s || t) {
		int ans = 100;
		int bonus = 5 * b + 3 * r;

		ans += 15 * b + 15 * r + 7 * g + 2 * c + 3 * s;
		ans += bonus * 16;
		ans -= 3 * t;

		cout << ans << endl;
	}
}

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

int main(){
	int b, r, g, c, s, t;
	int num;
	while(cin >> b  >> r >> g >> c >> s >> t, b || r || g || c || s || t){
		num = 100;
		num -= t*3;
		num += (b*5+r*3);
		num += (b*5+r*3) * 15;
		num += g*7;
		num += c*2;
		num += (b+r)*15;
		num += s*3;

		cout << num << endl;
	}
}

C++: #include <iostream>
using namespace std;
int main(void){
    int a,b,c,d,e,f;
    while(cin>>a>>b>>c>>d>>e>>f,f){
        int h=100,g;
        f-=e+a*5+b*3;
        h+=(a+b)*15+d*2+(a*5+b*3)*13+c*7;
        cout<<h-f*3<<endl;
    }
}

C++: #include<iostream>
#define rep(i,n) for(int i=0;i<n;i++)
using namespace std;

int main(){
  int b,r,g,c,s,t;
  while(cin >> b >> r >> g >> c >> s >> t){
    if(t==0)break;

    int bonus = 5*b + 3*r;
    int res = 100;
    res += bonus * 15 + g*7 + 2*c + b*15 + r*15;
    res -= 2*bonus + 3*(t-s-bonus);
    cout << res << endl;
  }
}

C++: #include<iostream>

int main()
{
	int b, r, g, c, s, t;
	while( std::cin >> b >> r >> g >> c >> s >> t, b | r | g | c | s | t )
	{
		int seven = -3 * b + 15 * b + 5 * b * 13;
		t -= b + 5 * b;
		int bar = -3 * r + 15 * r + 3 * r * 13;
		t -= r + 3 * r;
		int grape = -3 * g + 7 * g;
		t -= g;
		int cherry = -3 * c + 2 * c;
		t -= c;
		int star = -3 * s;
		t -= 2 * s;

		std::cout << 100 + seven + bar + grape + cherry + star + t * -3 << std::endl;
	}

	return 0;
}

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

int main(){
	int b,r,g,c,s,t;
	while(cin >> b >> r >> g >> c >> s >> t,b || r || g || c || s || t){
		int bonus = b * 5 + r * 3,medal = 100 + bonus * 13 + b * 15 + r * 15 + g * 7 + c * 2;
		t -= bonus + s;
		medal -= t * 3;
		cout << medal << endl;
	}
	return 0;
}

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

int main(){
	long long int b,r,g,c,s,t,x,y;
	while(cin >> b >> r >> g >> c >> s >> t &&( b || r || g || c || s || t)){
		y = (t-s-b*5-r*3)*3+(b*5+r*3)*2;
		x = 100+(c*2+g*7+b*15+r*15+(r*3*15)+(b*5*15));
		cout << x-y <<endl;
	}
	return 0;
}

C++: #include<cstdio>

using namespace std;

int main(){
	for(int b,r,g,c,s,t;scanf("%d%d%d%d%d%d",&b,&r,&g,&c,&s,&t),b||r||g||c||s||t;){
		int bonusTime=5*b+3*r;
		int addedCoin=15*b+15*r+7*g+2*c+15*(bonusTime);
		int paidCoin=3*(t-s-bonusTime)+2*bonusTime;
		printf("%d\n",100+addedCoin-paidCoin);
	}
	return 0;
}

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

using namespace std;

int main() {
  while(1) {
    int b, r, g, c, s, t;
    cin >> b >> r >> g >> c >> s >> t;
    if(!(b|r|g|c|s|t)) break;
    int B = b*5+r*3;
    cout << 
      (100
       + B*15 - B*2
       + g*7 + c*2 + (b+r)*15
       - (t-s-B)*3)
         << endl;
  }
  return 0;
}

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

int main() {
    int b,r,g,c,s,t;
    while (cin>>b>>r>>g>>c>>s>>t,(b||r||g||c||s||t)) {
        int res = 100;

        res -= b * 3;
        res += b * 15;
        res += b * 5 * 13;
        t -= b * 6;

        res -= r * 3;
        res += r * 15;
        res += r * 3 * 13;
        t -= r * 4;

        res -= g * 3;
        res += g * 7;
        t -= g;

        res -= c * 3;
        res += c * 2;
        t -= c;

        res -= s * 3;
        t -= s * 2;

        res -= t * 3;

        cout << res << endl;
    }
    return 0;
}

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

int main() {
    while (true) {
        int b, r, g, c, s, t;
        cin >> b >> r >> g >> c >> s >> t;
        if (b == 0 && r == 0 && g == 0 && c == 0 && s == 0 && t == 0) {
            break;
        }
        int bonusGame = 5 * b + 3 * r,
            normalGame = t - bonusGame,
            medal = 100 + 13 * bonusGame + 15 * (b + r) + 7 * g + 2 * c - 3 * (normalGame - s);
        cout << medal << endl;
    }
}

C++: // 2011/02/18 Tazoe

#include <iostream>
using namespace std;

int main()
{
	while(true){
		int b, r, g, c, s, t;
		cin >> b >> r >> g >> c >> s >> t;
		if(b==0&&r==0&&g==0&&c==0&&s==0&&t==0)
			break;

		int med = 100;		// _ÌiúlÍ100j

		med += (15+(15-2)*5)*b;		// rbO{[iXÉæé
		med += (15+(15-2)*3)*r;		// M[{[iXÉæé
		med += 7*g;			// uhEÉæé
		med += 2*c;			// `F[Éæé

		med -= 3*(t-5*b-3*r-s);		// Q[Éæé¸

		cout << med << endl;
	}

	return 0;
}

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

using namespace std;

int main()
{
	int p[5];
	int t;

	while (1){
		int pro, loss;
		int medal = 100;

		for (int i = 0; i < 5; i++){
			scanf("%d", &p[i]);
		}
		scanf("%d", &t);

		if (p[0] == 0 && p[1] == 0 && p[2] == 0 && p[3] == 0 && p[4] == 0 && t == 0){
			break;
		}

		medal -= 3 * (t - (p[0] * 6 + p[1] * 4 + p[2] + p[3] + p[4]));
		medal += p[0] * 77 + p[1] * 51 + p[2] * 4 + p[3] * -1;

		cout << medal << endl;
	}

	return (0);
}

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

using namespace std;
int main()
{
  int b,r,g,c,s,t;
  while(true)
    {
      cin>>b>>r>>g>>c>>s>>t;
      if(b==0)
	break;
      int out=100-(t*3)+(s*3)+(c*2)+(g*7)+((r+b)*15)+((r*3+b*5)*16);
      cout<<out<<endl;	
    }
}

C++: #include <iostream>

using namespace std;

int main() {
 int b, r, g, c, s, t;
 while (cin >> b >> r >> g >> c >> s >> t, b|r|g|c|s|t) {
  cout << 100-(t*3 - b*5-b*15 - r*3-r*15 - (b*5+r*3)*15 - g*7 - c*2 -s*3) << endl;
 } 
}

C++: #include <iostream>
#include <vector>
#include <list>
#include <algorithm>
#include <set>
#include <queue>
#include <stack>
#include <string>
#include <sstream>
#include <map>
#include <cstdio>
#include <cstdlib>
#include <cmath>
#include <cstring>

#define rep(i, n) for(int i = 0; i < n; i ++)
#define COUNT(i, n) for(int i = 1; i <= n; i ++)
#define ITER(c) __typeof((c).begin())
#define each(c, it) for(ITER(c) it =(c).begin(); it!=(c).end(); it++)
#define ALL(c) c.begin(), c.end()
#define mp make_pair
#define pb push_back
#define MEMSET(v, h) memset((v), h, sizeof(v))
 
using namespace std; 

typedef pair<int, int> pii;
typedef long long ll;
typedef vector<int> vi;
typedef vector<string> vs;

const int INF = 1 << 24;

int main(void){
    for(int b, r, g, c, s, t; cin >> b >> r >> g >> c >> s >> t, t; cout << 100 + 3 * (s - t) + 2 * c + 7 * g + 15 * (b + r) + 16 * (5 * b + 3 * r) << endl);
 
    return 0;
}

C++: #include<stdio.h>
int main()
{
	int b,r,g,c,s,t;
	while(scanf("%d%d%d%d%d%d",&b,&r,&g,&c,&s,&t),t)
		printf("%d\n",100+b*80+r*54+g*7+c*2-(t-s-b*5-r*3)*3);
	return 0;
}

C++: #include<iostream>
using namespace std;
int main(){
long b,r,g,c,s,t;
while(cin>>b>>r>>g>>c>>s>>t){
if(b*b+r*r+g*g+c*c+s*s+t*t==0)break;
cout<<100+b*95+r*63+g*7+c*2+s*3-t*3<<endl;
}
return 0;
}

C++: #include<bits/stdc++.h>
using namespace std;
int main()
{
    int big,regu,nob,ci,su,t;
    while(cin>>big>>regu>>nob>>ci>>su>>t,big,regu,nob,ci,su,t)
        cout<<100+ci*2+nob*7+regu*63+big*95-(t-su)*3<<endl;

}