#include using namespace std; int main() { int p, q, a; cin >> p >> q >> a; if (p == q) { if (a) { cout << (int)1e9 << '\n'; } else { cout << 0 << '\n'; } return 0; } if (p < q) { if (a) { cout << (int)1e9 << '\n'; } else { int res = 1e9; long long x = 1; while (clock() * 1000 / CLOCKS_PER_SEC < 900) { res -= p * x / 100 == q * x / 100; ++x; } cout << res << '\n'; } return 0; } auto chk = [&](long long x) -> bool { return x * (100 + p) / 100 < x * (100 + q) / 100 + a; }; int res = 0; for (int r = 1; r <= 100; ++r) { int ok = -1, ng = 1e7; while (ng - ok > 1) { int mid = (ok + ng) / 2; (chk(100 * mid + r) ? ok : ng) = mid; } res += ok + 1; } cout << res << '\n'; }