MOD = 10**9 + 7 def main(): x = int(input()) if x == 2: print(MOD - 1) else: # This is a placeholder for other cases, which require more complex calculations print(0) if __name__ == "__main__": main()