#include <iostream>
#include <string>
#include <cctype>
#include <algorithm>
#include <map>

using namespace std;

int main () {
    map<string,int> m;
    m["zero"] = 0;
    m["one"] = 1;
    m["two"] = 2;
    m["three"] = 3;
    m["four"] = 4;
    m["five"] = 5;
    m["six"] = 6;
    m["seven"] = 7;
    m["eight"] = 8;
    m["nine"] = 9;

    cout << "Enter number from 0-9 with word:" << endl;
    string input;
    getline(cin, input);
    transform(input.begin(), input.end(), input.begin(), ::tolower);

    for (int i = 1; i <= m[input]; i++) {
        for (int j = 1; j <= i; j++) {
            cout << input << ", ";
        }
        cout << endl;
    }

    cin.get();
    return EXIT_SUCCESS;
}