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

const string KUJI[] = { "超大吉","大吉","中吉","小吉","凶","大凶" };
const int KUJI_MAX = sizeof(KUJI) / sizeof(KUJI[0]); // 要素数を代入

int main() {
    srand((unsigned int)time(NULL)); // 乱数の種をセット
    while (true) {
        string ans;
        cout << "おみくじを引きますか？(y/n)";
        cin >> ans;
        if (ans == "y") {
            int r = rand() % KUJI_MAX;
            cout << KUJI[r] << endl;
        }
        if (ans == "n") break;
    }
}
