Write a program to obtain a number $N$ and increment its value by 1 if the number is divisible by 4 $otherwise$ decrement its value by 1.

-----Input:-----
- First line will contain a number $N$.

-----Output:-----
Output a single line, the new value of the number.

-----Constraints-----
- $0 \leq N \leq 1000$

-----Sample Input:-----
5

-----Sample Output:-----
4

-----EXPLANATION:-----
Since 5 is not divisible by 4 hence, its value is decreased by 1.

Difficulty: interview

Starter code:

Solutions:
# cook your dish here
n = int(input())
if(n%4==0):
    print(n+1)
else:
    print(n-1)

n=int(input())
if n%4==0:
    n+=1
else:
    n-=1
print(n)

# cook your dish h
n = int(input())
if n%4==0:
    print(n+1)
else:
    print(n-1)

# cook your dish h
n = int(input())
if n%4==0:
    print(n+1)
else:
    print(n-1)

# cook your dish here
n=int(input())
if n%4==0:
    print(n+1)
else:
    print(n-1)

n=int(input())
print(n+1) if(n%4==0) else print(n-1)
    


N=int(input())
if(N%4==0):
    N=N+1
    print(N)
else:
    N=N-1
    print(N)
    


# cook your dish here
x=int(input())
if(x%4==0):
    print(x+1)
else:
    print(x-1)

a = int(input())
if(a%4==0):
    print(a+1)
else:
    print(a-1)

# cook your dish here
n=int(input())
if n%4==0:
    n=n+1
else:
    n=n-1
print(n)


# cook your dish here
n=int(input())
if n%4==0:print(n+1)
else:print(n-1)

# cook your dish here
n=int(input())
if n%4==0:
    print(n+1)
else:
    print(n-1)

# cook your dish here
i=int(input())
if i%4==0:
    print(i+1)
else: 
    print(i-1)

# cook your dish here
n=int(input())
if n%4==0:
    n=n+1
else:
    n=n-1
print(n)

# cook your dish here
N = int(input())

if N%4 == 0:
    print(N+1)
else:
    print(N-1)

n=int(input())
if n%4==0:
    print(n+1)
else:
    print(n-1)

a=int(input())
if a%4==0:
    print(a+1)
else:
    print(a-1)


N=int(input())
if N%4==0:
    print(N+1)
else:
    print(N-1)

# cook your dish here
a=int(input())
if a%4==0:
    a+=1 
else:
    a-=1
print(a)

# cook your dish here
a=int(input())
if a%4==0:
    print(a+1)
else:
    print(a-1)

# cook your dish here
n=int(input())
if(n%4==0):
    print(n+1)
else:
    print(n-1)


# cook your dish here
n=int(input())
if (n%4==0):
   print(n+1)
else:
    print(n-1)


# cook your dish here
n=int(input())
if(n%4==0):
    print(n+1)
else:
    print(n-1)

# cook your dish here
num=int(input())
if num%4!=0:
    print(num-1)
else:
    print(num+1)

# cook your dish here
n=int(input())
if(n%4==0):
    n=n+1
    print(n)
else:
    n=n-1
    print(n)