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<bits/stdc++.h>
using namespace std;
int a,b,c,x,y,cnt;
int main(){
  cin>>a>>b>>c;
  x=7*a+b;
  cnt+=c/x*7;
  y=c%x;
  if(y>0)cnt+=min((y-1+a)/a,7);
  cout<<cnt<<endl;
}

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

using namespace std;

typedef long long int ll;
typedef pair<int,int> P;

#define rep(i,n) for(int i=0;i<(n);++i)
#define repi(i,a,b) for(int i=int(a);i<(b);i++)
#define all(x) x.begin(),x.end()

const ll mod = 1e9+7;
const ll INF = 1e9;

ll gcd(ll a,ll b){return b?gcd(b,a%b):a;}
int dx[4]={1,0,-1,0};
int dy[4]={0,1,0,-1};

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

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

int CEIL(int a, int b) {return (a - 1) / b + 1;}

int main(){

	int A, B, C;
	cin >> A >> B >> C;
	int weekly = 7 * A + B;
	int answer = 0;

	int week = C / weekly;
	answer = week * 7;
	C -= week * weekly;

	for(int day = 0; day < 7 && C > 0; day++){
		C -= A;
		answer++;
	}

	cout << answer << endl;

	return 0;
}

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

C++: #include<cstdio>
#include<functional>
#include<algorithm>
#include<cstring>
using namespace std;
void func(int);
int main(void)
{
    int a,b,c,i,cnt;
    scanf("%d %d %d",&a,&b,&c);
    cnt=0;
    i=0;
    while(cnt<c) {
        i++;
        cnt+=a;
        if(i%7==0)  cnt+=b;
    }
    printf("%d\n",i);
    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<iostream>

int main(){
    int a,b,c;
    std::cin>>a>>b>>c;
    int sum=0;
    int cnt=1;
    while(1){
        if(sum>=c)break;
        else{
            if(cnt%7==0){
            sum=sum+a+b;
            
            // std::cout<<"sum="<<sum<<" cnt="<<cnt<<"\n";
            cnt++;
        }
        else{
            sum+=a;
            // std::cout<<"sum="<<sum<<" cnt="<<cnt<<"\n";
            cnt++;
        }

        }
        
    }
    std::cout<<cnt-1<<"\n";
}

C++: #include <cstdio>
#include <iostream>


int main(void)
{
    int loginCoinA = 0;
    int weeklyCoinB = 0;
    int targetCoinC = 0;

    std::cin >> loginCoinA >> weeklyCoinB >> targetCoinC;

    int nowCoin = 0;
    int days = 0;
    while (targetCoinC > nowCoin) {
        days++;

        nowCoin += loginCoinA;
        if ((days % 7) == 0) {
            nowCoin += weeklyCoinB;
        }
    }

    std::cout << days << "\n";
    return 0;
}

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

using namespace std;

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

C++: #include <iostream>

using namespace std;

int main() {
  int A, B, C;

  cin >> A;
  cin >> B;
  cin >> C;

  int day = 0;

  int sum = 0;

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

    if (sum >= C) {
      cout << day << endl;
      break;
    }
  }

  return 0;
}

C++: #define _USE_MATH_DEFINES
#define _CRT_SECURE_NO_WARNINGS

#include <iostream>
#include <string>
#include <sstream>
#include <iomanip>
#include <cmath>
#include <cstring>
#include <cstdlib>
#include <algorithm>
#include <stack>
#include <queue>
#include <vector>
#include <list>
#include <utility>
#include <numeric>

using namespace std;
typedef long long llong;
typedef unsigned long long ullong;

const ullong MOD = 1000000000 + 7;

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

	int i;
	int s = 0;
	for (i = 1; ; i++)
	{
		s += (a + (i % 7 ? 0 : b));
		if (s >= c)
		{
			break;
		}
	}

	cout << i << endl;
}

C++: #include <iostream>
using namespace std;
int main(){
    int A,B,C;
    cin >> A >> B >> C ;
    int s = 0;
    int i = 1;
    while(s < C){
        s += A;
        if(i % 7 == 0){
            s += B;

        }
        i ++;
    }
    cout << i - 1 <<endl;
    return 0;
}

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

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

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