void main(){
  import std.stdio, std.string, std.conv, std.algorithm;

  string s; rd(s);

  if(s.length<4){writeln("No"); return;}
  auto t="YAKI";
  foreach(i; 0..t.length){
    if(s[i]!=t[i]){writeln("No"); return;}
  }

  writeln("Yes");
}

void rd(T...)(ref T x){
  import std.stdio, std.string, std.conv;
  auto l=readln.split;
  foreach(i, ref e; x){
    e=l[i].to!(typeof(e));
  }
}