x=int(input("type in a number\n"))
if x>5:
  def f2():
    print x+1
else:
  def f2():
    print x-1
f2()
