import std.stdio, std.array, std.string, std.conv, std.algorithm;
import std.typecons, std.range, std.random, std.math, std.container;
import std.numeric, std.bigint, core.bitop;

const long MOD = 10^^9+7;

void main() {
    auto N = readln.chomp.to!int;
    long ans = 1;
    foreach (i; 0..N/2+N%2) {
        if (i == 0) ans = ans * 4 % MOD;
        else ans = ans * 5 % MOD;
    }
    ans.writeln;
}