($A,$B,$C)=glob<>; print$A*60>=$B?($C*3600-1)/($A*60-$B)+1|0:-1