A,B,C = map(int,input().split()) print(max(-(-3600*C//(60*A-B)),-1))