GTH_SOLVE: Handles input with elements of Int type