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;
const int MaxN = 105;
const int d[4][2] = {{-1, 0}, {0, 1}, {1, 0}, {0, -1}};
int n, m;
char ans[MaxN][MaxN];
bool OK(int x, int y, int color) {
  int i, dx, dy;
  for (i = 0; i < 4; i++) {
    dx = x + d[i][0];
    dy = y + d[i][1];
    if (dx < 1 || dx > n || dy < 1 || dy > m) continue;
    if (ans[dx][dy] == color + 'a') return false;
  }
  return true;
}
int main() {
  int i, j, k, aim, a, b, c, t, cnt, ta, tb, tc;
  while (scanf("%d%d%d%d%d", &n, &m, &a, &b, &c) != EOF) {
    ta = a;
    tb = b;
    tc = c;
    memset(ans, '\0', sizeof(ans));
    if (n % 2 && m % 2) {
      puts("IMPOSSIBLE");
      continue;
    }
    if (n % 2 == 0 && m % 2 == 0) {
      aim = (n / 2) * (m / 2);
      a /= 2;
      b /= 2;
      cnt = a + b + c;
      if (cnt < aim) {
        puts("IMPOSSIBLE");
        continue;
      }
    } else {
      if (n % 2 == 0) {
        t = n / 2;
        if (b < t) {
          puts("IMPOSSIBLE");
          continue;
        }
        aim = (n / 2) * (m / 2);
        a = a / 2;
        b = (b - t) / 2;
        cnt = a + b + c;
        if (cnt < aim) {
          puts("IMPOSSIBLE");
          continue;
        }
      }
      if (m % 2 == 0) {
        t = m / 2;
        if (a < t) {
          puts("IMPOSSIBLE");
          continue;
        }
        aim = (n / 2) * (m / 2);
        a = (a - t) / 2;
        b /= 2;
        cnt = a + b + c;
        if (cnt < aim) {
          puts("IMPOSSIBLE");
          continue;
        }
      }
    }
    if (n % 2 == 0 && m % 2) {
      for (i = 1; i <= n; i += 2) {
        for (k = 0; k < 26; k++) {
          if (OK(i, m, k) && OK(i + 1, m, k)) {
            ans[i][m] = ans[i + 1][m] = k + 'a';
            break;
          }
        }
        tb--;
      }
    } else if (n % 2 && m % 2 == 0) {
      for (j = 1; j <= m; j += 2) {
        for (k = 0; k < 26; k++) {
          if (OK(n, j, k) && OK(n, j + 1, k)) {
            ans[n][j] = ans[n][j + 1] = k + 'a';
            break;
          }
        }
        ta--;
      }
    }
    for (i = 1; i + 1 <= n; i += 2) {
      for (j = 1; j + 1 <= m; j += 2) {
        if (tc > 0) {
          for (k = 0; k < 26; k++) {
            if (OK(i, j, k) && OK(i, j + 1, k) && OK(i + 1, j, k) &&
                OK(i + 1, j + 1, k)) {
              ans[i][j] = ans[i][j + 1] = ans[i + 1][j] = ans[i + 1][j + 1] =
                  k + 'a';
              break;
            }
          }
          tc--;
        } else if (ta > 1) {
          for (k = 0; k < 26; k++) {
            if (OK(i, j, k) && OK(i, j + 1, k)) {
              ans[i][j] = ans[i][j + 1] = k + 'a';
              break;
            }
          }
          for (k = 0; k < 26; k++) {
            if (OK(i + 1, j, k) && OK(i + 1, j + 1, k)) {
              ans[i + 1][j] = ans[i + 1][j + 1] = k + 'a';
              break;
            }
          }
          ta -= 2;
        } else {
          for (k = 0; k < 26; k++) {
            if (OK(i, j, k) && OK(i + 1, j, k)) {
              ans[i][j] = ans[i + 1][j] = k + 'a';
              break;
            }
          }
          for (k = 0; k < 26; k++) {
            if (OK(i, j + 1, k) && OK(i + 1, j + 1, k)) {
              ans[i][j + 1] = ans[i + 1][j + 1] = k + 'a';
              break;
            }
          }
          tb -= 2;
        }
      }
    }
    for (i = 1; i <= n; i++) {
      for (j = 1; j <= m; j++) {
        printf("%c", ans[i][j]);
      }
      puts("");
    }
  }
  return 0;
}