import algorithm,sequtils,strutils,math let a=map(split(readline(stdin)),parseInt) echo int(ceil(a[2]*3600/(a[0]*60-a[1])))