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)
	}
}

Python: while 1:
    b,r,g,c,s,t=map(int,input().split())
    if [b,r,g,c,s,t].count(0)==6:break
    print(100+(b+r)*15+g*7+c*2+(b*5+r*3)*13-(t-(s+b*5+r*3))*3)

Python: while True:
  b,r,g,c,s,t=map(int, input().split())
  if t==0:
    break
  x=100
  y=b*5+r*3
  z=t-y-s
  a=x+(b+r)*15+g*7+y*13+c*2-z*3
  print(a)

Python: while True:
  b,r,g,c,s,t=map(int, input().split())
  if t==0:
    break
  x=100
  y=b*5+r*3
  z=t-y-s
  a=x+(b+r)*15+g*7+y*13+c*2-z*3
  print(a)

Python: import sys
f = sys.stdin


while True:
    seven, bar, grape, cherry, star, all_game = map(int, f.readline().split())
    if seven == bar == grape == cherry == star == all_game == 0:
        break
        
    init_coin = 100
    free_game = star        
    bonus_game = seven * 5 + bar * 3
    nomal_game = all_game - free_game - bonus_game

    last_coin = init_coin - bonus_game * 2 - nomal_game * 3 + (bonus_game + seven + bar) * 15 + grape * 7 + cherry * 2
    print(last_coin)

Python: while True:
  b, r, g, c, s, t = map(int, input().split())
  if b + r + g + c + s + t == 0:
    break
  normal_game = t - b * 5  - r * 3
  bonus_game  = b * 5 + r * 3
  print(100 + bonus_game * 16 + 15 * b + 15 * r + 7 * g + 2 * c + 3 * s - t * 3)

Python: while 1:
    b, r, g, c, s, t = map(int, input().split())
    if [b, r, g, c, s, t] == [0, 0, 0, 0, 0, 0]:
        break

    medal = 100
    bonus = b * 5 + r * 3
    normal = t - bonus - s
    medal = medal + b * 15 + r * 15 + bonus * 15 + g * 7 + c * 2
    medal = medal - normal * 3 - bonus * 2

    print(medal)

Python: while True:
  b,r,g,c,s,t = map(int,input().split(" "))
  if b == r == g == c == s == t == 0: break
  print(100+(b+r)*15+g*7+c*2+(b*5+r*3)*13-(t-(s+b*5+r*3))*3)

Python: while True:
    b, r, g, c, s, t = map(int, raw_input().split())
    if b == r == g == c == s == t == 0:
        break
    m = 100
    m += (b + r) * 15 + 13 * (5 * b + 3 * r)
    m += 7 * g + 2 * c
    m -= (t - s - b * 5 - r * 3) * 3
    print(m)

Python: # AOJ 0229 Big Hit !
# Python3 2018.6.25 bal4u
 
while 1:
    b, r, g, c, s, t = map(int, input().split())
    if (b|r|g|c|s|t) == 0: break
    ans = 100
    ans += 15*b+(15-2)*5*b
    t -= 5*b
    ans += 15*r+(15-2)*3*r
    t -= 3*r
    ans += 7*g
    ans += 2*c
    t -= s
    ans -= 3*t
    print(ans);

Python: while 1:
    b,r,g,c,s,t = list(map(int,input().split()))
    if t == 0:break

    cnt  = b * 5 + r * 3 + s #コイン不使用とするゲーム数
    coins = (b * 5 + r * 3) * (15-2)
    coins += b * 15
    coins += r * 15
    coins += 7 * g
    coins += 2 * c
    coins += 100 - (t - cnt) * 3

    print (coins)

Python: # AOJ 0229 Big Hit !
# Python3 2018.6.25 bal4u

while 1:
	b, r, g, c, s, t = map(int, input().split())
	if (b|r|g|c|s|t) == 0: break
	ans = 100
	ans += 15*b+(15-2)*5*b
	t -= 5*b
	ans += 15*r+(15-2)*3*r
	t -= 3*r
	ans += 7*g
	ans += 2*c
	t -= s
	ans -= 3*t
	print(ans);

Python: while 1:
    b, r, g, c, s, t = map(int, input().split())
    if t == 0:
        break
    ans = 100

    ans += (15 - 2) * (5*b) + (15 - 3) * b
    t -= 6*b

    ans += (15 - 2) * (3*r) + (15 - 3) * r
    t -= 4*r

    ans += (7 - 3) * g
    t -= g

    ans += (2 - 3) * c
    t -= c

    t -= s

    ans += (0 - 3) * t

    print(ans)

Python: # Aizu Problem 0229: Big Hit

import sys, math, os, bisect

# read input:
PYDEV = os.environ.get('PYDEV')
if PYDEV=="True":
    sys.stdin = open("sample-input.txt", "rt")


while True:
    b, r, g, c, s, t = [int(_) for _ in input().split()]
    if t == 0:
        break
    print(100 + 95 * b + 63 * r + 7 * g + 2 * c - 3 * (t - s))

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

int main(){
  int b,r,g,c,s,t;

  while(cin >> b >> r >> g >> c >> s >> t){
    int m = 100; // _
    if(t == 0) return 0;
    // 777
    m += -3*b + 15*b + 5*b*13;
    t -= b + 5*b;
    // BAR
    m += -3*r + 15*r + 3*r*13;
    t -= r + 3*r;
    // Greap
    m += -3*g + 7*g;
    t -= g;
    // cherry
    m += -c;
    t -= c;
    // star
    m += -3*s;
    t -= 2*s; // 2ñ1ñ³¿
    // -play count
    m += -3*t;
	
    cout << m << endl;
  }

}

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

int getCoin(int b,int r,int g,int c){
  int sum=100;
  sum+=b*5*13;
  sum+=r*3*13;
  sum+=g*7;
  sum+=c*2;
  sum+=b*15;
  sum+=r*15;
  return sum;
}

int getLostcoin(int b,int r,int s, int t){
  int sum=0;
  sum=(t-b*5-r*3-s)*3;
  return sum;
}
int main(){
  int b,r,g,c,s,t,gc,lc;
  while(1){
    cin>>b>>r>>g>>c>>s>>t;
    if(b==0 && r==0 && g==0 && c==0 && s==0 && t==0) break;
    gc=getCoin(b,r,g,c);
    lc=getLostcoin(b,r,s,t);
    cout<<gc-lc<<endl;
  }
  return 0;
}

C++: #include <cstdio>

using namespace std;

int main(void)
{
	int b, r, g, c, s ,t;
	
	while (scanf("%d %d %d %d %d %d", &b, &r, &g, &c, &s, &t), t != 0){		
		int coin = 100;
		
		for (int i = 0; i < (b * 5) + (r * 3); i++){
			coin += 13;
		}
		coin += b * 15;
		coin += r * 15;
		
		for (int i = 0; i < g; i++){
			coin += 7;
		}
		
		for (int i = 0; i < c; i++){
			coin += 2;
		}
		
		for (int i = 0; i < s; i++){
			coin += 3;
		}
		
		coin -= (t - (b*5 + r*3))*3;
		
		printf("%d\n", coin);
	}
}

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

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

bool ini(int *in){
	bool conti = false;
	
	for(int i = 0; i < 6; i++){
		scanf("%d",&in[i]);
		if(in[i] != 0)
			conti = true;
	}
	
	return conti;
}

int main()
{
	int in[6],medal;
	
	while(ini(in))
	{
		medal = 100;
		medal -= in[5]*3;
		medal += in[0]*5+in[1]*3+in[4]*3;
		medal += in[0]*(15 + 15*5);
		medal += in[1]*(15 + 15*3);
		medal += in[2]*7;
		medal += in[3]*2;
		
		printf("%d\n",medal);
	}
	
	return 0;
}

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

int main(){
	int b,r,g,c,s,t;
	while(true){
		cin >> b >> r >> g >> c >> s >> t;
		if(!b && !r && !g && !c && !s && !t)
			return 0;
		cout << b*5*13 + r*3*13 + b*12 + r*12 + g*4 - c - (t-b-r-g-c-s-b*5-r*3)*3 + 100 << endl;
	}
}

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

#define for_(i,a,b) for(int i=(a);i<(b);++i)

int main() {
	int b, r, g, c, s, t;
	
	while (cin >> b >> r >> g >> c >> s >> t, t) {
		int B = 5 * b + 3 * r;
		int T = t - B - s;
		
		cout << 100 + 15 * (b + r) + 13 * B + 7 * g + 2 * c - 3 * T << 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)
	{
		int ret=100;
		ret += 15*(b+r) + 15*(5*b+3*r) - 2*(5*b+3*r);
		ret += 7*g + 2*c;
		ret -= 3*(t-s-5*b-3*r);

		cout << ret << endl;

	}
}