#define _USE_MATH_DEFINES #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; typedef long long ll; const int mod=1e9+7; int main(){ ll a,b,c; cin>>a>>b>>c; cout<<(60*a<=b?-1:(3600*c+60*a-b-1)/(60*a-b))<