x = int(input()) mod = 10**9 + 7 if x == 2: print(1000000006) else: print(0)