Code Jam Utitlities