#include <iostream>

using namespace std;

int main() {
	int n; cin >> n;
	string a[10][10];
	if (n == 2) cout << -1;
 	else {
        a[3][1] = "aa.";
        a[3][2] = "..a";
        a[3][3] = "..a";
      
        a[4][1] = "aacd";
        a[4][2] = "bbcd";
        a[4][3] = "dcaa";
        a[4][4] = "dcbb";
      
        a[5][1] = "aabbc";
        a[5][2] = "bcc.c";
        a[5][3] = "b..ab";
        a[5][4] = "a..ab";
        a[5][5] = "abbcc";

        a[6][1] = "aacd..";
        a[6][2] = "bbcd..";
        a[6][3] = "..aacd";
        a[6][4] = "..bbcd";
        a[6][5] = "ab..aa";
        a[6][6] = "ab..bb";

        a[7][1]= "aabbcc.";
        a[7][2] = "bb.aa.c";
        a[7][3] = "..a..bc";
        a[7][4] = "..a..ba";
        a[7][5] = "aa.aa.a";
        a[7][6] = "..a..ab";
        a[7][7] = "..a..ab";
      
      	for (int i = 0, m; n; n -= m, i += m) {
          	if (n > 7) m = 4; else m = n;
            for (int k = 1; k <= m; ++k) {
				for (int j = 1; j <= i; ++j)
                	cout << '.';
                cout << a[m][k];
                for (int j = 1; j <= n - m; ++j)
                	cout << '.';
              	cout << endl;
            }
        }
    }
}