solution to atoi