added problem description and code to read input