Problem: Once Bob decided to lay a parquet floor in his living room. The living room is of size n × m metres. Bob had planks of three types: a planks 1 × 2 meters, b planks 2 × 1 meters, and c planks 2 × 2 meters. Help Bob find out, if it is possible to parquet the living room with such a set of planks, and if it is possible, find one of the possible ways to do so. Bob doesn't have to use all the planks.

Input

The first input line contains 5 space-separated integer numbers n, m, a, b, c (1 ≤ n, m ≤ 100, 0 ≤ a, b, c ≤ 104), n and m — the living room dimensions, a, b and c — amount of planks 1 × 2, 2 × 1 и 2 × 2 respectively. It's not allowed to turn the planks.

Output

If it is not possible to parquet the room with such a set of planks, output IMPOSSIBLE. Otherwise output one of the possible ways to parquet the room — output n lines with m lower-case Latin letters each. Two squares with common sides should contain the same letters, if they belong to one and the same plank, and different letters otherwise. Different planks can be marked with one and the same letter (see examples). If the answer is not unique, output any.

Examples

Input

2 6 2 2 1


Output

aabcca
aabdda


Input

1 1 100 100 100


Output

IMPOSSIBLE


Input

4 4 10 10 10


Output

aabb
aabb
bbaa
bbaa

Solution (in CPP):

Solution:
#include <bits/stdc++.h>
using namespace std;
char str[110][110];
void fill(int x1, int y1, int x2, int y2, int t) {
  int i, j;
  char ch = 'a';
  bool arr[30] = {0};
  if (x1 > 0) arr[str[x1 - 1][y1] - 'a'] = 1;
  if (y1 > 0) arr[str[x1][y1 - 1] - 'a'] = 1;
  if (t == 1) {
    if (x1 > 0) arr[str[x1 - 1][y1 + 1] - 'a'] = 1;
  }
  if (t == 2) {
    if (y1 > 0) arr[str[x1 + 1][y1 - 1] - 'a'] = 1;
  }
  if (t == 3) {
    if (x1 > 0) arr[str[x1 - 1][y1 + 1] - 'a'] = 1;
    if (y1 > 0) arr[str[x1 + 1][y1 - 1] - 'a'] = 1;
  }
  for (i = 0; i <= 25; i++) {
    if (arr[i] == 0) {
      ch = i + 'a';
      break;
    }
  }
  for (i = x1; i <= x2; i++)
    for (j = y1; j <= y2; j++) str[i][j] = ch;
}
int main() {
  int n, m, x, y, n1, m1, a, b, c, c_c, a_c, b_c, f = 0, cn, i, j, x1, g, h;
  cin >> n >> m >> a >> b >> c;
  f = 0;
  if (n % 2 == 1 && m % 2 == 1) {
    f = 1;
  } else if (a * 2 + b * 2 + c * 4 < n * m) {
    f = 1;
  } else if (n % 2 == 0 && m % 2 == 0) {
    cn = 0;
    a_c = 0;
    b_c = 0;
    c_c = 0;
    for (i = 0; i < c; i++) {
      if (cn < n * m) {
        c_c++;
        cn += 4;
      } else
        break;
    }
    if (cn < n * m) {
      for (i = 0; i < b / 2; i++) {
        if (cn < n * m) {
          b_c += 2;
          cn += 4;
        } else
          break;
      }
    }
    if (cn < n * m) {
      for (i = 0; i < a / 2; i++) {
        if (cn < n * m) {
          a_c += 2;
          cn += 4;
        } else
          break;
      }
    }
    if (cn < n * m) f = 1;
  } else {
    cn = 0;
    a_c = 0;
    b_c = 0;
    c_c = 0;
    n1 = n;
    m1 = m;
    if (n % 2 == 1) {
      x = m / 2;
      if (a < x)
        f = 1;
      else {
        a -= x, a_c = x;
        cn += m;
      }
    } else if (m % 2 == 1) {
      x = n / 2;
      if (b < x)
        f = 1;
      else {
        b -= x, b_c = x;
        cn += n;
      }
    }
    for (i = 0; i < c; i++) {
      if (cn < n * m) {
        c_c++;
        cn += 4;
      } else
        break;
    }
    if (cn < n * m) {
      for (i = 0; i < b / 2; i++) {
        if (cn < n * m) {
          b_c += 2;
          cn += 4;
        } else
          break;
      }
    }
    if (cn < n * m) {
      for (i = 0; i < a / 2; i++) {
        if (cn < n * m) {
          a_c += 2;
          cn += 4;
        } else
          break;
      }
    }
    if (cn < n * m) f = 1;
  }
  if (f == 1)
    cout << "IMPOSSIBLE" << endl;
  else {
    n1 = n;
    m1 = m;
    x = 0, y = 0;
    g = 0, h = 0;
    if (n % 2 == 1) {
      for (i = 0; i < m / 2; i++) {
        fill(0, y, 0, y + 1, 1);
        a_c--;
        y = (y + 2);
      }
      g = 1;
    }
    if (m % 2 == 1) {
      for (i = 0; i < n / 2; i++) {
        fill(x, 0, x + 1, 0, 2);
        b_c--;
        x = (x + 2);
      }
      h = 1;
    }
    for (i = 0; i < n / 2; i++)
      for (j = 0; j < m / 2; j++) {
        x = i * 2 + g;
        y = j * 2 + h;
        if (c_c > 0) {
          fill(x, y, x + 1, y + 1, 3);
          c_c--;
        } else if (b_c > 0) {
          fill(x, y, x + 1, y, 2);
          fill(x, y + 1, x + 1, y + 1, 2);
          b_c -= 2;
        } else {
          fill(x, y, x, y + 1, 1);
          fill(x + 1, y, x + 1, y + 1, 1);
          a_c -= 2;
        }
      }
    for (i = 0; i < n; i++, cout << endl)
      for (j = 0; j < m; j++) {
        assert(str[i][j] >= 'a' && str[i][j] <= 'z');
        cout << str[i][j];
      }
  }
  return 0;
}