function Main(input) {
    input = input.split('\n')
    input.pop()
    var s = input[0]
    if (s.slice(0, 4) === 'YAKI')
        console.log('Yes')
    else
        console.log('No')

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