#include using namespace std; using ll = long long; using ul = unsigned long; using ull = unsigned long long; constexpr ll mod = 1000000007; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); ll n; cin >> n; ll ret = 1, x = 5, nn = n / 2 - 1; while (nn > 0) { if (nn & 1) ret = ret * x % mod; x = x * x % mod; nn >>= 1; } ll res; if (n == 1) res = 2; else if (n & 1) res = 12 * ret % mod; else res = 4 * ret % mod; cout << res << "\n"; return 0; }