s,v = map(int,input().split(' '))
t = s/v +10
htime = int(t//60+1)
mtime = int(60-t%60)
if htime>8:
h0=htime-8
h1=24-h0
else:
h1=8-htime
if h1 < 10:
if mtime < 10:
print("0%d:0%d" % (h1,mtime))
else:
print("0%d:%d" % (h1,mtime))
else:
if b < 10:
print("%d:0%d" % (h1,mtime))
else:
print("%d:%d" % (h1,mtime))
源代码就是上面那些,我试了500和20的输入就会显示语法错误(可能就是bug或bug之一),怎么处理啊?