#include<bits/stdc++.h>
using namespace std;
typedef long long LL;
int main()
{
LL a,b,n;
cin>>a>>b>>n;
LL res=0;
LL x=a*5+b*2;
// cout<<x<<endl;
res=n/x*7;
n=n-n/x*x;
// cout<<res<<' '<<n<<endl;
for(int i=1;i<=5&&n>0;i++) res++,n-=a;
for(int i=6;i<=7&&n>0;i++) res++,n-=b;
cout<<res;
return 0;
}