minor change in scanning integer in writeln function