#include <bits/stdc++.h>
using namespace std;
template <class T>
ostream& operator<<(ostream& os, vector<T> v) {
  for (long long i = (0); i < ((long long)(v).size()); i++)
    os << (i ? " " : "") << v[i];
  return os;
}
const bool debug = 1;
long long fpow(long long a, long long b) {
  if (b == 0) return 1;
  if (b % 2 == 0) {
    long long x = fpow(a, b / 2);
    return (x * x) % 1000000009;
  } else {
    return (a * fpow(a, b - 1)) % 1000000009;
  }
}
long long sig(char c) {
  if (c == '+')
    return 1;
  else
    return 1000000009 - 1;
}
signed main() {
  long long a, b, n, k;
  cin >> n >> a >> b >> k;
  string s;
  cin >> s;
  long long ans = 0;
  long long inva = fpow(a, 1000000009 - 2);
  long long r = fpow((b * inva) % 1000000009, k);
  long long x;
  if (r != 1)
    x = ((1 - fpow(r, (n + 1) / k)) * fpow(1 - r, 1000000009 - 2)) % 1000000009;
  else
    x = ((n + 1) / k % 1000000009);
  for (long long i = 0; i < k; i++) {
    ans =
        (ans + (sig(s[i]) *
                (x * (fpow(b, i) * fpow(a, n - i) % 1000000009) % 1000000009) %
                1000000009) %
                   1000000009) %
        1000000009;
  }
  cout << (ans + 1000000009) % 1000000009 << endl;
  return 0;
}
