x = int(input("Enter your number:")) a = x - 1 b = x + 1 print("The previous number is:", a, "\nThe next number is:", b)