- write down your goals so you won't miss-judge your program output
- verify your solution first on paper as it become messy as soon as you start codeing
- if the input is too large and you need to process it all try reducing it modulo operator exist you dumpy