Think about your algorithm or - even better - write down the calculations. Or just let the program do it for you by adding some printlns. Here's a result of doing just that - where each line...