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

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

int main(void)
{
    int a,b,c;
    cin >> a >> b >> c;

    int coin = 0;
    int days = 0;
    
    while(coin < c){
        days++;
        coin += a;
        if(days % 7 == 0){
            coin += b;
        }
    }

    cout << days << endl;
}

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

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

	int d = 0, j = 0;
	while (j < c)
	{
		d++;
		j += a;
		if (d % 7 == 0)
			j += b;
	}
	cout << d << endl;

	return 0;
}

C++: #include <iostream>

int main(int argc, char const *argv[]) {
  int A, B, C,coin=0, day=0;
  std::cin >> A >> B >> C;
  while(coin < C){
    day = day + 1;
    coin = coin + A;
    // + - * / %
    if(day % 7 == 0){
      coin = coin + B;
    }
  }
  std::cout << day << '\n';
}

C++: #include <iostream>
using namespace std;
int main(void){
    int daily, weekly, goal;
    int coins = 0;
    int N = 0;
    
    cin >> daily;
    cin >> weekly;
    cin >> goal;
    
    while(coins < goal){
        for(int i=0; i<7; i++){
            coins += daily;
            N++;
            
            if(coins>=goal){
                cout << N << "\n";
                return 0;
            }
        }
        
        coins += weekly;
        //N++;

        if(coins>=goal){
            cout << N << "\n";
            return 0;
        }        
    }
return 0;    
}

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

int main() {
  int A, B, C, P, N, Ans;
  cin >> A >> B >> C;
  P = 0;
  Ans = 0;
  N = 1000000;
  
  for (int i = 0; i < N; i++) {
    Ans++;
    P += A;
    if (Ans % 7 == 0) {
      P += B;
    }
    if (P >= C) {
      break;
    }
  }
  
  cout << Ans << endl;
  
  return 0;
}

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

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

  int ans = 0;
  while (true) {
    if (7 * a >= c) {
      ans += ceil((double)c / a);
      break;
    } else if (7 * a + b >= c) {
      ans += 7;
      break;
    } else {
      ans += 7;
      c -= 7 * a + b;
    }
  }

  cout << ans << endl;
}

C++: #include <bits/stdc++.h>
using ll = long long;
using namespace std;
#define _overload3(_1, _2, _3, name, ...) name
#define _rep(i, n) repi(i, 0, n)
#define repi(i, a, b) for(int i = int(a); i < int(b); ++i)
#define rep(...) _overload3(__VA_ARGS__, repi, _rep, )(__VA_ARGS__)
const long long INFLL = 1LL << 60;
const int INFINT = 1 << 30;
const long long MOD = 1e9 + 7;

template <class T> void vecout(T V) {
    auto t = V.begin();
    while(t != V.end()) {
        cout << *t++;
        if(t != V.end()) cout << " ";
    }
    cout << endl;
};

int main() {
    int A, B, C, d = 0;
    cin >> A >> B >> C;
    int w = A * 7 + B;
    if(C >= w) {
        d = 7 * (C / w);
        C %= w;
    }
    d += (C > A * 7) ? 7 : ceil(C * 1.0 / A);

    cout << d << endl;
}

C++: #include <iostream>

using namespace std;

int main(){

  int a, b, c;
  cin >> a >> b >> c;

  int day = 0;
  int coin = 0;

  while(coin < c){
    day++;
    if(day % 7 == 0){
      coin += b;
    }
    coin += a;
  }
  cout << day << '\n';

  

  return 0;
}

C++: #include<iostream>

using namespace std;

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

	int coin = 0, count = 0;
	while(true){
		count++;
		coin += (count%7!=0) ? a : a + b;
		if(coin>=c) break;
	}
	
	cout << count << endl;

	return 0;
}

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

C++: #include <bits/stdc++.h>

using namespace std;

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

  return 0;
}

C++: #include <iostream>

using namespace std;

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

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

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

int main() {

int A , B , C = 0 ;
int days = 0 ; 
int week_day_count = 0 ; // 週の何日目かのカウント。月曜日:1 , 火曜日:2 , …　土曜日:6 , 日曜日:7

cin >> A >> B >> C ;

	while( C > 0 ){
	
	days = days + 1 ;			// 「経過日数」を1追加
	week_day_count = week_day_count + 1 ;	// 週の何日目かのカウントを1追加

	C = C - A ;				// 毎日のログインボーナスの処理

		if( 7 == week_day_count ) 	//「日曜日になったとき」の処理。if( week_day_count == 7 )としなかったのはミス防止
		{ C = C - B ; 
		  week_day_count = 0 ;		// 週の何日目かのカウントを1（月曜日）にする。
		}else{				// C++ではelse{}は省略可
		}

		if( C <= 0 ) 	// Cが0未満になったときループを抜ける
		{
		break;
		}else{				// C++ではelse{}は省略可
		}


	}

cout << days << endl;

}

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

using namespace std;

int main(){
	int A, B, C;
	cin >> A >> B >> C;
	int sum = 0;
	int days = 0;
	while(true){
		if(sum + A*7 + B >= C){
			for(int i = 0; i < 7; i++){
				sum += A;
				days++;
				if(i == 6){
					sum += B;
				}
				if(sum >= C){
					break;
				}
			}
		}
		else{
			sum += A*7 + B;
			days += 7;
		}
		if(sum >= C){
			break;
		}
	}
	cout << days << "\n";
}

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

int main(){

int A,B,C,day,sum=0;

cin>>A>>B>>C;

for(int i=1;i<=1000000;i++){
sum=sum+A;
if(i%7==0){
sum=sum+B;
}

if(sum >= C){
day=i;
break;
}
}

cout<<day<<endl;

return 0;
}

C++: #include <stdio.h>
#include <iostream>
#include <algorithm>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <math.h>
#include <cstdio>
#include <float.h>
#include <ctype.h>
#include <queue>
#include <map>
#include <stack>
#include <limits.h>
#include <cstdlib>
#include <string>
#include <ctime>
#include <cmath>
#include <cstdlib>
#include <cfloat> 
using namespace std;
int main(void) {
	int a, b, c,day=0,i=7,j=0;
	scanf("%d %d %d", &a, &b, &c);
	while (1) {
		if (j >= c)
			break;
		j = j+a;
		day++;
		if (day%7==0) {
			i = i * 2;
			j = j + b;
		}
	}
	printf("%d\n", day);
	return 0;
}