start_time = 9
a = 8
b = 12
ans = 0
for i in range(max(a,b),(a*b)+1):
if i % a == 0 and i % b == 0:
ans = i
break
if ans >= 60:
ans -= 60
start_time += 1
print(f"{start_time}시 {ans}분")
To embed this project on your website, copy the following code and paste it into your website's HTML: