Use `parseBiggestUInt` proc in [strutils](https://nim-lang.org/docs/strutils.html#parseBiggestUInt,string)?
You can do like this:
import strutils
let theint = stdin.readline.parseBiggestUInt
or
import strutils
var theint = -1'u64
try:
theint = stdin.readline.parseBiggestUInt
except ValueError:
# do something
