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: Runtime Error

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


def solve(N, M, K):
    for i in range(N+1):
        for j in range(M+1):
            blackNum = i*M + j*N - 2*i*j
            if K == blackNum:
                return "Yes"
    return "No"

print(solve(N, M, K))

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
s=input()
if(len(s)>=4)
if(s[:4]=="YAKI"): print("YES")
else : print("NO")

Submission status: Runtime Error

Solution code:
h, w, k = map(int, raw_input().split())
b = [[0] * w for i in xrange(h)]
c = "YGBR"
for i in xrange(h):
    for j in xrange(w):
        b[i][j] = c[(i+j)/k%2+(i-j)/k%2*2]
    print "".join(b[i])

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
hoge = [int(x) for x in input().split()]
moji = ''
char = {}
for i in range(hoge[0]):
    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:
    while(char[c] > 0):
        four += char[c] / 4:
        two += char[c]%4/2:
        one += char[c]%2:

if four*4+two*2+one == hoge[0]*hoge[1]:
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

Solution code:
import fileinput
s = fileinput.input().strip()
print(len(s)>=4 and s[:3] == 'YAKI')

Submission status: Runtime Error

Solution code:
s=input().split()
n=int(s[0])
m=int(s[1])
k=int(s[2])
import numpy as np
a=np.zeros((n,m))

b=int(n/2)+1
c=int(m/2)+1
x=[]
for i in range(b):
    a[i,:]=1
    x.append(np.count_nonzero(a))
for j in range(c):
    a[:,j]=1-i
    x.append(np.count_nonzero(a))
if k in x:
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

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

inlist = input().split()
n = int(inlist[0])
m = int(inlist[1])
k = int(inlist[2])
mat = [[1 for i in range(n)] for j in range(m)]

def initialize(i, j, matrix):
    for k in range(i):
        for l in range(j):
            matrix[k][l] = 1
    return matrix

def sum_mat(i, j, matrix):
    sum = 0
    for k in range(i):
        for l in range(j):
            sum = sum + matrix[k][l]
    return sum

escape = False

for l in range(n + 1): #l = 0 -> n
    mat = initialize(n, m, mat)
    for i in range(l):
        for j in range(m):
            mat[i][j] = -mat[i][j]
    mat_save = mat
    for p in range(m + 1): # p = 0 -> m
        mat = mat_save
        for j in range(p):
            for i in range(n):
                mat[i][j] = -mat[i][j]
        sum = sum_mat(n, m, mat)
        if(sum == n * m - 2 * k):
            print("Yes")
            escape = True
            break;
        elif(l == n and p == m):
            print("No")
    if(escape):
        break;

Submission status: Runtime Error

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

inlist = input().split()
n = int(inlist[0])
m = int(inlist[1])
k = int(inlist[2])
mat = [[1 for i in range(n)] for j in range(m)]

def initialize(i, j, matrix):
    for k in range(i):
        for l in range(j):
            matrix[k][l] = 1
    return matrix

def sum_mat(i, j, matrix):
    sum = 0
    for k in range(i):
        for l in range(j):
            sum = sum + matrix[k][l]
    return sum

for l in range(n + 1): #l = 0 -> n
    print(mat)
    mat = initialize(n, m, mat)
    for i in range(l):
        for j in range(m):
            mat[i][j] = -mat[i][j]
    mat_save = mat
    for p in range(m + 1): # p = 0 -> m
        mat = mat_save
        for j in range(p):
            for i in range(n):
                mat[i][j] = -mat[i][j]
        sum = sum_mat(n, m, mat)
        if(sum == n * m - 2 * k):
            print("Yes")
        elif(l == n and p == m):
            print("No")

Submission status: Runtime Error

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

inlist = input().split()
n = int(inlist[0])
m = int(inlist[1])
k = int(inlist[2])
mat = [[1 for i in range(n)] for j in range(m)]

def initialize(i, j, matrix):
    for k in range(i):
        for l in range(j):
            matrix[k][l] = 1
    return matrix

def sum_mat(i, j, matrix):
    sum = 0
    for k in range(i):
        for l in range(j):
            sum = sum + matrix[k][l]
    return sum

for l in range(n + 1): #l = 0 -> n
    print(mat)
    mat = initialize(n, m, mat)
    for i in range(l):
        for j in range(m):
            mat[i][j] = -mat[i][j]
    mat_save = mat
    for p in range(m + 1): # p = 0 -> m
        mat = mat_save
        for j in range(p):
            for i in range(n):
                mat[i][j] = -mat[i][j]
        sum = sum_mat(n, m, mat)
        if(sum == n * m - 2 * k):
            print("Yes")
        elif(l == n and p == m):
            print("No")

Submission status: Runtime Error

Solution code:
s = str(input())
print str.lower(s)[:4] == "yaki"

Submission status: Runtime Error

Solution code:
s = str(raw_input())
print(str.lower(s)[:4] == "yaki")

Submission status: Runtime Error

Solution code:
from collections import defaultdict

def foo():
	H, W = map(int, input().split())
	s = ""
	for _ in range(H):
		s += input()

	counter = defaultdict(int)
	for c in s:
		counter[c] += 1

	x1, x2 = H // 2, H % 2
	y1, y2 = W // 2, W % 2

	n = x1 * y1
	k = 0
	for c in counter:
		if k == n:
			break
		if counter[c] >= 4:
			k += 1
			counter[c] -= 4

	if k != n:
		print("No")
		return

	if x2 == 1:
		n = x1
		k = 0
		for c in counter:
			if k == n:
				break
			if counter[c] >= 2:
				k += 1
				counter[c] -= 2
		if k != n:
			print("No")
			return
	if y2 == 1:
		n = y1
		k = 0
		for c in counter:
			if k == n:
				break
			if counter[c] >= 2:
				k += 1
				counter[c] -= 2
		if k != n:
			print("No")
			return
	print("Yes")

foo()

Submission status: Runtime Error

Solution code:
from collections import defaultdict

def foo():
	H, W = map(int, input().split())
	s = ""
	for _ in range(H):
		s += input()

	counter = defaultdict(int)
	for c in s:
		counter[c] += 1

	x1, x2 = H // 2, H % 2
	y1, y2 = W // 2, W % 2

	n = x1 * y1
	k = 0
	for c in counter:
		if k == n:
			break
		if counter[c] >= 4:
			k += 1
			counter[c] -= 4

	if k != n:
		print("No")
		return

	if x2 == 1:
		n = y1
		k = 0
		for c in counter:
			if k == n:
				break
			if counter[c] >= 2:
				k += 1
				counter[c] -= 2
		if k != n:
			print("No")
			return
	if y2 == 1:
		n = x1
		k = 0
		for c in counter:
			if k == n:
				break
			if counter[c] >= 2:
				k += 1
				counter[c] -= 2
		if k != n:
			print("No")
			return
	print("Yes")

foo()

Submission status: Runtime Error

Solution code:
raw1 = input().split()
H = int(raw1[0])
W = int(raw1[1])

c = [0 for x in range(26)]

for i in range(H):
    raw = input()
    for j in range(W):
        c[ord(raw[j]) - 97] += 1

for i in range(len(c)):
    c[i] = c[i] % 4


if c.count(3) > 0 :
    print('No')
elif W%2 == 1 and H%2 == 1 and c.count(1) == 1 and c.count(2) == (H-1)/2 +(W-1)/2:
    print('Yes')
elif W%2 == 0 and H%2==0 and c.count(1)==0 and c.count(2) ==0:
    print('Yes')
elif W % 2 ==0 and  H % 2  == 1 and c.count(1) == 0 and c.count(2) == W/2:
    print('Yes')
elif W % 2 ==1 and  H % 2  == 0 and c.count(1) == 0 and c.count(2) == H/2:
    print('Yes')
else:
    print('No')

Submission status: Runtime Error

Solution code:
from sys import stdin
ans = 'No'
n,m,k = map(int,stdin.readline().split())
for i in xrange(n+1):
 for j in xrange(m+1):
  if i*m - b*j==k:
   ans = 'Yes'
print ans

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import sys

if sys.argv[1][0:4].startswith('YAKI') == True:
  print('Yes')
else:
  print('No')

Submission status: Runtime Error

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

from __future__ import division, print_function
import sys


def main():
    h, w = map(int, sys.stdin.readline().strip().split(" "))
    aa = ""
    for _ in range(h):
        aa += sys.stdin.readline().strip()
    d = {}
    for c in aa:
        if c in d:
            d[c] += 1
        else:
            d[c] = 1

    # print(d)
    fours = 0
    evens = 0
    odds = 0

    for c, count in d.items():
        fours += count // 4
        evens += (count % 4) // 2
        odds += count % 2

    # print(fours, evens, odds)
    if h % 2 == 0 and w % 2 == 0:
        print("Yes" if odds == 0 and evens == 0 else "No")
    elif h % 2 == 0 and w % 2 == 1:
        print("Yes" if odds == 0 and evens * 2 == h else "No")
    elif h % 2 == 1 and w % 2 == 0:
        print("Yes" if odds == 0 and evens * 2 == w else "No")
    else:
        print("Yes" if odds == 1 and evens * 2 == w + h - 2 else "No")


if __name__ == '__main__':
    main()

Submission status: Runtime Error

Solution code:
def func() :
    n,m=map(int,input().split())
    a={}
    for i in range(n) :
        s = input()
        for c in list(s):
            if c in a:
                a[c]+=1
            else :
                a[c] = 1
    c1=n*m%2
    d1=sum(filter(lambda x : x%2 , a.values()))
    if c1 < d1:
        print('No')
        return
    c4 = (n//2*2)*(m//2*2)
    d4 = sum(filter(lambda x : x//4*4 , a.values()))
    if c4>d4 :
        print('No')
        return
    print('Yes')
func()

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import numpy as np

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

flag = 0
for i in range(n + 1):
    for j in range(m + 1): 
        if(i * n - i * j + j * m - i * j == k):
            flag = 1

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

Submission status: Runtime Error

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

flag = False
for n in range(M + 1):
    for m in range(N + 1):
        if n * N + m * (M - n * 2) == K:
            flag = True

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

Submission status: Runtime Error

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

@author: thvinmei
"""

import numpy as np

if __name__ == '__main__':
    answer = False
    N,M,K=map(int,input().split())

    tile = np.zeros((N,M))
    
    if( K > N*M):
        print("No")
        
    for j in range(M):
        for i in range(N):
            tile[i,j] = 1

        if np.sum(tile)==K:
            answer = True
    
        if (np.sum(tile)>K):
            for i in range(N):
                tile[i,j] = 0
            break
    
    for i in range(N):
        for j in range(M):
            if tile[i,j] == 0:
                tile[i,j] = 1
            else:
                tile[i,j] = 0
        
        if np.sum(tile)==K:
            answer = True
            break

    if answer == True:
        print("Yes")
    else:
        print("No")

Submission status: Runtime Error

Solution code:
import sys

args = sys.argv[1];

if args.startswith("YAKI") == True:
  print('Yes')
else:
  print('No')

Submission status: Runtime Error

Solution code:
s=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().split()
print("Yes" if s[0]=="Y" and s[1]=="A" and s[2]=="K" and s[3]=="I" else 'No')

Submission status: Runtime Error

Solution code:
s=input().sprit()
print('Yes' if s[0]=='Y' and s[1]=='A' and s[2]=='K' and s[3]=='I' else '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:
a = str(raw_input())
if 1a[0: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:
[N,M,K]= map(int, raw_input().split())
ans=["No","Yes"]
f=0
for m in range(M+1):
    for n in range(N+1):
        if K== m*N+n*M-2*m*n:
            f=1
print ans[f]

Submission status: Runtime Error

Solution code:
import sys
import socket

hostname = socket.gethostname()

if hostname == 'F451C':
    sys.stdin = open('a1.in')


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


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


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


def read_str():
    return input()


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


main()

Submission status: Runtime Error

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

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:
a = list(input())
b = ""
for i in range(4):
    b += a[i] 
if b == "YAKI":
    print('Yes')
else:
    print('No')

Submission status: Runtime Error

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: Runtime Error

Solution code:
S = raw_input()

if S[0] == "Y":
	if S[1] == "A":
		if S[2] == "K":
			if S[3] == "I":
				print("YES")
				
else:
	print("NO")

Submission status: Runtime Error

Solution code:
! /usr/bin/env python3
# -*- coding: utf-8 -*-
S = input()
if S in "YAKI":
	print("Yes")

else:
	print("No")

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
#! /usr/bin/env python3
# -*- coding: utf-8 -*-S = input()
if S in "YAKI":
	print("Yes")

else:
	print("No")

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
1. 学部学科／研究科専攻の中身（大学の紹介ではなく、自分が大学で勉強していることの説明）
2. 自分の中心テーマ、素材、対象（専門家向けバージョンと、専門家以外でもわかるバージョンがあると便利）
3. その勉強を通じて得られる成果、結論、応用、実用（特に基礎系の専門の場合、「応用」を幅広くとらえることが欠かせない）
4. ユニークさ（独自の視点、手法、対象、成功率（失敗率））

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(len(S) >= 4 and A[:4] == "YAKI"):
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
git merge upstream/master

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(A[:4] == "YAKI"):
    print("Yes")
else:
    print("No")