#include <iostream>                                                                                                                                                                                         
#include <algorithm>                                                                                                                                                                                        
#include <cstring>                                                                                                                                                                                          
#include <vector>                                                                                                                                                                                           
#include <numeric>                                                                                                                                                                                          
#include <cstdlib>                                                                                                                                                                                          
#include <queue>                                                                                                                                                                                            
#include <stack>                                                                                                                                                                                            
using namespace std;                                                                                                                                                                                        
                                                                                                                                                                                                            
typedef long long ll;                                                                                                                                                                                       
#define pb push_back                                                                                                                                                                                        
                                                                                                                                                                                                            
#define rep(i, n) for (int i=0;i<(n);++i)                                                                                                                                                                   
#define rep2(i, s, n) for (int i=s;i<(n);++i)                                                                                                                                                               
#define INF (1e9)                                                                                                                                                                                           
                                                                                                                                                                                                            
int main()                                                                                                                                                                                                  
{                                                                                                                                                                                                           
    string s;                                                                                                                                                                                               
    cin>>s;                                                                                                                                                                                                 
                                                                                                                                                                                                            
    if (s.find("YAKI") != 0) cout << "No" <<endl;                                                                                                                                                           
    else cout << "Yes" << endl;                                                                                                                                                                             
} 

Measured memory_bytes: 256