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 main(){
    int a,b,c;
    cin >> a >> b >> c;
    int d=c/(a*7+b);
    int e=c%(a*7+b);
    if(e%a!=0){
        if(e>a*7){
            cout << d*7+7 << endl;
            return 0;
        }
        cout << d*7+e/a+1 << endl;
        return 0;
    }
    else
    {
        if(e>a*7){
            cout << d*7+7 << endl;
            return 0;
        }
        cout << d*7+e/a << endl;
        return 0;
    }
    
}

C++: #include<iostream>

int main(){
  int A,B,C;
  std::cin>>A>>B>>C;
  int coin_count=0,day=0;
  while(coin_count<C){
    day++;
    coin_count+=A;
    if(day%7==0){
      coin_count+=B;
    }
    if(coin_count>=C)break;
  }
  std::cout<<day<<std::endl;
  return 0;
}

C++: #include <bits/stdc++.h>
#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 ans = 0;
    while(c > 0) {
        ans++;
        c -= a;
        if(ans % 7 == 0) c -= b;
    }
    cout << ans << '\n';
    return 0;
}

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

// GCD, LCM
ll gcd(ll a, ll b) { return b?gcd(b,a%b):a;}
ll lcm(ll a, ll b) { return a/gcd(a,b)*b;}
 
int main()
{
    int A,B,C,temp=0,ans=0;
    cin>>A>>B>>C;

    while(1){
        ans++;
        temp+=A;
        if(ans%7==0)temp+=B;
        if(temp>=C)break;
    }

    cout<<ans<<endl;
 
    return 0;
}

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

int main(){
    
    int cA,cB,cC;
    int mResult=0;
    
    cin>>cA>>cB>>cC;
    
    while(cC>0){
        mResult++;
        cC-=cA;
        if(!(mResult%7)){
            cC-=cB;
        }
    }
    
    cout<<mResult<<endl;
    
    return 0;
}

C++: #include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0; i<(n); i++)
#define FOR(i,x,n) for(int i=x; i<(n); i++)
#define ALL(n) begin(n),end(n)
#define MOD 1000000007
 
typedef long long ll;
typedef unsigned int ui;
typedef unsigned long long ull;
template <class T>
void print(T& x){printf("%d\n", x);}
void printvec(vector<int> a){
    rep(i, a.size()-1){
        printf("%d ", a[i]);
    }
    printf("%d\n", a[a.size()-1]);
}
 
int main()
{
    int A, B, C;
    cin >> A >> B >> C;

    int ans=0;
    ans += 7 * (C / (7*A+B));

    C %= (7*A+B);
    if(C > 7*A){
        ans += 7;
    }else{
        ans += C/A;
        if(C%A != 0) ans++;
    }

    print(ans);
    return 0;
}

C++: #include <bits/stdc++.h>
#define rep(i,n)for(long long i=0;i<(n);i++)
using namespace std;
using P=pair<long long,long long>;
typedef unsigned long long ull;
typedef long long ll;
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return true; } return false; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return true; } return false; }
 
const ll MOD=1e9+7;
const ll INF=1e18;
const double pi=acos(-1);
int dx[4]={1,0,-1,0};
int dy[4]={0,1,0,-1};


int main(){
  cin.tie(0);
  ios::sync_with_stdio(false);  
  
  int a,b,c;
  cin >> a >> b >> c;
  int ans=0;
  ans+=c/(7*a+b);
  c-=ans*(7*a+b);
  ans*=7;
  if(6*a>=c)ans+=(c+a-1)/a;
  else ans+=7;
  cout << ans << endl;
}

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

int main(){
    int A,B,C,day=1;

    cin >> A >> B >> C;

    while(A*day+(day/7)*B<C){
        day++;
    }

    cout << day << endl;

    return 0;
}

C++: #include<iostream>
#include<vector>
#include<algorithm>
#include<cctype>
#include<utility>
#include<string>
#include<cmath>
#include<cstring>
#include<queue>
#include<map>

#define REP(i, n) for(int i = 0;i < n;i++)
#define REPR(i, n) for(int i = n;i >= 0;i--)
#define FOR(i, m, n) for(int i = m;i < n;i++)
#define FORR(i, m, n) for(int i = m;i >= n;i--)
#define SORT(v, n) sort(v, v+n);
#define VSORT(v) sort(v.begin(), v.end());
#define llong long long
#define pb(a) push_back(a)
using namespace std;
typedef pair<int, int> P;
typedef pair<llong, llong> LP;
typedef pair<int, P> PP;
typedef pair<llong, LP> LPP;
typedef long long int ll;

template<typename T>
vector<T> make_v(size_t a) { return vector<T>(a); }
template<typename T, typename... Ts>
auto make_v(size_t a, Ts... ts) {
	return vector<decltype(make_v<T>(ts...))>(a, make_v<T>(ts...));
}
template<typename T, typename V>
typename enable_if<is_class<T>::value == 0>::type
fill_v(T& t, const V& v) { t = v; }
template<typename T, typename V>
typename enable_if<is_class<T>::value != 0>::type
fill_v(T& t, const V& v) {
	for (auto& e : t) fill_v(e, v);
}


#define ARRAY_MAX 105
const int INF = 1e9 + 7;



int main() {

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

	int ans = 7 * (c / (7 * a + b));
	//cout << a << " " << b << " " << c << endl;
	c -= (7 * a + b) * (c / (7 * a + b));
	
	cout << c << endl;
	ans += (c - 1) / a + 1;

	cout << ans << endl;
}

C++: #include <iostream>
using namespace std;
int main(void){
    int x, y, z, w, u;
    w = 0,u = 0; 
    cin >> x >> y >> z;
    while(true){
        u += 1;
        w += x;
        if(u%7 == 0){
           w += y;
        }
        if (w >= z){
           break;
        }
    }
    cout << u <<endl;
}

C++: #include "iostream"
#include "climits"
#include "list"
#include "queue"
#include "stack"
#include "set"
#include "functional"
#include "algorithm"
#include "string"
#include "map"
#include "unordered_map"
#include "unordered_set"
#include "iomanip"
#include "cmath"
#include "random"
#include "bitset"
#include "cstdio"
#include "numeric"

using namespace std;

const long long int MOD = 1000000007;
//const int MOD = 998244353;

long long int N, M, K, H, W, L, R;
//int N, M, K, H, W, L, R

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

	cin >> N >> M >> K;
	for (int i = 0; K > 0; i++) {
		K -= N;
		if (i % 7 == 6)K -= M;
		if (K <= 0)cout << i + 1 << endl;
	}
}

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

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

    return 0;
}

C++: // 2019/06/26 Tazoe

#include <iostream>
using namespace std;

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

    int W = C/(A*7+B);
    C %= (A*7+B);
    if(C>A*7){
        W++;
        C = 0;
    }

    int D = C/A;
    C %= A;
    if(C>0){
        D++;
    }

    cout << W*7+D << endl;

    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>
int main(){
  int a,b,c;
  std::cin>>a>>b>>c;
  int coin = 0;
  int day = 0;
  while(coin < c){
    day += 1;
    coin += a;
    if(day%7==0){
      coin += b;
    }
  }
  std::cout<<day<<"\n";
}