Cobkapfaiteтекст ещё не в индексе
Your inputs are x and y. You don't need to save in any variable again except if necessary.
Meanwhile, you need x and y as integer not strings.
input() function takes in values as strings, so you need to carry out conversion to integer by getting your input this way:
int(input("Enter the number of IDs: "))