you decided to see a very long stream, recording a lecture or the passage of the game. The player displays the time that you have already watched, and the total duration of the video. Your task & mdash; Write a program that will determine what share from the whole video you have already watched and present this share in the form of a simple unratestible fraction.
rn
for example, if you looked at 2 hours 20 minutes, it is 1/3 of all of all. Video.
rn
The program should take two lines to the input, representing the time in the "HF: MM: SS": the first line & mdash; Viewed time, second & mdash; total duration. Then the program must calculate and display a share in the form of a list of two numbers & nbsp; [numerator, denominator] & nbsp; and accompany the output with an understandable text message.
rn
Important restriction: & nbsp; to find the greatest common divider and simplification of fraction, you cannot use built -in functions from libraries (for example, from the library & nbsp; math ). You must implement the search algorithm on your own using the & nbsp; for . rn & nbsp;
Input format
Viewed time (line in the format "HCh: MM: SS")
Output format
Simplified fraction (a list of two integers)
Example
Output
You watched 1/3 of the total video.
Hint
There will be no clue here, decide for yourself!