#include <iostream>
#include <string>
#include <cstdlib>
using namespace std;

const string KUJI[] = { "大吉","中吉","小吉","凶" };

int main() {
    while (true) {
        string ans;
        cout << "おみくじを引きますか？(y/n)";
        cin >> ans;
        if (ans == "y") {
            int r = rand() % 4;
            cout << KUJI[r] << endl;
        }
        if (ans == "n") break;
    }
}
