#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; int main() { int64_t a, b, c; cin >> a >> b >> c; a *= 60; c *= 3600; int64_t d = a - b, ans; if (d <= 0) ans = -1; else ans = (c + d - 1) / d; cout << ans << endl; return 0; }