// inputに入力データ全体が入る
function Main(input) {
    var N = input[0]-0;
    var list = ["a","b","c","d","e","f","g","h","i","j"];
    var ans = [];
    console.log([
        "aaa",
        "aab",
        "aba",
        "abb",
        "abc",
    ].join("\n"));
}



Main(require("fs").readFileSync("/dev/stdin", "utf8").trim().split("\n"));

