N = int(input()) print(N+3 if N%2 else N+4)