Helper for CodeJam competition