#include using namespace std; int main(void){ int A, B, C; cin >> A >> B >> C; long a = 60 * A; long b = B; long c = 3600 * C; if(a <= b){ cout << -1 << endl; return 0; } cout << (c / (a - b) + 1) << endl;; return 0; }