//g++ -std=c++11 -Wall -O2 -o main.exe main.cpp //g++ -std=c++14 -Wall -O2 -o main.exe main.cpp #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; #define spc " " #define MOD 1000000007 typedef long long ll; typedef long double ld; typedef pair p_ii; typedef tuple tup; bool tupComp(tup &t1, tup &t2){ return get<2>(t1) > get<2>(t2); } //------------------------------------------------------------------------------ int main(){ ll a, b, c; cin >> a >> b >> c; a *= 60; c *= 3600; ll ans = max((ll)-1, (c + (a - b - 1)) / (a - b)); cout << ans << endl; return 0; }