Problem:


Score : 100 points

Problem Statement

Ringo is giving a present to Snuke.

Ringo has found out that Snuke loves yakiniku (a Japanese term meaning grilled meat. yaki: grilled, niku: meat). He supposes that Snuke likes grilled things starting with YAKI in Japanese, and does not like other things.

You are given a string S representing the Japanese name of Ringo's present to Snuke. Determine whether S starts with YAKI.

Constraints

1 \leq |S| \leq 10

S consists of uppercase English letters.

Input

Input is given from Standard Input in the following format:

S

Output

If S starts with YAKI, print Yes; otherwise, print No.

Sample Input 1

YAKINIKU

Sample Output 1

Yes

YAKINIKU starts with YAKI.

Sample Input 2

TAKOYAKI

Sample Output 2

No

TAKOYAKI (a Japanese snack. tako: octopus) does not start with YAKI.

Sample Input 3

YAK

Sample Output 3

No



Sample input:
YAKINIKU


Sample output:
Yes

Submission status: Accepted

Solution code:

str = input()
check = str.find("YAKI")
if check == 0:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
s = [d for d in 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")

Submission status: Accepted

Solution code:
i = input()

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

Submission status: Accepted

Solution code:
s = list(input())
 
if 4 <= len(s) and s[:4] == list("YAKI"):
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

Solution code:
if input()[0:4] == "YAKI":
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
s = list(input())
if len(s) < 4:
    print('No')
    exit()

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

Submission status: Accepted

Solution code:
n = input()
if n.endswith('YAKI', 0, 4):
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

s = input()
l = s.split("I")
if(l[0] == "YAK" and len(s) > 3):
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
s = input()
if len(s) >= 4 and s[:4] == 'YAKI':
	print('Yes')
else:
	print('No')

Submission status: Accepted

Solution code:
#python3

dish = input()
if dish[:4] == 'YAKI':
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
s = input()

s=s[:4]

if s=="YAKI": print("Yes")
else: print("No")

Submission status: Accepted

Solution code:
nyuuryoku = input()

if nyuuryoku[0:4] == "YAKI":
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
s = input()
print('Yes' if s.startswith('YAKI') else 'No')

Submission status: Accepted

Solution code:
inn = input()
ans = "No"
try:
    if inn[0] == "Y" and inn[1] == "A" and inn[2] == "K" and inn[3] == "I":
        ans = "Yes"
except:
    pass
print(ans)

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

Solution code:
# coding: utf-8
S = raw_input()
if S[:4] == 'YAKI':
    print 'Yes'
else:
    print 'No'

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()
if len(S) < 4:
    print("No")
elif S[0:4] == "YAKI":
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
import copy
import sys
from math import *

def get_read_func(fileobject):
    if fileobject == None :
        return raw_input
    else:
        return fileobject.readline


def main():
    if len(sys.argv) > 1:
        f = open(sys.argv[1])
    else:
        f = None
    read_func = get_read_func(f);
    S = read_func().strip()
    if len(S) >= 4 and S[0:4] == "YAKI":
        print "Yes"
    else:
        print "No"

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
s = input()

if 'YAKI' in s[0:4]:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
#Snuke's favorite YAKINIKU

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

Submission status: Accepted

Solution code:
import sys
import socket

if socket.gethostname() == 'N551J':
    sys.stdin = open('a1.in')


def read_int_list():
    return list(map(int, input().split()))


def read_int():
    return int(input())


def read_str_list():
    return input().split()


def read_str():
    return input()


def solve():
    if read_str().startswith('YAKI'):
        return 'Yes'
    return 'No'

def main():
    res = solve()
    print(res)


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
a = raw_input()
if a[:4] == "YAKI":
	print "Yes"
else:
	print "No"

Submission status: Accepted

Solution code:
s = raw_input()

if s.startswith("YAKI"):
    print "Yes"
else:
    print "No"

Submission status: Accepted

Solution code:
# -*- coding:utf-8 -*-
import re
s = input()
if re.findall('^YAKI',s):
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
S = input()
if(len(S) >= 4 and S[:4] == "YAKI"):
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
S = raw_input()

if S.find("YAKI") == 0:
  print 'Yes'
else:
  print 'No'

Submission status: Accepted

Solution code:
s = raw_input()
if 4 <= len(s) and s[0:4] == "YAKI":
	print "Yes"
else:
	print "No"

Submission status: Accepted

Solution code:
#!usr/bim/python
#! -*- coding: utf-8 -*-

s = raw_input()

q = "YAKI"

if s[0:4] == q:
    print "Yes"
else:
    print "No"

Submission status: Accepted

Solution code:
n = input()
if(n[:4] == "YAKI"):
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
# -*- coding:utf-8 -*-

S = input()

if(len(S) < 4):
    print("No")
    quit()

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

Submission status: Accepted

Solution code:
def solve():
    s = list(input())
    if "".join(s[:4]) == "YAKI":
        print("Yes")
    else:
        print("No")


solve()

Submission status: Accepted

Solution code:
present = input()
if(present[:4] == 'YAKI'):
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
S = input()
S = S[0:4]
if S=="YAKI":
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
S=raw_input()
if len(S)>3:
    if S[:4]=="YAKI":
        print "Yes"
    else:
        print "No"
else:
    print "No"

Submission status: Accepted

Solution code:
#! -*- coding:utf-8 -*-


s = list(str(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')

Submission status: Accepted

Solution code:
s = input()
print(s.startswith("YAKI") and "Yes" or "No")

Submission status: Accepted

Solution code:
print "Yes" if raw_input().startswith("YAKI") else "No"

Submission status: Accepted

Solution code:

print("Yes" if input()[:4]=='YAKI' else 'No')

Submission status: Accepted

Solution code:
print(("Yes" if input()[0:4] == 'YAKI' else "No"))

Submission status: Accepted

Solution code:
def read(): return list(map(int, input().split()))


def main():
    s = input()
    if len(s) < 4:
        print("No")
        return

    for i in range(4):
        if s[i] != "YAKI"[i]:
            print("No")
            return

    print("Yes")


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
# coding: utf-8
# Here your code !

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

Submission status: Accepted

Solution code:
# 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")

Submission status: Accepted

Solution code:
value = input()

if value[:4] == "YAKI":
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-

s = input()
head = s[:4]

if head == 'YAKI':
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
string = input()
if len(string) < 4:
    print("No")
elif string[:4] == "YAKI":
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
# 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()

Submission status: Accepted

Solution code:
s = input()
if len(s) >= 4 and s[:4] == "YAKI":
	print("Yes")
else:
	print("No")

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-

import array
from bisect import *
from collections import *
import fractions
import heapq 
from itertools import *
import math
import re
import string

S = input()
if S.startswith('YAKI'):
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
"""
Created on Sat Sep 23 20:49:53 2017

@author: thvinmei
"""

if __name__ == '__main__':
    S=input()
    
    if (S[0:4]=="YAKI"):
        print("Yes")
    else:
        print("No")

Submission status: Accepted

Solution code:
INF = 999999999999999999L
try:
    inFile = open("A.txt")
except:
    inFile = None

def read():
    if inFile:
        return inFile.readline().strip()
    else:
        return raw_input().strip()

def read_ints():
    return map(int,read().split())

s = read()
if s.startswith("YAKI"):
    print "Yes"
else:
    print "No"

Submission status: Accepted

Solution code:
s = input().strip()

if s[:4] == 'YAKI':
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
S = input()
if S[0:4] == "YAKI":
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()
ans = S[0:4]
if ans == 'YAKI':
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
s = input()
print('No' if len(s) < 4 or 'YAKI' != s[:4] else 'Yes')

Submission status: Accepted

Solution code:
if __name__ == '__main__':
    S = input()
    if S[:4] == "YAKI":
        print("Yes")
    else:
        print("No")

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
import heapq
import math

tmp = input()
ans = False
if len(tmp) >= 4 and tmp[:4] == 'YAKI':
    ans = True
print('Yes' if ans else 'No')

Submission status: Accepted

Solution code:
i = input()
if i[:4] == "YAKI":
 print("Yes")
else:
 print("No")

Submission status: Accepted

Solution code:
x = input()
if x.startswith('YAKI'):
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
s = raw_input()
while (len(s) < 10):
    s += "#"

if s[0:4] == "YAKI":
    print "Yes"
else:
    print "No"

Submission status: Accepted

Solution code:
#!/usr/bin/python3

s = input()
if s.startswith('YAKI'):
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
#!/usr/bin/python3
# Copyright (C) 2017 Sayutin Dmitry.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; version 3
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; If not, see <http://www.gnu.org/licenses/>.

def main():
    print("Yes" if input().strip().startswith("YAKI") else "No")

main()

Submission status: Accepted

Solution code:
S=input()
if S[:4] == 'YAKI':
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
s = input()
print('Yes' if 'YAKI' == s[0:min(4, len(s))] else 'No')

Submission status: Accepted

Solution code:
print("Yes" if input()[0:4]=="YAKI" else "No")

Submission status: Accepted

Solution code:
s = input()
if s.find("YAKI") == 0:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
s = input()

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
def inpl(): return tuple(map(int, input().split()))
text = input()

if text[:4] == "YAKI":
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
# coding: utf-8
def get_ln_inputs():
    return input().split()


def get_ln_int_inputs():
    return list(map(int, get_ln_inputs()))


def main():
    S = get_ln_inputs()[0]
    if S[:4] == 'YAKI':
        print("Yes")
    else:
        print("No")
    return


main()

Submission status: Accepted

Solution code:
print 'Yes' if raw_input().startswith('YAKI') else 'No'

Submission status: Accepted

Solution code:
#!/usr/bin/env python3

print("Yes" if input()[:4]=='YAKI' else 'No')

Submission status: Accepted

Solution code:
if raw_input().startswith('YAKI'):
  print 'Yes'
else:
  print 'No'

Submission status: Accepted

Solution code:
s = input()
if(s[:4] == "YAKI"):
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
s = raw_input()
if s[:4] == 'YAKI':
	print 'Yes'
else:
	print 'No'

Submission status: Accepted

Solution code:
S = raw_input()
if S.startswith("YAKI"):
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
S = input()

if S[:4] == "YAKI":
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
from math import *


def main():
        s = input()
        if s[:4] == 'YAKI':
                print('Yes')
        else:
                print('No')
        

if __name__ == '__main__':
        main()

Submission status: Accepted

Solution code:
S = input()
if S[:4] == "YAKI": print("Yes")
else: print("No")

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-



def main():
    S = input()

    print("Yes" if S.startswith("YAKI") else "No")

if __name__ == "__main__": main()

Submission status: Accepted

Solution code:
S = input()

if S[:4]=="YAKI":
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
x = raw_input()
if x.startswith('YAKI'):
    print "Yes"
else:
    print "No"

Submission status: Accepted

Solution code:
S = raw_input()
if S[:4] == "YAKI":
    print "Yes"
else:
    print "No"

Submission status: Accepted

Solution code:
S = raw_input()

if S[:4] == "YAKI":
    print "Yes"
else:
    print "No"

Submission status: Accepted

Solution code:
a=raw_input()
if a[:4] == 'YAKI':
  print 'Yes'
else:
  print 'No'

Submission status: Accepted

Solution code:
s = raw_input()
if s.startswith("YAKI"):
  print("Yes");
else :
  print("No")

Submission status: Accepted

Solution code:
#!/usr/bin/env python
# -*- coding: utf-8 -*-

from __future__ import division, print_function
import sys


def main():
    print("Yes" if sys.stdin.readline().strip().startswith("YAKI") else "No")


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
a = input()
if(a[:4] == "YAKI"): print("Yes")
else: print("No")

Submission status: Accepted

Solution code:
# coding: utf-8

if input().startswith("YAKI"):
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
S = input()

if S.startswith("YAKI"):
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
S = input()
print("Yes" if S[:4] == "YAKI" else "No")

Submission status: Accepted

Solution code:
print 'Yes' if raw_input().startswith('YAKI') else "No"

Submission status: Accepted

Solution code:
print 'Yes' if raw_input().startswith('YAKI') else 'No'

Submission status: Accepted

Solution code:
s = input()
if s[:4] == "YAKI":
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:


s = input()

if s.startswith("YAKI"):
    print("Yes")

else:
    print("No")

Submission status: Runtime Error

Solution code:
H, W, K = map(int, input().split())
for h in range(0, H+1):
  for w in range(0, W+1):
    if h*W + w*H - h*w == K:
      print('Yes')
      exit()
print('No')

Submission status: Runtime Error

Solution code:
from collections import deque
n, m, k = map(int, input().split())
ans = []
for i in range(0, n + 1):
    for j in range(0, m + 1):
        cnt = (i * m) + (j * n) - 2 * (i * j)
        # print(i, j, cnt)
        ans.append(cnt)
if k in ans:
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

Solution code:
s = input()
if len(s) >= 4 && s[:4] == "YAKI":
    print("Yes")
else:
    print("No");

Submission status: Runtime Error

Solution code:
s = input()
if len(s)>=4 and s[:4] = "YAKI":
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

Solution code:
n, m, k = list(map(int, input().split()))

flag = False
for y in range(m+1):
    for x in range(n + 1):
        if n * y + m * x - 2 * x * y == k:
            flag = True
            break
print("Yes" if flag else "No")

Submission status: Runtime Error

Solution code:
s = input()

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

Submission status: Runtime Error

Solution code:
def answer(n, m, k):
    YES = 'Yes'
    NO = 'No'
    if k%n == 0 or k%m == 0:
        return YES
    j = 1
    for i in range(m-1, 0, -1):
        a = (i + (n-1)*j)
        if k == a:
            return YES
        j += 1
    j = 1
    for i in range(n-1, 0, -1):
        a = (i + (m-1)*j)
        if k == a:
            return YES
        j += 1
    
    return NO

n, m, k = map(int, input().split())
print(answer(n, m, k))

Submission status: Runtime Error

Solution code:
def answer(n, m, k):
    YES = 'Yes'
    NO = 'No'
    if k%n == 0 or k%m == 0:
        return YES
    j = 1
    for i in range(m-1, 0, -1):
        a = (i + (n-1)*j)
        print(a)
        if k == a:
            return YES
        j += 1
    if (n-2)*2 + (m-2)*2 == k:
        return YES
    return NO

n, m, k = map(int, input().split())
print(answer(n, m, k))

Submission status: Runtime Error

Solution code:
S = str(input())

if S[1:4] = 'YAKI'
    print('Yes')
else:
    print('No')

Submission status: Runtime Error

Solution code:
S = str(input())

if S[1:4] = 'YAKI'
	print('Yes')
else:
	print('No')

Submission status: Runtime Error

Solution code:
h,w=map(int,input().split())
a={}
for i in range(26):
  a[chr(i+97)]=0
for i in range(h):
  s=input()
  for j in s:
    a[j]+=1
if h==1 and w==1:print("Yes")
elif h==1 or w==1:
  cnt=0
  for i in a.values():
    if i%2==1:cnt+=1
  if cnt!=1:print("No")
  else:print("Yes")
elif h%2==0 and w%2==0:
  for i in a.values():
    if i%4!=0:print("No");exit()
  print("Yes")
elif h%2==1 and w%2==0:
  cnt=0
  for i in a.values():
    if i%4==1 or i%4==3:
      print("No");exit()
    if i%4==2:cnt+=1
  if cnt>w//2:
    print("No")
  else:print("Yes")
elif h%2==0 and w%2==1:
  cnt=0
  for i in a.values():
    if i%4==1 or i%4==3:
      print("No");exit()
    if i%4==2:cnt+=1
  if cnt>h//2:
    print("No")
  else:print("Yes")
else:
  cnt3=0;cnt2=0;cnt1=0
  for i in a.values():
    if i%4==1:cnt1+=1
    elif i%4==2:cnt2+=1
    elif i%4==3:cnt3+=1
  rem=1-cnt1
  elif cnt1+cnt3!=1:print("No")
  elif cnt2+cnt3>h+w-2:print("No")
  else:
    print("Yes")

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
s = list(map(str,input().split()))
if s[0]=='Y' and s[1]=='A' and s[2]=='K' and s[3]=='I':
    print('Yes')
else:
    print('No')

Submission status: Runtime Error

Solution code:
s = input()
if s[:4] = 'YAKI':
  print('Yes')
else:
  print('No')

Submission status: Runtime Error

Solution code:
from sys import stdin
 
n, m, k = map(int, stdin.readline().rstrip().split())
 
black = 0
for i in range(1, n+1):
    black = i * m
    for j in range(1, m+1):
        black += (n - (2 * i))
        if black == k:
            print("Yes")
            quit()
 
print("No")

Submission status: Runtime Error

Solution code:
# CODE FESTIVAL 2017 予選 A: A – Snuke's favorite YAKINIKU
s = input()
if len(s) < 4:
    print('No')
else:
    print('Yes' if s.index('YAKI') == 0 else 'No')

Submission status: Runtime Error

Solution code:
# CODE FESTIVAL 2017 予選 A: A – Snuke's favorite YAKINIKU
s = input()
print('Yes' if len(s) >= 4 and s.index('YAKI') == 0 else 'No')

Submission status: Runtime Error

Solution code:
s=input()
if s.startwith("YAKI"):
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

Solution code:
s = input()

ans = 0

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

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

Submission status: Runtime Error

Solution code:
N, M, K = map(int, input().split())

for i in range(N+1):
    for j in range(M+1):
        if(i*(M-j)+(N-i)*j == K):
            print("Yes")
            quit()
else:
    print("No")

Submission status: Runtime Error

Solution code:
from sys import stdin
n,m,k = [int(x) for x in stdin.readline().rstrip().split()]

for i in range(n+1):
    for j in range(m+1):
        kosuu = (n-j)*i+(m-i)*j
        if kosuu == k:
            print("Yes")
            exit()
print("No")

Submission status: Runtime Error

Solution code:
print("NYoe s"[int(input())[:4]=="YAKI"::2])

Submission status: Runtime Error

Solution code:
print("NYoe s"[int(input())[:4]::2])

Submission status: Runtime Error

Solution code:
a = input()
print(a.startswith('YAKI')startswith)

Submission status: Runtime Error

Solution code:
h,w=map(int,input().split())
graph=[[]*w for i in range(h)]
for i in range(h):
  graph[i]=list(input())
A=0
B=0
C=0
D=0
E=0
F=0
G=0
H=0
I=0
J=0
K=0
L=0
M=0
N=0
O=0
P=0
Q=0
R=0
S=0
T=0
U=0
V=0
W=0
X=0
Y=0
Z=0
for i in range(h):
  A=A+graph[i].count("a")
for i in range(h):
  B=B+graph[i].count("b")
for i in range(h):
  C=C+graph[i].count("c")
for i in range(h):
  D=D+graph[i].count("d")
for i in range(h):
  E=E+graph[i].count("e")
for i in range(h):
  F=F+graph[i].count("f")
for i in range(h):
  G=G+graph[i].count("g")
for i in range(h):
  H=H+graph[i].count("h")
for i in range(h):
  I=I+graph[i].count("i")
for i in range(h):
  J=J+graph[i].count("j")
for i in range(h):
  K=K+graph[i].count("k")
for i in range(h):
  L=L+graph[i].count("l")
for i in range(h):
  M=M+graph[i].count("m")
for i in range(h):
  N=N+graph[i].count("n")
for i in range(h):
  O=O+graph[i].count("o")
for i in range(h):
  P=P+graph[i].count("p")
for i in range(h):
  Q=Q+graph[i].count("q")
for i in range(h):
  R=R+graph[i].count("r")
for i in range(h):
  S=S+graph[i].count("s")
for i in range(h):
  T=T+graph[i].count("t")
for i in range(h):
  U=U+graph[i].count("u")
for i in range(h):
  V=V+graph[i].count("v")
for i in range(h):
  W=W+graph[i].count("w")
for i in range(h):
  X=X+graph[i].count("x")
for i in range(h):
  Y=Y+graph[i].count("y")
for i in range(h):
  Z=Z+graph[i].count("z")
List=[A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z]
if w%2==0 and h%2==0:
  for i in range(26):
    if List[i]%4==0:
      if i==25:
        print("Yes")
      else:
        continue
    else:
      print("No")
      break
elif w%2==0 :
  a_2=0
  a_4=0
  for i in range(26):
    if List[i]%4==1 or List[i]%4==3:
      print("No")
      break
    elif List[i]%4==0:
      a_4=a_4+1
    else:
      a_2=a_2+1
  if a_2%2==(w//2)%2 and a_2<=(w//2):
    print("Yes")
  elif List[i]%4==1 or List[i]%4==3:
    print()
  else:
    print("No")
elif h%2==0 :
  a_2=0
  a_4=0
  for i in range(26):
    if List[i]%4==1 or List[i]%4==3:
      print("No")
      break
    elif List[i]%4==0:
      a_4=a_4+1
    else:
      a_2=a_2+1
  if a_2%2==(h//2)%2 and a_2<=(h//2):
    print("Yes")
  elif List[i]%4==1 or List[i]%4==3:
    print()
  else:
    print("No")
else:
  a_1=0
  a_2=0
  a_3=0
  a_4=0
  for i in range(26):
    if List[i]%4==1:
      a1=List[i]
      a_1=a_1+1
      if a_1==2:
        print("No")
        break
    elif List[i]%4==2:
      a_2=a_2+1
    elif List[i]%4==3:
      a3=List[i]
      a_3=a_3+1
      if a_3==2:
        print("No")
    else:
      a_4=a_4+1
  if a_1==1 and a_3==0:
    if a_2%2==(((h-1)//2)+((w-1)//2))%2 and a_2<=((h-1)//2)+((w-1)//2)-(max(0,2*(((a_1-1)//4)-(((h-1)//2)*(w-1)//2)))):
      print("Yes")
    else:
      print("No")
  elif a_1==0 and a_3==1:
    if a_2%2==(((h-1)//2)+((w-1)//2)+1)%2 and a_2<=((h-1)//2)+((w-1)//2)-1-(max(0,2*(((a_3-3)//4)-(((h-1)//2)*(w-1)//2)))):
      print("Yes")
    else:
      print("No")
  elif a_1==2:
    print()
  elif a_3==2:
    print()
  else:
    print("No")

Submission status: Runtime Error

Solution code:
s=input()
if len(s)<4:
    a=“a”
else:
    a=“s[0]”+ “s[1]”+ “s[2]”+ “s[3]”
if a==“YAKI”:
    print(“Yes”)
else:
    print(“No”)

Submission status: Runtime Error

Solution code:
s=list(input())
a=s[0]+ s[1]+ s[2]+ s[3]
if a=='YAKI':
    print('Yes')
else:
    print('No')

Submission status: Runtime Error

Solution code:
s=input()
if s[0]==“Y” and s[1]==“A” and s[2]==“K” and s[3]==“I”:
    print(“Yes”)
else:
    print(“No”)

Submission status: Runtime Error

Solution code:
S=input()
if S[：4]=='YAKI'：
    print('Yes')
else：
    print('No')

Submission status: Runtime Error

Solution code:
S=input()
if S[：4]=='YAKI'：
    print('Yes')
else：
    print('No')

Submission status: Runtime Error

Solution code:
S = input()

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

Submission status: Runtime Error

Solution code:
S = list(input())

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

Submission status: Runtime Error

Solution code:
S = list(input())

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

Submission status: Runtime Error

Solution code:
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")

Submission status: Runtime Error

Solution code:
s = input()
if s[0] == 'Y' and s[1] == "A" and s[2] == "K" and s[3] == "I":
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

Solution code:
s = input()
if s[0] == 'Y' and s[1] == 'A' and s[2] == 'K' and s[3] == 'I':
    print('Yes')
    exit()
print('No')

Submission status: Runtime Error

Solution code:
s = input()
if s[0] == 'Y' and s[1] == 'A' and s[2] == 'K' and s[3] == 'I':
    print('Yes')
else:
    print('No')

Submission status: Runtime Error

Solution code:
S = [i for i in input()]
if S[0]=="Y" and S[1] == "A" and S[2]=="K" and S[3] == "I":
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

Solution code:
print('YNEOS'[if input()[:4]!='YAKI'::2])

Submission status: Runtime Error

Solution code:
a,b,k=map(int,input().split());print("NYoe s"[1in[k==(b-t)*s+t*(a-s)for t in range(b+1)for s in range(a+1)]::2])

Submission status: Runtime Error

Solution code:
s=input()
if len(s)<4:print("No")
elif s[:3]=print("Yes")
else:print("No")

Submission status: Runtime Error

Solution code:
n,m,k = map(int, input().split())
for i in range(n + 1):
    for j in range(m + 1):
        if i*(m - j) + j*(n - i) == k:
            print("Yes")
            exit()
print("No")

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
H,W = list(map(int,input().strip().split(' ')))
A=[str(input().strip()) for i in range(H)]

import collections
flg = 1
flg1 = 0
S = [[s for s in a] for a in A]
for s in S:
    c = collections.Counter(s)
    for i in c.values():
        if i % 2 != 0 and len(c.keys()) != 1:
            flg1 = flg1 + 1
            if W % 2 == 0 and flg1 >= 1:
                flg = 0
                break
            elif W % 2 != 0 and flg1 >= 2:
                flg = 0
                break

if flg == 1:    
    S_t = [list(x) for x in zip(*S)]
    for s in S_t:
        c = collections.Counter(s)
        for i in c.values():
            if i % 2 != 0 and len(c.keys()) != 1:
                flg1 = flg1 + 1
                if H % 2 == 0 and flg1 >= 1:
                    flg = 0
                    break
                elif H % 2 != 0 and flg1 >= 2:
                    flg = 0
                    break

if flg == 1:
    print('Yes')
else:
    print('No')

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
s=input()
print("Yes" if len(s)>=4 && s[:4]=="YAKI" else "No")

Submission status: Runtime Error

Solution code:
if S.startswith("YAKI"):
  return "Yes"
else:
  return "No"

Submission status: Runtime Error

Solution code:
S

Submission status: Runtime Error

Solution code:
if input().startwith("YAKI"):
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

Solution code:
N, M, K = map(int, input().split())

flag = False

for i in range(N+1):
    for j in range(M+1):
        if flag:
            break
        if M*i+N*j-i*j*2==K:
            flag = True
    if flag:
        break

if flag:
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

Solution code:
#coding:utf-8

#入力
S = raw_input()

#分割
S_list = list(S)

present = ""
for i in range(4): present += S_list[i] 

output = lambda present: present == "YAKI" and "Yes" or "No"
print output(present)

Submission status: Runtime Error

Solution code:
s=str(input())
if s[:4]==YAKI:
    print("yes")
else:
    print("no")

Submission status: Runtime Error

Solution code:
#include <iostream>
#include <string>


using namespace std;


bool yaki_check(string s)
{
  if (s.length() < 4){
    return false;
  }
  string t("YAKI");
  for (int i=0; i<4; i++){
    if (s[i] != t[i]){
      return false;
    }
  }
  return true;
}

int main()
{
  string s;

  cin >> s;

  if (yaki_check(s)){
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
  }
  
  return 0;
}

Submission status: Runtime Error

Solution code:
H,W = list(map(int, input().split()))
moji = ''
char = {}
for i in range(H):
    moji += input()
for m in moji:
    if m in char:
        char[m] += 1
    else:
        char.update({m:1})

four = 0
two = 0
one = 0
for c in char:
    four += int(char[c] / 4)
    two += int(char[c]%4/2)
    one += int(char[c]%2)

ans = [(H//2)*(W//2), (H//2)*(W%2)+(H%2)*(W//2), (H%2)*(W%2)]
four -= ans[0]
while(four > 0):
    four -= 1
    ans[1] -= 2
if two == ans[1] and one == ans[2]:
    print("Yes")
else:
    print("No")