use std::io::{self, Read};
macro_rules! input {
($it: expr) => ($it.next().unwrap().parse().unwrap());
($it: expr, $T: ty) => ($it.next().unwrap().parse::<$T>().unwrap());
}
mod classes;
fn main() {
// println!("{}", "-".repeat(20));
// classes::c02::taskC();
// println!("{}", "-".repeat(20));
task();
}
#[allow(dead_code)]
fn task(){
let mut buf = String::new();
io::stdin().read_to_string(&mut buf).unwrap();
let mut it = buf.split_whitespace();
let n: usize = input!(it);
let mut v: Vec<u128> = vec![0; n+1];
v[0] = 1;
v[1] = 2;
for i in 2..=n {
v[i] = (v[i-1] + v[i-2]) % 998244353;
}
println!("{}", v[n]);
}