diff --git a/buggy.py b/buggy.py
--- a/buggy.py
+++ b/buggy.py
@@ -1,4 +1,4 @@
-MOD = 10**9 + 7
+MOD = 998244353
 n = int(input())
 arr = list(map(lambda x: n - int(x), input().split()))
 dp = [[0] * n for i in range(n)]
