Go: package main

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

var scanner = bufio.NewScanner(os.Stdin)

func nextInt() (int, error) {
	return strconv.Atoi(nextString())
}

func nextString() string {
	scanner.Scan()
	return scanner.Text()
}

func printArr(arr []string) {
	fmt.Println(strings.TrimRight(fmt.Sprintf("%+v", arr)[1:], "]"))
}

func main() {
	scanner.Split(bufio.ScanWords)

	coinDaily, _ := nextInt()
	coinWeekly, _ := nextInt()
	coinTarget, _ := nextInt()

	coinCurrent := 0
	i := 0
	for i = 0; i <= 1000000; i++ {
		coinCurrent += coinDaily
		if (i+1)%7 == 0 {
			coinCurrent += coinWeekly
		}
		if coinCurrent >= coinTarget {
			break
		}
	}
	fmt.Println(i + 1)
}

C++: #include <iostream>
using namespace std;
int main(void){
    int A,B,C,x,y,w;
    cin>>A>>B>>C;
    if(C<A*7){
     cout<<C/A+1;   
    }
    if(C>A*7){
        x=C/(7*A+B);
        y=C-x*(7*A+B);
        if(y%A==0){w=y/A;}else{w=y/A+1;}
        
        cout<<x*7+w;
    }
}

C++: #include <bits/stdc++.h>
using namespace std;
#define IOS ios::sync_with_stdio(false); cin.tie(0);
#define FOR(i,s,n) for(int i = s; i < (n); i++)
#define REP(i,n) FOR(i,0,n)
#define ALL(n) (n).begin(), (n).end()
#define RALL(n) (n).rbegin(), (n).rend()
#define ATYN(n) cout << ( (n) ? "Yes":"No") << endl;
#define CFYN(n) cout << ( (n) ? "YES":"NO") << endl;
#define OUT(n) cout << (n) << endl;
using ll = long long;
using ull = unsigned long long;
using pii = pair<int,int>;

int main(void)
{
    IOS
    int a, b, c;
    cin >> a >> b >> c;
    int i = 0;
    int coin = 0;
    while(coin < c) {
        if (i % 7 == 6) coin += a + b;
        else coin += a;
        i++;
    }

    OUT(i)

    return 0;
}

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

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

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

using namespace std;

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


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

    cout << day << endl;

    return 0;
}

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

int main() {
  int A, B, C;
  cin >> A >> B >> C;
  int ans = 0;
  for (int i = 0; i < C; i += A) {
    ++ans;
    if (ans % 7 == 0)
      i += B;
  }
  cout << ans << endl;
}

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

C++: #include<iostream>
#include<algorithm>
#include<cstdio>
#include<cmath>
using namespace std;
int main(void){
  int A,B,C,c1=0,c2=0,c3=0;
  cin>>A>>B>>C;
  while(1){
  	c1+=A;
    c2++;c3++;
    if(c2>=7){c1+=B;c2-=7;}
    if(c1>=C){break;}
  }
  cout<<c3<<endl;
  return 0;
}

C++: #include <iostream>


using namespace std;


int main()
{
	int A, B, C;	// A:ログインでもらえるコイン数 B:月曜から日曜まで連続ログインでもらえるコイン数 C:ほしいコインの枚数

	cin >> A >> B >> C;

	int day = 0;
	int sum_coin = 0;
	for(day = 1; day <= C; day++){
		sum_coin += A;

		if(!(day % 7))
			sum_coin += B;

		if(C <= sum_coin)
			break;
	}

	cout << day << endl;

	return 0;
}

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

#ifdef __linux
#define _U(s) s##_unlocked
#else
#define _U(s) _##s##_nolock
#define _CRT_DISABLE_PERFCRIT_LOCKS
#endif
#define gcu _U(getchar)
#define pcu _U(putchar)
#define _DEF(r, n, ...) inline r n(__VA_ARGS__) noexcept
#define _T template <typename T>
#define _HT template <typename H,typename... T>
#define _OP(t) inline operator t()
struct _in {
#ifdef _GLIBCXX_STRING
	_OP(string){string s;char c;while(isspace(c = gcu()));do{s+=c;}while(c=gcu(),c!=' '&&c!='\n'&&c!=EOF);return s;}
#define _S
#endif
	_OP(char){char c=gcu();gcu();return c;}
	_OP(double){double d; scanf("%lf",&d); gcu();return d;}
	_T _OP(T){T n{},m{1},c;while(isspace(c = gcu()));if(c=='-')m=-1,c=gcu();do{n=10*n+(c-'0'),c=gcu();}while(c>='0'&&c<='9');return m*n;}
} in;
#define _SCAN(...) _DEF(bool,scan,__VA_ARGS__)
#ifdef _S
_SCAN(string &o) {int c{gcu()};if(c==EOF)return false;else{ungetc(c,stdin);string t=move(in);o=t;return true;}}
#endif
_T _SCAN(T &o) {int c{gcu()};return c==EOF?false:(ungetc(c,stdin),o=in,true);}
_HT _SCAN(H &h,T&&... t){return scan(h)&&scan(t...);}
#define _OUT(...) _DEF(void,out,__VA_ARGS__)
#define _OUTL(...) _DEF(void,outl,__VA_ARGS__)
_OUT(bool b){pcu('0'+b);}
_OUT(const char *s){while(*s)pcu(*s++);}
_OUT(char c){pcu(c);}
#ifdef _S
_OUT(string &s){for(char c:s)pcu(c);}
#endif
_T _OUT(T n){static char b[20];char *p=b;T m=n<0?pcu('-'),-1:1;
	if(!n)*p++='0';else while(n)*p++=(char)(n%10*m+'0'),n/=10;while(p!=b)pcu(*--p);}
_OUTL(){out('\n');}
#ifdef _GLIBCXX_VECTOR
	_T _OUT(vector<T> &v){for(T &x:v)out(&x == &v[0]?"":" "),out(x);}
#endif
	_HT _OUT(H &&h, T... t){out(h);out(t...);}
	template <typename... T> _OUTL(T... t){out(t...);outl();}
	struct range{
		int e,b=0,s=1;range(int _b,int _e,int _s):e(_e),b(_b),s(_s){} range(int _b,int _e): e(_e), b(_b){} range(int _e):e(_e){}
		struct it{int v,s; it(int _v,int _s):v(_v),s(_s){} operator int()const{return v;} operator int&(){return v;}int operator*()const{return v;}
			it& operator++(){v+=s;return *this;} }; it begin(){return {b,s};} it end(){return {e,s};}};
#define times(i,n) for(int i=n;i;i--)

int main() {
	int A {in}, B {in}, C {in}, d {A * 7 + B};
	outl(C / d * 7 + min(7, (C % d + A - 1) / A));
}

C++: #include<iostream>
#include<algorithm>
using namespace std;
int main(){
  int a,b,c,p=0;
  cin>>a>>b>>c;
  for(int i=1;i<=1000000;i++){
    p=p+a;
    if(i%7==0){
      p=p+b;
    }
    if(p>=c){
      p=i;
      break;
    }
  }
  cout<<p<<'\n';
  return(0);
}

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

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

C++: #include <iostream>

void solve() {
    int a, b, c;
    std::cin >> a >> b >> c;

    for (int d = 1;; ++d) {
        c -= a;
        if (d % 7 == 0) c -= b;
        if (c <= 0) {
            std::cout << d << "\n";
            break;
        }
    }
}

int main() {
    std::cin.tie(nullptr);
    std::ios::sync_with_stdio(false);

    solve();

    return 0;
}

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

C++: #include <iostream>
using namespace std;
int main(void){
    int A,B,C,x,y,w;
    cin>>A>>B>>C;
    if(C<A*7){
     cout<<C/A+1;   
    }
    if(C>A*7){
        x=C/(7*A+B);
        y=C-x*(7*A+B);
        if(y%A==0){w=y/A;}else{w=y/A+1;}
        
        cout<<x*7+w;
    }
}

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

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

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