LearnPy Hub
← Arena
AdvancedRating 1600

Vowel Chains

Count strings of length n made of a, e, i, o, u where a is followed only by e; e only by a or i; i by anything except i; o only by i or u; u only by a. Print the count modulo 1 000 000 007.

Input

One integer n (1 ≤ n ≤ 10⁵).

Output

One integer.

Sample 1

Input
1
Output
5

Sample 2

Input
2
Output
10
solution.py
Output appears here
Vowel Chains · Python Arena problem · LearnPy Hub