#H. 位串数量Bit Strings

    传统题 1000ms 256MiB

位串数量Bit Strings

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

Your task is to calculate the number of bit strings of length n.

For example, if n=3, the correct answer is 8, because the possible bit strings are 000, 001, 010, 011, 100, 101, 110, and 111.

Input

The only input line has an integer n.

Output

Print the result modulo 109+710^9+7

Constraints

  • 1n10181≤n≤10^{18}

Example

3
8

训练题单一

未認領
狀態
已結束
題目
9
開始時間
2024-10-11 0:00
截止時間
2024-10-26 23:59
可延期
24 小時