There are 12 × 60 × 60 positions on the clock face that can be occupied by hands and start/finish positions. I want to place all three hands on a clock such that they are all in same unit (second) ie I want to find a position (for each hand) which will be in between 0 to 12 * 60 * 60-1.

This is the position I got after conversion (total there are 60 * 60 * 12 positions):

```
h=h*3600+m*60+s;//seems fine
m=60*12*m+s;//wrong
s=s*12*60;//wrong
```

for example: h=6 m=30 s=0

position should be (Hour hand, min hand, sec hand respectively):

6 * 60 * 60 + 30 * 30 + 0

…?

…?

Problem: https://codeforces.com/contest/868/problem/B

Editorial: https://codeforces.com/blog/entry/55046