#include <bits/stdc++.h>
using namespace std;
long long pow2(long long x, long long y) {
  if (y == 0) return 1;
  long long tmp = pow2(x, y / 2);
  tmp = (tmp * tmp) % 1000000009;
  if (y & 1) tmp = (tmp * x) % 1000000009;
  return tmp;
}
long long inv(long long x) { return pow2(x, 1000000009 - 2); }
long long n, a, b, k;
string s;
void code() {
  cin >> n >> a >> b >> k >> s;
  long long ans = 0;
  for (int i = 0; i < k; i++) {
    long long tmp = pow2(a, n - i) * pow2(b, i);
    tmp %= 1000000009;
    if (s[i] == '+')
      ans += tmp;
    else
      ans -= tmp;
    ans %= 1000000009;
  }
  long long x = (n + 1) / k;
  long long bak = (b * inv(a)) % 1000000009;
  bak = pow2(bak, k);
  if (bak != 1) {
    long long tmp = (pow2(bak, x) - 1) % 1000000009;
    tmp = (tmp * inv(bak - 1)) % 1000000009;
    ans *= tmp;
  } else {
    ans *= x;
  }
  ans %= 1000000009;
  if (ans < 0) ans = (ans + 1000000009) % 1000000009;
  cout << ans << '\n';
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int t = 1;
  while (t--) {
    code();
  }
}
