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 && b == 0 && c == 0 && d == 0 && e == 0 && f == 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(1){
    cin >> b >> r >> g >> c >> s >> t;

    if(b==0&&r==0&&g==0&&c==0&&s==0&&t==0) break;

    int sum = 100;

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

    cout << sum << endl;
  }

  return 0;
}

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

int main(void){
	int a,b,c,d,e,f;

	while(cin>>a>>b>>c>>d>>e>>f, (a || b || c || d || e || f)){
		int sum = 100;

		sum += -3 * a + 15 * a + a * 5 * 13;
		f -= a + 5 * a;

		sum += -3 * b + 15 * b + b * 3 * 13;
		f -= b + 3 * b;

		sum += -3 * c + 7 * c;
		f -= c;

		sum -= d;
		f -= d;

		sum -= e * 3;
		f -= e * 2;

		sum -= 3 * f;

		cout<<sum<<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) {
		if (b + r + g + c + s + t == 0) break;
		int sum = 100, t2 = t;
		sum += (b * 15 + r * 15 + g * 7 + c * 2);
		t2 -= (s + b * 5 + r * 3);
		sum -= (t2 * 3);
		sum += (b * 5 * 13 + r * 3 * 13);
		cout << sum << endl;
	}
}

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

int main() 
{
	while (1)
	{
		vector<int>a(6);
		for (int b = 0; b < 6; b++) {
			cin >> a[b];
		}
		if (a[0] == 0 && a[1] == 0 && a[2] == 0 && a[3] == 0 && a[4] == 0 && a[5] == 0)break;
		int s = a[0] * 90 + a[1] * 60 + a[2] * 7 + a[3] * 2 + 100;
		int l = (a[5] - a[4]) * 3 - a[0] * 5 - a[1] * 3;
		cout << s - l << endl;
	}
}

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>
#include <cstring>
#include <sstream>
#include <cassert>
using namespace std;
static const double EPS = 1e-5;
typedef long long ll;
typedef pair<int,int> PI;
typedef vector<int> vi;
#define rep(i,n) for(int i=0;i<(int)n;++i)
#define FOR(i,c) for(__typeof((c).begin())i=(c).begin();i!=(c).end();++i)
#define ALL(c) (c).begin(), (c).end()
#define mp make_pair
#define pb push_back
#define F first
#define S second


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

C++: #include <cstdio>
#include <algorithm>
#include <iostream>
#include <vector>
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 == 0) return 0;
		cout << (95*b+63*r+7*g+2*c+3*s-3*t+100) << endl;
	}
}

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

#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rrep(i, n) for (int i = (int)(n) - 1; i >= 0; i--)

int b, r, g, c, s, t;

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

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

int main(){
	int a,b,c,d,e,f;
	while(cin>>a>>b>>c>>d>>e>>f){
		if(a==0&&b==0&&c==0&&d==0&&e==0&&f==0)break;
		
		int sum=100;
		int im=f-e+(a*5)+(b*3);
		sum-=im;
		sum+=(a*5*15);
		sum+=(b*3*15);
		sum+=c*7;
		sum+=d*2;
		cout<<sum<<endl;
		}
		return 0;
	}
//-105

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

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