from math import ceil def main(): A, B, C = map(int, input().split()) A_seconds = A * 60 C_seconds = C * 3600 if A_seconds <= B: print(-1) return print(ceil(C_seconds / (A_seconds - B))) if __name__ == "__main__": main()