//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; int ans = 0; for(int i = 1;; i++){ if((i * b) >= (i * a)){ ans = -1; break; } else if((c + (i * b)) <= (i * a)){ ans = i; break; } } cout << ans << endl; return 0; }