Niyaz's solution to clockhands