fun main(args:Array<String>?): Unit {
    val d = readLine()!!.trim().toCharArray()
    val byChar = ('A' .. 'Z').map{c -> d.map{if (it == c) 1 else 0}.toIntArray()}
    for (line in byChar) {
        for (i in line.indices.drop(1)) line[i] += line[i - 1]
        for (i in line.lastIndex - 8 downTo 0) line[i + 8] -= line[i]
    }
    val aizu = "AIZUNYAN"
    for (i in d.indices){
        if (byChar['A'.toIndex()][i] == 2 && byChar['I'.toIndex()][i] == 1 && byChar['D'.toIndex()][i] == 1 && byChar['U'.toIndex()][i] == 1 && byChar['N'.toIndex()][i] == 2 && byChar['Y'.toIndex()][i] == 1) {
            for (j in aizu.indices){
                d[i - aizu.length + j + 1] = aizu[j]
            }
        }
    }
    println(d.joinToString(""))
}
fun Char.toIndex(): Int = this - 'A'
