文件目录

#include <iostream>
using namespace std;
int main()
{
    int a, b, c;
    cin >> a >> b >> c;
    int ans = 0;
    for (int x = 0; x <= c; x++)
    {
        for (int y = 0; y <= c; y++)
        {
            if (x * a + y * b == c)
                ans++;
        }
    }
    cout << ans;
    return 0;
}