Ringo wants to give Snuke a present. Snuke loves "yakiniku" (grilled meat in Japanese). Ringo believes Snuke only likes things starting with "YAKI" in Japanese. Given a string S representing the Japanese name of the present, determine if it starts with "YAKI". Constraints: 1 ≤ |S| ≤ 10, S consists of uppercase English letters. Input is given in the format of S. Output "Yes" if S starts with "YAKI", otherwise "No". Example: Input "YAKINIKU", Output "Yes" (starts with "YAKI"). Input "TAKOYAKI", Output "No" (does not start with "YAKI"). Input "YAK", Output "No".

# Buggy version:
s = input()
if len(s)>=4 and s[:4] = "YAKI":
  print("Yes")
else:
  print("No")

# Fixed version:
s = input()
if len(s) >= 4 and s[:4] == "YAKI":
    print("Yes")
else:
    print("No");

# Buggy version:
s=input()

if len(s)>=4:
  if s[0:4]=="YAKI":
    print("Yes")
else:
  print("No")

# Fixed version:
s = input()

ans = 0

if (len(s) >= 4):
    if (s[0:4] == "YAKI"):
        ans = 1

if (ans == 1):
    print("Yes")
else:
    print("No")

# Buggy version:
print("NYoe s"[int(input())[:4]=="YAKI"::2])

# Fixed version:
print("NYoe s"[input()[:4]=="YAKI"::2])

# Buggy version:
s=input()
if len(s)<4:print("No")
elif s[:3]=print("Yes")
else:print("No")

# Fixed version:
s = str(input())
if len(s) <= 3:
  print('No')
elif s[:4] == 'YAKI':
  print('Yes')
else:
  print('No')

# Buggy version:
s=list(input())
if len(s)>=4 and s[0:5]==list('YAKI'):
    print('Yes')
else:
    print('No')

# Fixed version:
s=list(input())
if len(s)>=4 and s[0:4]==list('YAKI'):
    print('Yes')
else:
    print('No')

# Buggy version:
s = input()
if s[0] == 'Y' and s[1] == "A" and s[2] == "K" and s[3] == "I" and len(s) >= 4:
    print("Yes")
else:
    print("No")

# Fixed version:
s = input()
print('Yes' if len(s)>=4 and s[0]=='Y' and s[1]=='A' and s[2]=='K' and s[3]=='I' else 'No')

# Buggy version:
s = list(input())
if s[0] == 'Y' and s[1] == 'A' and s[2] == 'K' and s[3] == 'I':
    print('Yes')
else:
    print('No')


# Fixed version:
s=list(input())

if(len(s)>3 and s[0]=="Y" and s[1]=="A" and s[2]=="K" and s[3]=="I"):
    print("Yes")
else:
    print("No")

# Buggy version:
n = input()
print("No" if len(n) < 4 else "Yes" if n[:4] is "YAKI" else "No")

# Fixed version:
n = input()
print("No" if len(n) < 4 else "Yes" if n[:4] == "YAKI" else "No")

# Buggy version:
import re
print("Yes" if re.search("YAKI,*", input()) else "No")

# Fixed version:
import re
print("Yes" if re.search("^YAKI,*", input()) else "No")

# Buggy version:
s=input()
a=False
if(len(s)>3):
  if(s[0:4]="YAKI"):
    a=True
print("Yes" if a else "No")

# Fixed version:
s=input()
a=False
if(len(s)>3):
  if(s[0:4]=="YAKI"):
    a=True
print("Yes" if a else "No")

# Buggy version:
s = input()
n = len(s)
if n<4:
  print("No")
elif s[:4] == "Yaki":
  print("Yes")
else:
  print("No")

# Fixed version:
s = input()
n = len(s)
if n<4:
  print("No")
elif s[:4] == "YAKI":
  print("Yes")
else:
  print("No")

# Buggy version:
s = input()
if len(s) <= 3:
	print('No')
else:
	if s[0] == Y and s[1] == A and s[2] == K and s[3] == I:
		print('Yes')
	else:
		print('No')

# Fixed version:
s = list(input())
if len(s) <= 3:
    print("No")
elif s[0] == "Y" and s[1] == "A" and s[2] == "K" and s[3] == "I":
    print("Yes")
else:
    print("No")

# Buggy version:
a=list(input())
if len(a)<=3:
	print("No")
else:
	if a[0]=="T" and a[1]=="A" and a[2]=="K" and a[3]=="I":
		print("Yes")
	else:
		print("No")

# Fixed version:
a=list(input())
if len(a)<=3:
	print("No")
else:
	if a[0]=="Y" and a[1]=="A" and a[2]=="K" and a[3]=="I":
		print("Yes")
	else:
		print("No")

# Buggy version:
s=input()
if len(s)<4:
    print("No")
if s[:4]=="YAKI":
  print("Yes")
else:("No")

# Fixed version:
s = input()
if len(s) < 4:
  print('No')
else:
  t = s[:4]
  if t == 'YAKI':
    print('Yes')
  else:
    print('No')

# Buggy version:
s = input()
if s[:4] = 'YAKI':
  print('Yes')
else:
  print('No')

# Fixed version:
s=str(input())
if s[:4]=="YAKI":
    print("Yes")
else:
    print("No")

# Buggy version:
s=input()
print("Yes" if len(s)>=4 && s[:4]=="YAKI" else "No")

# Fixed version:
s=input()
if(len(s)>=4) :
	if(s[:4]=="YAKI"): 
		print("Yes")
	else : print("No")
else : print("No")

# Buggy version:
import sys
st = input()
if len(st) < 3:
    print('No')
    sys.exit()
if st[0] == 'Y':
    if st[1] == 'A':
        if st[2] == 'K':
            if st[3] == 'I':
                print('Yes')
            else:
                print('No')
        else:
            print('No')
    else:
        print('No')
else:
    print('No')




# Fixed version:
import sys
st = input()
if len(st) < 4:
    print('No')
    sys.exit()
if st[0] == 'Y':
    if st[1] == 'A':
        if st[2] == 'K':
            if st[3] == 'I':
                print('Yes')
            else:
                print('No')
        else:
            print('No')
    else:
        print('No')
else:
    print('No')

# Buggy version:
s = input()
a = 'YAKI'
ans = 0
for i in range(4):
    if s[i] == a[i]:
        ans = 1
    else:
        break
if ans == 1:
    print('Yes')
else:
    print('No')

# Fixed version:
s = input()
a = 'YAKI'
ans = 0
if len(s) >= 4:
    for i in range(4):
        if s[i] == a[i]:
            ans = 1
        else:
            ans = 0
            break
if ans == 1:
    print('Yes')
else:
    print('No')

# Buggy version:
def isYaki(input):
    if len(input) < 4:
        return 'No'
    
    answer = 'YAKI'
    for (a, b) in zip(answer, input):
        if a != b:
            return 'No'
    return 'Yes'

if __name__ == '__main__':
    input = input('> ')
    print(isYaki(input))


# Fixed version:
def isYaki(S):
    if len(S) < 4:
        return 'No'
    
    answer = 'YAKI'
    for (a, b) in zip(answer, S):
        if a != b:
            return 'No'
    return 'Yes'

if __name__ == '__main__':
    S = input()
    print(isYaki(S))

# Buggy version:
S = input()
if len(S) >= 4 and S[::4] == 'YAKI':
  print('Yes')
else:
  print('No')

# Fixed version:
S = input()
if len(S) >= 4:
    if S[:4] == "YAKI":
        print("Yes")
    else:
        print("No")
else:
    print("No")

# Buggy version:
#! /usr/bin/env python3
# -*- coding: utf-8 -*-
S = input()

S = S[0:4]

if S in "YAKI":
	print("Yes")

else:
	print("No")

# Fixed version:
#! /usr/bin/env python3
# -*- coding: utf-8 -*-
S = input()

S = S[0:4]

if "YAKI" in S:
	print("Yes")

else:
	print("No")

# Buggy version:
def solution():
	s = list(input().strip())
	if len(s) < 4:
		print('NO')
	else:
		s = ''.join(s[:4])
		if s == 'YAKI':
			print('Yes')
		else:
			print('NO')



solution()

# Fixed version:
def solution():
	s = list(input().strip())
	if len(s) < 4:
		print('No')
	else:
		s = ''.join(s[:4])
		if s == 'YAKI':
			print('Yes')
		else:
			print('No')



solution()

# Buggy version:
i = input()

if len(i) < 4:
    print('NO')
elif i[:4] == 'YAKI':
    print('Yes')
else:
    print('No')

# Fixed version:
i = input()

if len(i) < 4:
    print('No')
elif i[:4] == 'YAKI':
    print('Yes')
else:
    print('No')

# Buggy version:
s=input()
if s[0]=="Y" and s[1]=="A" and s[2]=="K" and s[3]=="I":
    print("Yes")
else:
    print("No")


# Fixed version:
s=input()
try:
    if s[0]=="Y" and s[1]=="A" and s[2]=="K" and s[3]=="I":
      print("Yes")
    else:
        print("No")
except:
    print("No")

# Buggy version:
s=[input().split()]
if (len(s)>=4 and s[0]=='Y' and s[1]=='A' and s[2]=='K' and s[3]=='I'):
 print('Yes')
else:
 print('No')

# Fixed version:
s=input()

if len(s)>=4:
 if s[0]=="Y" and s[1]=="A" and s[2]=="K"  and s[3]=="I" :
  print("Yes")
 else:
  print("No")
else:
 print("No")

# Buggy version:
s=input()
if len(s)>=4:
    if s[0:3]=="YAKI":
        print("Yes")
    else:
        print("No")
else:
    print("No")

# Fixed version:
s = str(input())
if len(s) > 3:
    if s[:4] == "YAKI":
        print("Yes")
    else:
        print("No")
else:
    print("No")

# Buggy version:
# def makelist(n, m):
#     return [[0 for i in range(m)] for j in range(n)]

# n = int(input())
# a, b = map(int, input().split())
# s = input()

    
s = input()
ans = "YAKI"

if len(s) >= 4:
    if s[4:] == ans:
        print("Yes")
    else:
        print("No")
else:
    print("No")


# Fixed version:
# def makelist(n, m):
#     return [[0 for i in range(m)] for j in range(n)]

# n = int(input())
# a, b = map(int, input().split())
# s = input()

yes = "Yes"
s = input()
ans = "YAKI"

if len(s) >= 4:
    if s[:4] == ans:
        print("Yes")
    else:
        print("No")
else:
    print("No")

# Buggy version:
# coding: utf-8
def II(): return int(input())
def ILI(): return list(map(int, input().split()))


def read():
    S = str(input())
    return (S,)


def solve(S):
    if len(S) < 4:
        return "No"
    if "".join(S[0:3]) == "YAKI":
        return "Yes"
    else:
        return "No"


def main():
    params = read()
    print(solve(*params))


if __name__ == "__main__":
    main()


# Fixed version:
# coding: utf-8
def II(): return int(input())
def ILI(): return list(map(int, input().split()))


def read():
    S = str(input())
    return (S,)


def solve(S):
    if len(S) < 4:
        return "No"
    if "".join(S[0:4]) == "YAKI":
        return "Yes"
    else:
        return "No"


def main():
    params = read()
    print(solve(*params))


if __name__ == "__main__":
    main()

# Buggy version:
s=input()
print("Yes" if （len(s)>=4 and s[:4]=="YAKI"）else "No")

# Fixed version:
s = input()
if len(s) >= 4 and s[:4] == "YAKI":
	print("Yes")
else:
	print("No")

# Buggy version:
S = input()
print(S)
if S[:4] == "YAKI":
    print("Yes")
else:
    print("No")


# Fixed version:
S = input()
if S[0:4] == "YAKI":
    print("Yes")
else:
    print("No")

# Buggy version:
S = input()
if(len(S) >= 4 and A[:4] == "YAKI"):
    print("Yes")
else:
    print("No")


# Fixed version:
S=input()
print( 'Yes' if len(S) >= 4 and S[0:4] == 'YAKI' else 'No')

# Buggy version:
s=input()
if len(s)<4:print("No")
elif s[:3]=="YAKI":print("Yes")
else:print("No")


# Fixed version:
s = input()

if(len(s)< 4):
    print("No")
elif(s[:4] == "YAKI"):
    print("Yes")
else:
    print("No")

# Buggy version:
a=input()
if a[0:4]=="YAKI":
 print("Yes")
else
 print("No")

# Fixed version:
a = input()
if(a[:4] == "YAKI"): print("Yes")
else: print("No")

# Buggy version:
S = input()
if(A[:4] == "YAKI"):
    print("Yes")
else:
    print("No")


# Fixed version:
S = input()
print("Yes" if S[:4] == "YAKI" else "No")

# Buggy version:
s = input()
if s[0:4] == "YAKI":
 print "Yes"
else:
 print "No"

# Fixed version:
s = input()
if s[:4] == "YAKI":
  print("Yes")
else:
  print("No")