solve: change reading input scheme