Code Jam solutions using psjava library