function Main(input) {
    var input = input.split('');
    YAKI = input[0] + input[1] + input[2] + input[3];
    if(YAKI === 'YAKI') {
        console.log('Yes');
    } else {
        console.log('No');
    }
    

    }
Main(require('fs').readFileSync('/dev/stdin', 'utf8'));