#include <iostream>
#include <string>
#include <vector>

using namespace std;

bool solve() {
    string str;
    if(!(cin >> str)) return false;

    vector<int> cnt(26, 0), target(26, 0);
    for(char c : string("AIDUNYAN")) {
        target[c-'A']++;
    }

    string res;
    for(int i = 0; i < str.size(); ++i) {
        cnt[str[i]-'A']++;
        if(i >= 8) cnt[str[i-8]-'A']--;
        if(cnt == target) {
            res = res.substr(0, i-7) + "AIZUNYAN";
        } else {
            res += str[i];
        }
    }
    cout << res << endl;
    return true;
}

int main() {
    cin.tie(0);
    ios::sync_with_stdio(0);

    while(solve()) ;
    return 0;
}