reversed input parser use of sto* functions, they are only in C++11 and icpc 14.0.1 does not support it.