Go: package main

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

func oneLineInt(s string) []int {
	temp := strings.Split(s, " ")
	// fmt.Println(len(temp))
	ints := []int{}
	for _, elem := range(temp) {
		int_elem, _ := strconv.Atoi(elem)
		ints = append(ints, int_elem)
	}
	return ints
}

func coinCount(ints []int) int {
	cons := ints[0]
	bonus := ints[1]
	target := ints[2]
	count := 0
	day := 0
	var dc int
	for day_count, _ := range(make([]int, target)) {
		day++
		if day % 7 == 0 {
			count += bonus
		}
		count += cons
		if count >= target {
			dc = day_count + 1
			break
		}
	}
	return dc
}

func main() {
	scanner := bufio.NewScanner(os.Stdin)
	var txt string
	if scanner.Scan() {
		txt = scanner.Text()
	}
	ints := oneLineInt(txt)
	// fmt.Println(ints[1])
	// fmt.Println(reflect.TypeOf(ints[0]))
	result := coinCount(ints)
	fmt.Println(result)
}

Python: A, B, C = map(int, input().split())

week = C // (7 * A + B)
coin = week * (7 * A + B)

day = week * 7

if (C - coin) / A < 7 :
    day += (C - coin) // A
    coin += (C - coin) // A * A
    
    if coin != C :
        day += 1
        
else :
    day += 7
    coin += 7 * A + B
    
    if coin < C :
        day += 1
        
print(day)

Python: a,b,c = map(int,input().split())

d = 0
s = 0
while s < c:
    d += 1
    if d%7 == 0:
        s += b
    s += a
print(d)

Python: a,b,c=map(int,input().split())
if c%(a*7+b)<=7*a:
    print(c//(a*7+b)*7-(-1*(c%(a*7+b)))//a)
else:print(-1*((-1*c)//(a*7+b))*7)

Python: import sys
a,b,c = input().split()
i = 0
sum = 0

while sum < int(c):
    i += 1
    sum += int(a)
    if i%7 == 0:
        sum += int(b)
print(i)

Python: a,b,c=map(int,input().split())
n=0
days=0
while True:
    days+=1
    n+=a
    if days % 7 == 0:
        n+=b
    if n>=c:
        break
print(days)

Python: A, B, C = map(int, input().split())
coin = 0
date = 0
while coin < C:
    date += 1
    coin += A
    if date%7 == 0:
        coin += B
print(date)

Python: A,B,C=map(int,input().split())
sum=0
i=1
while True:
    if i%7==0:
        sum+=B
    sum+=A
    if sum>=C:
        break
    i+=1
print(i)

C++: #include <bits/stdc++.h>
using namespace std;
int main(){
  int a, b, c, days = 0, sum = 0;
  scanf("%d %d %d", &a, &b, &c);
  while(1){
    if(sum >= c) break;
    days += 1;
    sum += a;
    if(days % 7 == 0) sum += b;
  }
  printf("%d\n", days);
}

C++: #include<bits/stdc++.h>
#define ll long long
using namespace std;
int main(void){
	ll a, b, c;
	cin >> a >> b >> c;
	ll sum = 0, day = 0;
	while(sum < c){
		sum += a;
		day ++;
		if(day % 7 == 0) sum += b;
	}
	cout << day << endl;
	return 0;
}

C++: /*
17D8101013F 森田　匡博
JOI0652.cpp 2019/10/31
ID:key4 使用言語:C++
*/

#include <iostream>
#include <cmath>

int main()
{
  int A, B;
  long long int C, sum, day;

  std::cin >> A >> B >> C;

  sum = 0, day = 1;
  while(sum < C) {
    sum += A;
    if(day % 7 == 0) {
      sum += B;
    }
    day++;
  }

  std::cout << day - 1 << "\n";
  return 0;
}

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

int main(){
  int a,b,c,i;
  cin>>a>>b>>c;
  while(c>0){
    i+=1;
    c-=a;
    if (i%7==0)c-=b;
  }
  cout<<i<<endl;
  return 0;
}

C++: #include<bits/stdc++.h>
using namespace std;
int main(){
    long long int A,B,C,D;
    scanf("%lld%lld%lld",&A,&B,&C);
    D = (C/(A*7+B))*7;
    if(((C%(A*7+B)+A-1)/A)>7){
        D+=7;
    }else{
        D+=((C%(A*7+B)+A-1))/A;
    }
    
    printf("%lld\n",D);
}

C++: #include <bits/stdc++.h>
using namespace std;
int main(){
  int x=0,y=0,A,B,C;
  cin>>A>>B>>C;
    while(x<C){
      y=y+1;
      if(y%7==0){
	x=x+B;
	x=x+A;}
	else {
	  x=x+A;}

    }
    cout<<y<<endl;
    return 0;
}

C++: #include<iostream>
#include<stdio.h>
#include<cctype>
#include<string>

using namespace std;

int main()
{
  int a,b,c;
  cin>>a>>b>>c;
  int i=1,sum=0;
  while (sum<c){
    sum+=a;
    if(i%7==0)sum+=b;
    //cout<<i<<sum<<endl;
    i++;
  }
  cout<<i-1<<endl;
  return 0;
}

C++: #include <iostream>
using namespace std;
int main(void){
    int a,b,c,s,d;
    s=0;
    d=0;
    cin>>a>>b>>c;
    while(1){
        if(s>=c){
            break;
        }
        s=s+a;
        d=d+1;
        if(d%7==0){
            s=s+b;
        }
    }
    cout<<d<<endl;
}

C++: #include <iostream>
using namespace std;
int main(void){
    int a,b,c;
    cin >> a >> b >> c;
    int score=0;
    for(int i=1;;i++){
        score +=a;
        if(i%7 == 0){
            score +=b;
        }
        if(score >= c){
            cout << i << endl;
            break;
        }
    }
}

C++: #include<stdio.h>
int main(void)
{
	int A = 0, B = 0, C = 0, RESULT = 0, day = 0, coin = 0;

	scanf("%d%d%d", &A, &B, &C);

	while (C > coin)
	{
		RESULT++;
		day++;
		coin += A;

		if (day == 7)
		{
			day = 0;
			coin += B;
		}
	}

	printf("%d\n", RESULT);

	return 0;
}

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

int main() {
	int A = 0, B = 0, C = 0;
	cin >> A >> B >> C;

	int m = 0, day = 0;
	while(m < C) {
		day++;
		m += A;
		if(day%7 == 0) m += B;
	}
	cout << day << endl;
}

C++: #include <bits/stdc++.h>
#define rep(i,n) for (int (i) = 0; (i) < (n); (i)++)
using namespace std;
typedef long long ll;

int main() {
    int a, b, c, ans = 0; cin >> a >> b >> c;

    for (int i = 1; c > 0; i++) {
        ans++;
        c -= a;
        if (i % 7 == 0) {
            c -= b;
            if (c <= 0) break;
        }
    }
    cout << ans << endl;
}

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

int main (){
  int a,b,c,x,j=0;
  cin >> a >> b >> c;
  for (int i=1; c>x; i++){
    j=i;
    x+=a;
    if (i%7==0){
      x+=b;
    }
  }
cout << j << endl;

  return 0;
}

C++: #include <iostream>
using namespace std;
int main(void){
    int a,b,c;
    cin>>a>>b>>c;
    int coin=0;
    int day=0;
    while(7){
        if(coin>=c){
            break;
        }
        coin=coin+a;
        day=day+1;
        if(day%7==0){
            coin=coin+b;
        }
    }
    cout<<day<<endl;
}

C++: #include <bits/stdc++.h>
#include <string.h>
#define rep(i, n) for(int i = 0; i<(n); i++)
using namespace std;
typedef long long ll;
//pi = 3.14159265358979323846

int main() {

    int i, a, b, c, now;
    cin >> a >> b >> c;
    now = 0;
    for(i = 0; now < c; i++){
        now += a;
        if(i % 7 == 6)now += b;
    }
    cout << i << endl;

}

C++: #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ull = unsigned long long;
#define REP(i,n) for (ll i = 0; i < (n); ++i)

int main(){
    ll a, b, c;
    cin >> a >> b >> c;
    ll numw = c / (7 * a + b);
    c -= numw * (7 * a + b);
    ll numd = min(7LL, (c + a - 1) / a);
    cout << 7 * numw + numd << endl;
    return 0;
}

C++: #include <iostream>
#include <algorithm>
#include <vector>
#include <cmath>
#define rep(i, n) for(int i = 0; (i) < (n); (i)++)

using namespace std;

int main() {
    int a,b,c;
    cin >> a >> b >> c;
    int t=0,cnt=0,ans=0;
    while(t < c) {
        t += a;
        cnt++;
        if(cnt == 7) {
            cnt = 0;
            t += b;
        }
        ans++;
    }
    cout << ans << endl;
}

C++: #include <iostream>
using namespace std;
int main(void){
  int a,b,c;
  cin>>a>>b>>c;
  int coin=0;
  int day=0;
  while(1){
      if(coin>=c){
          break;
      }
      coin=coin+a;
      day=day+1;
      if(day%7==0){
          coin=coin+b;
      }
  }
      cout<<day<<endl;
      return 0;
  }

C++: #include <iostream>
using namespace std;
int main(void){
    int a,b,c,coin,day;
    coin=0;
    day=0;
    cin>>a>>b>>c;
    
    while(1){
        if(coin>=c){
            break;
    }
    coin=a+coin;
    day=day+1;
    if(day%7==0){
        coin=coin+b;
    }
    
    }
    cout<<day<<endl;
}

C++: #include<stdio.h>
int main(void)
{
	int a,b,c,x,y;
	scanf("%d %d %d",&a,&b,&c);
	x=0;	y=0;	
	while(1){
		if(x>=c) break;
		x+=a;
		y++;
		if(y%7==0)  x+=b;
	}
	printf("%d\n",y);
	return 0;
}