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