a=int(input())
txt1='The next number for the number {number} is {num}.'.format(number=a, num=a+1);
txt2='The previous number for the number {num} is {number}.'.format(num=a, number=a-1);
print(txt1)
print(txt2)


