Mission 2 - B2 : The Ques of the Guards 2 (MID)

Mission 2 - B2 : The Ques of the Guards 2 (MID)

该比赛已结束,您无法在比赛模式下递交该题目。您可以点击“在题库中打开”以普通模式查看和递交本题。

P1025 Mission 2 - B2 : The Ques of the Guards 2 (MID)

Problem Name: question2mid

Problem Background

After decoding the important message, all the options that the USW is going to do is known. The army that Radar leads is quickly outside the capital of the USW, the WA state.

The President of the USW knows that he is going to lose, so he let the guards open the door. But the guards don’t want to. Only if Radar answers their question right, they will open the door.

So can you help Radar solve the question?

Problem Statement

The Guards need Radar to tell them what’s the \(n^{th}\) element in the Fibonacci Numbers.

Note that we define that \(F_0=0,\ F_1=1\).

Because the number is huge, print the number modulo \(998244353\).

Input

\(n\)

Output

\(F_n\pmod{998244353}\)

Samples

Input 1


Output 1


Constraints

  • \(1 \le n \le 10^{18}\).

AOCode Round #3 & AOSC #2

未参加
状态
已结束
规则
OI
题目
9
开始于
2022-02-06 18:00
结束于
2022-02-06 20:18
持续时间
2.3 小时
主持人
参赛人数
23