Day 1 problem of my Math mini-contest 😎