def F(n): return F(n-1)+F(n-2)if n>1else 1if n else 0 print(F(int(input()))%998244353)