parser for coding competition inputs