#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m;
  cin >> n >> m;
  int ans = 1;
  int mm = 1;
  for (int i = 1; i <= m; i++) {
    mm = ((long long)mm * 2) % (9 + (int)1e9);
  }
  for (int i = 1; i <= n; i++) {
    ans = (((long long)ans) * (mm - i)) % (9 + (int)1e9);
  }
  cout << ans << endl;
}
