x = int(input()) print(1000000006 if x == 2 else 0)