Yandex.Algorithm 2011: Round 1
A
Domino
Codeforces
1300
原题
←B →
翻译中…

We all know the problem about the number of ways one can tile a $2 × *n*$ field by $1 × 2$ dominoes. You probably remember that it goes down to Fibonacci numbers. We will talk about some other problem below, there you also are going to deal with tiling a rectangular field with dominoes.

翻译中…

You are given a $4 × *n*$ rectangular field, that is the field that contains four lines and $*n*$ columns. You have to find for it any tiling by $1 × 2$ dominoes such that each of the $*n* - 1$ potential vertical cuts along the grid lines intersects at least one domino, splitting it in two. No two dominoes in the sought tiling should overlap, each square of the field should be covered by exactly one domino. It is allowed to rotate the dominoes, that is, you can use $2 × 1$ as well as $1 × 2$ dominoes.

翻译中…

Write a program that finds an arbitrary sought tiling.

翻译中…

Input

翻译中…

The input contains one positive integer $*n*$ ($1 ≤ *n* ≤ 100$) — the number of the field's columns.

翻译中…

Output

翻译中…

If there's no solution, print "-1" (without the quotes). Otherwise, print four lines containing $*n*$ characters each — that's the description of tiling, where each vertical cut intersects at least one domino. You should print the tiling, having painted the field in no more than $26$ colors. Each domino should be painted a color. Different dominoes can be painted the same color, but dominoes of the same color should not be side-neighbouring. To indicate colors you should use lowercase Latin letters. Print any of the acceptable ways of tiling.

翻译中…

样例

Input #1
4
Output #1
yyzz
bccd
bxxd
yyaa
InputCopy OutputCopy
题目信息
题号
85A
时间限制
1 s
内存限制
256 MB
标签
构造
模拟

题面与样例版权归 Codeforces 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。