f = [0, 1] while len(f) < 1200: f.append((f[-1] + f[-2]) % 998244353) print(f[int(input())])