Fixing the code so InputXY returns both X and Y