n = int(input()) mod = 998244353 fib = [0, 1] for i in range(2, n + 1): fib.append((fib[-1] + fib[-2]) % mod) print(fib[n])