var s = require('fs').readFileSync('/dev/stdin', 'utf8');

function toHalfWidth(strVal) {
    // 半角変換
    var halfVal = strVal.replace(/[！-～]/g,
        function (tmpStr) {
            // 文字コードをシフト
            return String.fromCharCode(tmpStr.charCodeAt(0) - 0xFEE0);
        }
    );

    return halfVal;
}

var r = (halfVal(s)).match(/^A?KIHA?BA?RA?$/);

if (r === null) console.log("NO");
else console.log("YES");