시간 제한 메모리 제한 제출 정답 맞은 사람 정답 비율
1 초 128 MB 187 56 47 29.375%

문제

기차보다 빠른 비행기를 타기 위해 더 많은 돈을 지불하는것이 과연  그만한 가치가 있는 것일까?

거리 M(Km)이 주어졌을때 기차의 속도 A(Km/h)와 비행기의 속도 B(Km/h)로 달렸을때 발생하는 시간의 차를 계산하여라.

입력

각 줄의 테스트 케이스에는 3개의 정수 M (1 ≤ M ≤ 10,000), A 그리고 B (1 ≤ A < B ≤ 1000)가 주어지며  각 정수들 사이에는 공백으로 구분이 된다. 값이 없는 경우는 없으며 마지막 줄에 3개의 0이 입력된다.

출력

각 테스트 케이스에 있어서 시간은 다음 형식을 따른다

H:MM:SS

분(MM)과 초(SS)는 모두 2자리로 표현되며 그렇기에 필요에 따라 0이 입력되는 경우도 존재한다. 초(Second)는 반올림된 수이여야 하며, 시(Hour)는 최소 자리로 나타낸다. 출력에 공백은 없으며 출력문 사이에 빈 줄은 줄력하지 않는다.

예제 입력 1

21 70 80
26 65 80
0 0 0

예제 출력 1

0:02:15
0:04:30
W3sicHJvYmxlbV9pZCI6Ijk0OTMiLCJwcm9ibGVtX2xhbmciOiIwIiwidGl0bGUiOiJcdWFlMzhcdWJhNzQgXHVhZTMwXHVjYzI4LCBcdWFlMzBcdWNjMjhcdWIyOTQgXHViZTY4XHViNzdjLCBcdWJlNjBcdWI5NzggXHVhYzgzXHVjNzQwIFx1YmU0NFx1ZDU4OVx1YWUzMCIsImRlc2NyaXB0aW9uIjoiPHA+XHVhZTMwXHVjYzI4XHViY2Y0XHViMmU0IFx1YmU2MFx1Yjk3OCBcdWJlNDRcdWQ1ODlcdWFlMzBcdWI5N2MgXHVkMGMwXHVhZTMwIFx1YzcwNFx1ZDU3NCBcdWIzNTQgXHViOWNlXHVjNzQwIFx1YjNjOFx1Yzc0NCBcdWM5YzBcdWJkODhcdWQ1NThcdWIyOTRcdWFjODNcdWM3NzQgXHVhY2ZjXHVjNWYwJm5ic3A7Jm5ic3A7XHVhZ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