Consider using JSON for the problem description, to reduce the amount of custom parsing logic required.