Trying to solve the input problem