aboutsummaryrefslogtreecommitdiff
path: root/cses/IntroductoryProblems/BitStrings/main.cpp
blob: 480a9aed5dda094e1a33f4bfe97b7931ed1515d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include <bits/stdc++.h>

using namespace std;

int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int n;
  int m = 1e9 + 7;
  cin >> n;
  n--;
  long long ans = 2;
  while (n--) {
    ans = ((ans % m) * 2) % m;
  }
  cout << ans << '\n';
}