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 <iostream>
using namespace std;

int main(void){
    int a,b,c;
    cin>>a>>b>>c;
    int n=c/(a*7+b);
    int rem=c-n*(a*7+b);
    cout<<n*7+(rem-rem%a)/a<<endl;
    return 0;
}

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

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

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

  int count = 0;
  int point = 0;
  while(1) {
    count++;
    point+=a;
    //cout << count << " " << point << endl;
    if(count % 7 == 0) point+=b;
    if(point >= c) {
      cout << count << endl;
      break;
    }
  }

  return 0;
}

C++: #include <iostream>

int cutBySeven(int x)
{
  if (x > 7){
    return 7;
  }else{
    return x;
  }
}

int main()
{
  // データ準備
  int a, b, c;

  std::cin >> a >> b >> c;

  // 1週間ログインするともらえるコイン
  int coinPerWeek = 7*a+b;

  // 最低何週間のログインが必要か
  int minimumWeek = c/coinPerWeek;

  // minimumWeek 週間のログインで足りない分のコイン
  int luck = c%coinPerWeek;

  // luck 分のコインを集めるのに必要な日数
  int daysForLuck = cutBySeven((luck%a==0) ? luck/a : luck/a+1);

  // 出力
  std::cout << minimumWeek*7+daysForLuck << '\n';
}

C++: #include <iostream>
using namespace std;
int main(void){

    int a,b,c;
    cin >> a >> b >> c;
    int score = 0;
    for(int day = 1; ; day++){
        score += a;
        if(day % 7 == 0){
            score += b;
        }
        if(score >= c){
            cout << (day) << endl;
            break;
        }
    }
}

C++: #include <iostream>
#include <string>
#include <algorithm>
#include <functional>
#include <vector>
#include <utility>
#include <cstring>
#include <iomanip>
#include <numeric>
#include <cmath>
using namespace std;
typedef long long ll;
const int INF = 1<<30;
const int MOD = 1e9 + 7;
int main()
{
    cin.tie(0);
    ios::sync_with_stdio(false);
    int A, B, C; cin >> A >> B >> C;
    int ans = 0;
    while(C > 0)
    {
        int res = 0;
        if(C >= 7 * A)
        {
            C -= 7 * A + B;
            res += 7;
        }
        else
        {
            res += (C + A - 1) / A;
            C = 0;
        }
        ans += res;
    }
    cout << ans << endl;
    return 0;
}

C++: #include <iostream>
using namespace std;
int main(void){
    
        int A, B, C;
        cin >> A >> B >> C;
        int ans = 0;
        int i = 0;
        
        while(true){
            i++;
            if(i%7 != 0){
                C-=A;
                ans++;
                if(C <= 0) break;
            }
            else{
                C-=(A+B);
                ans++;
                    if(C <= 0) break;
            }
            
        }
        
        cout << ans << endl;

}

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

using namespace std;

int main() {
    int a, b, c;
    cin >> a >> b >> c;
    int now = 0;
    int day = 0;
    while (now < c) {
        now += a;
        ++day;
        if (day % 7 == 0) {
            now += b;
        }
    }
    cout << day << '\n';
}

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

int main() {


int A , B , C = 0 ;	// A:毎日もらえるコイン数 , B:7日連続ログインでもらえるコイン数 , C:手に入れたい総コイン数


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 ;		// 週の何日目かのカウントを0にする。
		}else{				// C++ではelse{}は省略可
		}

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

	}

cout << days << endl;

}

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

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

C++: #include <iostream>
using namespace std;
int main(void){
    // Your code here!
    int a,b,c,i=0,x=0;
    cin>>a>>b>>c;
    while(1){
        i++;
        x=x+a;
        if(i%7==0){
            x=x+b;
        }
         if(c<=x){
            break;
        }
    }
    cout<<i<<endl;
}

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

int a, b, c, ans, w;

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

C++: /*17D8103001E Fukushima Emi persimmon8 c++ 19.10.31*/

#include<iostream>
using namespace std;

int min(int a,int b,int n){
  int c=0,m=0;

  if(n<a) return 1;
  else if(n<7*a){
    while(1){
      m+=a;
      c++;
      if(m>=n) break;
    }
    return c;
  }else{
    while(1){
      m+=a;
      c++;
      if(c%7==0) m+=b;
      if(m>=n) break;
    }
    return c;
  }
  return c;
}

int main(){
  int n,a,b;
  cin>>a>>b>>n;
  //cout<<n<<a<<b;
  
  int ans=min(a,b,n);
  cout<<ans<<endl;

  return 0;
}

C++: #include<bits/stdc++.h>
using namespace std;
int main(){
    int a,b,c;
    cin>>a>>b>>c;
    int ans = 0;
    int i=0;
    while(ans<c){
        
        i++;
        ans += a;
        if(i%7==0)ans+=b;
        
    }
    cout<<i<<endl;
}

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

int main() {
  int A,B,C;
  cin>>A>>B>>C;
  int a=0;
  int count=0;
  while(count<C){
    count+=A;
    a++;
    if(a%7==0) count+=B;
    
  }
  cout<<a<<endl;;
  return 0;
}

C++: #include <bits/stdc++.h>
#define ll long long
#define rep(i, n) for (ll i = 0; i < n; i++)
using namespace std;
int dy[4] = { 1, 0, -1, 0 }, dx[4] = { 0, 1, 0, -1 };
const ll MOD = 1e9 + 7;
const ll INF = 1e9;

int main()
{
    cin.tie(0);
    ios::sync_with_stdio(false);
    int a, b, c;
    cin >> a >> b >> c;
    int sum = 0;
    int day = 0;
    while (sum < c) {
        day++;
        sum += a;
        if (day % 7 == 0)
            sum += b;
    }
    cout << day << endl;
    return 0;
}

C++: #include<iostream>
using namespace std;
int main(){
int A,B,C,k = 0,i,m = 0;
cin>>A>>B>>C;
while(1){
k = m/7;
i = A * m + B * k;
if(i >= C)
break;
m++;
}
cout<<m<<endl;
return 0;
}

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

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

    while (money < c){
        ans++;
        if(ans%7==0){
            money += a+b;
        }else{
            money += a;
        }
    }
    //cout <<fixed<<setprecision(16)<< << endl;
    cout << ans << endl;

    //if(flag==1)cout << "Yes" <<endl;
    //else cout << "No" <<endl;
    
    return 0;
}