import sys read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines L = int(read()) if L == 2: print(4) print(1) exit()