#include #include #include using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(0); int a, b, c; cin >> a >> b >> c; a = a * 60; c = c * 60 * 60; if (a == b) { cout << -1 << endl; } else { int x = (c + (a - b - 1)) / (a - b); if (x < 0) cout << -1 << endl; else { cout << x << endl; } } }