Hello, welcome to Python and the Forums! There are many ways to tackle the task. I suggest you to start with writing pseuo code for the program. Or even diagram/flowchart first, if you need to get a better picture of how the program should work. Then you can move on to transforming pseudocode to actual Python code. You will like want to use divmod() function among others. Feel free to ask (specific and descriptive) questions if you get stuck along the way.