PS: One of the highest points during my college prep days was when I managed to solve this kinematics problem from Krotov where the condition for a ball bouncing in a well to get out depends on the ratio of some parameters to be co prime. Good times.