node_ids
listlengths
4
1.4k
edge_index
listlengths
1
2.22k
text
listlengths
4
1.4k
source
stringlengths
14
427k
[ 7, 0, 13, 4, 13, 13, 4, 18, 4, 13, 13, 13, 13, 0, 13, 2, 13, 13, 0, 13, 4, 13, 0, 13, 17, 0, 13, 17, 28, 13, 13, 14, 2, 13, 17, 14, 2, 13, 13, 0, 13, 17, 4, 13, 17, 4, 13, 17, 14, 2, 13, 17, 14, 2, 2, 13, 13, 2, 13, 13, 0, 13, 17, 0, 13, 17, 4, 13, 17, 4, 13, 17, 4, 13, 17, 10, 17, 13, 10, 4, 13, 10, 2, 13, 10, 17, 13, 10, 17, 13, 10, 4, 13, 10, 17, 13, 10, 4, 13, 10, 17, 13, 10, 4, 13 ]
[ [ 97, 2 ], [ 97, 11 ], [ 97, 12 ], [ 82, 14 ], [ 98, 16 ], [ 92, 17 ], [ 103, 19 ], [ 88, 23 ], [ 76, 26 ], [ 30, 29 ], [ 104, 29 ], [ 29, 33 ], [ 89, 37 ], [ 86, 37 ], [ 95, 37 ], [ 83, 38 ], [ 94, 40 ], [ 29, 50 ], [ 89, 55 ], [ 86, 55 ], [ 95, 55 ], [ 83, 56 ], [ 77, 58 ], [ 101, 58 ], [ 92, 59 ], [ 85, 61 ], [ 100, 64 ], [ 76, 77 ], [ 97, 80 ], [ 82, 83 ], [ 85, 86 ], [ 88, 89 ], [ 97, 92 ], [ 94, 95 ], [ 97, 98 ], [ 100, 101 ], [ 103, 104 ] ]
[ "n,a,b=map(int,input().split())\nab=a+b\nS=input()\nallp=0\nforp=0\nfor s in S:\n if s=='a':\n if allp<ab:\n allp+=1\n print('Yes')\n else:\n print('No')\n elif s=='b':\n if allp<ab and forp<b:\n allp+=1\n forp+=1\n print('Yes')\n else:\n print('No')\n else:\n print('No')", "n,a,b=map(int,input().split())", "n", "map(int,input().split())", "map", "int", "input().split()", "().split", "()", "input", "split", "a", "b", "ab=a+b", "ab", "a+b", "a", "b", "S=input()", "S", "input()", "input", "allp=0", "allp", "0", "forp=0", "forp", "0", "for s in S:\n if s=='a':\n if allp<ab:\n allp+=1\n print('Yes')\n else:\n print('No')\n elif s=='b':\n if allp<ab and forp<b:\n allp+=1\n forp+=1\n print('Yes')\n else:\n print('No')\n else:\n print('No')", "s", "S", "if s=='a':\n if allp<ab:\n allp+=1\n print('Yes')\n else:\n print('No')\n elif s=='b':\n if allp<ab and forp<b:\n allp+=1\n forp+=1\n print('Yes')\n else:\n print('No')\n else:\n print('No')", "s=='a'", "s", "'a'", "if allp<ab:\n allp+=1\n print('Yes')\n else:\n print('No')\n ", "allp<ab", "allp", "ab", "allp+=1", "allp", "1", "print('Yes')", "print", "'Yes'", "print('No')", "print", "'No'", "elif s=='b':\n if allp<ab and forp<b:\n allp+=1\n forp+=1\n print('Yes')\n else:\n print('No')\n ", "s=='b'", "s", "'b'", "if allp<ab and forp<b:\n allp+=1\n forp+=1\n print('Yes')\n else:\n print('No')\n ", "allp<ab and forp<b", "allp<ab", "allp", "ab", "forp<b", "forp", "b", "allp+=1", "allp", "1", "forp+=1", "forp", "1", "print('Yes')", "print", "'Yes'", "print('No')", "print", "'No'", "print('No')", "print", "'No'", "forp=0", "0", "forp", "n,a,b=map(int,input().split())", "map(int,input().split())", "n", "ab=a+b", "a+b", "ab", "allp+=1", "1", "allp", "allp=0", "0", "allp", "b=map(int,input().split())", "map(int,input().split())", "b", "allp+=1", "1", "allp", "a,b=map(int,input().split())", "map(int,input().split())", "a", "forp+=1", "1", "forp", "S=input()", "input()", "S" ]
n,a,b=map(int,input().split()) ab=a+b S=input() allp=0 forp=0 for s in S: if s=='a': if allp<ab: allp+=1 print('Yes') else: print('No') elif s=='b': if allp<ab and forp<b: allp+=1 forp+=1 print('Yes') else: print('No') else: print('No')
[ 7, 0, 13, 4, 13, 13, 4, 18, 4, 13, 13, 13, 13, 0, 13, 4, 13, 4, 13, 13, 4, 13, 0, 13, 17, 0, 13, 2, 13, 13, 0, 13, 17, 28, 13, 13, 14, 2, 13, 13, 14, 2, 13, 17, 4, 13, 17, 0, 13, 17, 14, 2, 2, 13, 17, 2, 13, 13, 4, 13, 17, 0, 13, 17, 0, 13, 17, 4, 13, 17, 4, 13, 17, 10, 2, 13, 10, 17, 13, 10, 4, 13, 10, 4, 13, 10, 17, 13, 10, 17, 13, 10, 17, 13, 10, 17, 13, 10, 4, 13, 10, 4, 13 ]
[ [ 101, 2 ], [ 101, 11 ], [ 101, 12 ], [ 98, 14 ], [ 86, 23 ], [ 74, 26 ], [ 81, 28 ], [ 102, 29 ], [ 92, 31 ], [ 35, 34 ], [ 99, 34 ], [ 87, 38 ], [ 96, 38 ], [ 78, 38 ], [ 75, 39 ], [ 34, 42 ], [ 77, 48 ], [ 34, 53 ], [ 93, 56 ], [ 90, 56 ], [ 102, 57 ], [ 95, 62 ], [ 89, 65 ], [ 74, 75 ], [ 77, 78 ], [ 101, 81 ], [ 101, 84 ], [ 86, 87 ], [ 89, 90 ], [ 92, 93 ], [ 95, 96 ], [ 98, 99 ], [ 101, 102 ] ]
[ "N, A, B = map(int, input().split())\ns = list(map(str, input()))\n\nclear = 0\n\nab = A + B\nb = 0\n\nfor obj in s:\n if clear < ab:\n if obj == \"a\":\n print(\"Yes\")\n clear += 1\n elif obj == \"b\" and b < B:\n print(\"Yes\")\n clear += 1\n b += 1\n else:\n print(\"No\")\n\n else:\n print(\"No\")", "N, A, B = map(int, input().split())", "N", "map(int, input().split())", "map", "int", "input().split()", "().split", "()", "input", "split", "A", "B", "s = list(map(str, input()))", "s", "list(map(str, input()))", "list", "map(str, input())", "map", "str", "input()", "input", "clear = 0", "clear", "0", "ab = A + B", "ab", "A + B", "A", "B", "b = 0", "b", "0", "for obj in s:\n if clear < ab:\n if obj == \"a\":\n print(\"Yes\")\n clear += 1\n elif obj == \"b\" and b < B:\n print(\"Yes\")\n clear += 1\n b += 1\n else:\n print(\"No\")\n\n else:\n print(\"No\")", "obj", "s", "if clear < ab:\n if obj == \"a\":\n print(\"Yes\")\n clear += 1\n elif obj == \"b\" and b < B:\n print(\"Yes\")\n clear += 1\n b += 1\n else:\n print(\"No\")\n\n else:\n print(\"No\")", "clear < ab", "clear", "ab", "if obj == \"a\":\n print(\"Yes\")\n clear += 1\n elif obj == \"b\" and b < B:\n print(\"Yes\")\n clear += 1\n b += 1\n else:\n print(\"No\")\n\n ", "obj == \"a\"", "obj", "\"a\"", "print(\"Yes\")", "print", "\"Yes\"", "clear += 1", "clear", "1", "elif obj == \"b\" and b < B:\n print(\"Yes\")\n clear += 1\n b += 1\n ", "obj == \"b\" and b < B", "obj == \"b\"", "obj", "\"b\"", "b < B", "b", "B", "print(\"Yes\")", "print", "\"Yes\"", "clear += 1", "clear", "1", "b += 1", "b", "1", "print(\"No\")", "print", "\"No\"", "print(\"No\")", "print", "\"No\"", "ab = A + B", "A + B", "ab", "clear += 1", "1", "clear", "A, B = map(int, input().split())", "map(int, input().split())", "A", "N, A, B = map(int, input().split())", "map(int, input().split())", "N", "clear = 0", "0", "clear", "b += 1", "1", "b", "b = 0", "0", "b", "clear += 1", "1", "clear", "s = list(map(str, input()))", "list(map(str, input()))", "s", "B = map(int, input().split())", "map(int, input().split())", "B" ]
N, A, B = map(int, input().split()) s = list(map(str, input())) clear = 0 ab = A + B b = 0 for obj in s: if clear < ab: if obj == "a": print("Yes") clear += 1 elif obj == "b" and b < B: print("Yes") clear += 1 b += 1 else: print("No") else: print("No")
[ 7, 12, 13, 41, 28, 13, 4, 18, 4, 13, 13, 4, 4, 13, 13, 0, 13, 13, 13, 13, 0, 13, 4, 13, 0, 13, 17, 0, 13, 17, 28, 13, 13, 0, 13, 17, 14, 2, 13, 17, 14, 2, 13, 2, 13, 13, 0, 13, 17, 0, 13, 17, 14, 2, 13, 17, 14, 2, 2, 13, 2, 13, 13, 2, 13, 13, 0, 13, 17, 0, 13, 17, 0, 13, 17, 14, 13, 4, 13, 17, 4, 13, 17, 4, 13, 10, 12, 13 ]
[ [ 6, 5 ], [ 5, 14 ], [ 17, 16 ], [ 17, 18 ], [ 17, 19 ], [ 22, 21 ], [ 26, 25 ], [ 29, 28 ], [ 32, 31 ], [ 21, 31 ], [ 35, 34 ], [ 31, 38 ], [ 25, 42 ], [ 70, 42 ], [ 50, 42 ], [ 18, 44 ], [ 19, 45 ], [ 48, 47 ], [ 51, 50 ], [ 31, 54 ], [ 25, 59 ], [ 70, 59 ], [ 50, 59 ], [ 18, 61 ], [ 19, 62 ], [ 28, 64 ], [ 73, 64 ], [ 19, 65 ], [ 68, 67 ], [ 71, 70 ], [ 74, 73 ], [ 87, 84 ] ]
[ "def resolve():\n N, A, B = [int(i) for i in input().split()]\n S = input()\n ac = 0\n abc = 0\n for s in S:\n flg = False\n if s == \"a\":\n if ac < A + B:\n flg = True\n ac += 1\n elif s == \"b\":\n if ac < A + B and abc < B:\n flg = True\n ac += 1\n abc += 1\n else:\n pass\n\n if flg:\n print(\"Yes\")\n else:\n print(\"No\")\n\n\nresolve()", "def resolve():\n N, A, B = [int(i) for i in input().split()]\n S = input()\n ac = 0\n abc = 0\n for s in S:\n flg = False\n if s == \"a\":\n if ac < A + B:\n flg = True\n ac += 1\n elif s == \"b\":\n if ac < A + B and abc < B:\n flg = True\n ac += 1\n abc += 1\n else:\n pass\n\n if flg:\n print(\"Yes\")\n else:\n print(\"No\")", "resolve", "int(i) for i in input().split()", "for i in input().split()", "i", "input().split()", "().split", "()", "input", "split", "for i in input().split()", "int(i)", "int", "i", "N, A, B = [int(i) for i in input().split()]", "N", "[int(i) for i in input().split()]", "A", "B", "S = input()", "S", "input()", "input", "ac = 0", "ac", "0", "abc = 0", "abc", "0", "for s in S:\n flg = False\n if s == \"a\":\n if ac < A + B:\n flg = True\n ac += 1\n elif s == \"b\":\n if ac < A + B and abc < B:\n flg = True\n ac += 1\n abc += 1\n else:\n pass\n\n if flg:\n print(\"Yes\")\n else:\n print(\"No\")", "s", "S", "flg = False", "flg", "False", "if s == \"a\":\n if ac < A + B:\n flg = True\n ac += 1\n elif s == \"b\":\n if ac < A + B and abc < B:\n flg = True\n ac += 1\n abc += 1\n else:\n pass\n\n ", "s == \"a\"", "s", "\"a\"", "if ac < A + B:\n flg = True\n ac += 1\n ", "ac < A + B", "ac", "A + B", "A", "B", "flg = True", "flg", "True", "ac += 1", "ac", "1", "elif s == \"b\":\n if ac < A + B and abc < B:\n flg = True\n ac += 1\n abc += 1\n ", "s == \"b\"", "s", "\"b\"", "if ac < A + B and abc < B:\n flg = True\n ac += 1\n abc += 1\n ", "ac < A + B and abc < B", "ac < A + B", "ac", "A + B", "A", "B", "abc < B", "abc", "B", "flg = True", "flg", "True", "ac += 1", "ac", "1", "abc += 1", "abc", "1", "if flg:\n print(\"Yes\")\n else:\n print(\"No\")", "flg", "print(\"Yes\")", "print", "\"Yes\"", "print(\"No\")", "print", "\"No\"", "resolve()", "resolve", "def resolve():\n N, A, B = [int(i) for i in input().split()]\n S = input()\n ac = 0\n abc = 0\n for s in S:\n flg = False\n if s == \"a\":\n if ac < A + B:\n flg = True\n ac += 1\n elif s == \"b\":\n if ac < A + B and abc < B:\n flg = True\n ac += 1\n abc += 1\n else:\n pass\n\n if flg:\n print(\"Yes\")\n else:\n print(\"No\")", "def resolve():\n N, A, B = [int(i) for i in input().split()]\n S = input()\n ac = 0\n abc = 0\n for s in S:\n flg = False\n if s == \"a\":\n if ac < A + B:\n flg = True\n ac += 1\n elif s == \"b\":\n if ac < A + B and abc < B:\n flg = True\n ac += 1\n abc += 1\n else:\n pass\n\n if flg:\n print(\"Yes\")\n else:\n print(\"No\")", "resolve" ]
def resolve(): N, A, B = [int(i) for i in input().split()] S = input() ac = 0 abc = 0 for s in S: flg = False if s == "a": if ac < A + B: flg = True ac += 1 elif s == "b": if ac < A + B and abc < B: flg = True ac += 1 abc += 1 else: pass if flg: print("Yes") else: print("No") resolve()
[ 7, 0, 13, 4, 13, 4, 13, 13, 4, 18, 4, 13, 13, 13, 13, 0, 13, 4, 13, 4, 13, 0, 13, 17, 0, 13, 17, 28, 13, 4, 13, 13, 14, 2, 18, 13, 13, 17, 14, 2, 13, 2, 13, 13, 0, 13, 2, 13, 17, 4, 13, 17, 4, 13, 17, 14, 2, 18, 13, 13, 17, 14, 2, 2, 13, 2, 13, 13, 2, 13, 13, 0, 13, 2, 13, 17, 0, 13, 2, 13, 17, 4, 13, 17, 4, 13, 17, 4, 13, 17, 10, 17, 13, 10, 4, 13, 10, 2, 13, 10, 2, 13, 10, 4, 13, 10, 4, 13, 10, 2, 13, 10, 17, 13, 10, 4, 13 ]
[ [ 115, 2 ], [ 115, 13 ], [ 115, 14 ], [ 106, 16 ], [ 112, 22 ], [ 91, 25 ], [ 29, 28 ], [ 95, 31 ], [ 107, 35 ], [ 28, 36 ], [ 113, 40 ], [ 101, 40 ], [ 98, 40 ], [ 116, 42 ], [ 104, 43 ], [ 97, 45 ], [ 113, 47 ], [ 101, 47 ], [ 98, 47 ], [ 107, 58 ], [ 28, 59 ], [ 113, 64 ], [ 101, 64 ], [ 98, 64 ], [ 116, 66 ], [ 104, 67 ], [ 104, 69 ], [ 92, 70 ], [ 110, 70 ], [ 100, 72 ], [ 113, 74 ], [ 101, 74 ], [ 98, 74 ], [ 109, 77 ], [ 92, 79 ], [ 110, 79 ], [ 91, 92 ], [ 115, 95 ], [ 97, 98 ], [ 100, 101 ], [ 115, 104 ], [ 106, 107 ], [ 109, 110 ], [ 112, 113 ], [ 115, 116 ] ]
[ "N,A,B=list(map(int,input().split()))\nS=list(input())\nt=0\nu=0\nfor i in range(N):\n if S[i]=='a':\n if t<A+B:\n t=t+1\n print(\"Yes\")\n else:\n print(\"No\")\n elif S[i]=='b':\n if t<A+B and B>u:\n t=t+1\n u=u+1\n print('Yes')\n else:\n print('No')\n else:\n print('No')", "N,A,B=list(map(int,input().split()))", "N", "list(map(int,input().split()))", "list", "map(int,input().split())", "map", "int", "input().split()", "().split", "()", "input", "split", "A", "B", "S=list(input())", "S", "list(input())", "list", "input()", "input", "t=0", "t", "0", "u=0", "u", "0", "for i in range(N):\n if S[i]=='a':\n if t<A+B:\n t=t+1\n print(\"Yes\")\n else:\n print(\"No\")\n elif S[i]=='b':\n if t<A+B and B>u:\n t=t+1\n u=u+1\n print('Yes')\n else:\n print('No')\n else:\n print('No')", "i", "range(N)", "range", "N", "if S[i]=='a':\n if t<A+B:\n t=t+1\n print(\"Yes\")\n else:\n print(\"No\")\n elif S[i]=='b':\n if t<A+B and B>u:\n t=t+1\n u=u+1\n print('Yes')\n else:\n print('No')\n else:\n print('No')", "S[i]=='a'", "S[i]", "S", "i", "'a'", "if t<A+B:\n t=t+1\n print(\"Yes\")\n else:\n print(\"No\")\n ", "t<A+B", "t", "A+B", "A", "B", "t=t+1", "t", "t+1", "t", "1", "print(\"Yes\")", "print", "\"Yes\"", "print(\"No\")", "print", "\"No\"", "elif S[i]=='b':\n if t<A+B and B>u:\n t=t+1\n u=u+1\n print('Yes')\n else:\n print('No')\n ", "S[i]=='b'", "S[i]", "S", "i", "'b'", "if t<A+B and B>u:\n t=t+1\n u=u+1\n print('Yes')\n else:\n print('No')\n ", "t<A+B and B>u", "t<A+B", "t", "A+B", "A", "B", "B>u", "B", "u", "t=t+1", "t", "t+1", "t", "1", "u=u+1", "u", "u+1", "u", "1", "print('Yes')", "print", "'Yes'", "print('No')", "print", "'No'", "print('No')", "print", "'No'", "u=0", "0", "u", "N,A,B=list(map(int,input().split()))", "list(map(int,input().split()))", "N", "t=t+1", "t+1", "t", "t=t+1", "t+1", "t", "B=list(map(int,input().split()))", "list(map(int,input().split()))", "B", "S=list(input())", "list(input())", "S", "u=u+1", "u+1", "u", "t=0", "0", "t", "A,B=list(map(int,input().split()))", "list(map(int,input().split()))", "A" ]
N,A,B=list(map(int,input().split())) S=list(input()) t=0 u=0 for i in range(N): if S[i]=='a': if t<A+B: t=t+1 print("Yes") else: print("No") elif S[i]=='b': if t<A+B and B>u: t=t+1 u=u+1 print('Yes') else: print('No') else: print('No')
[ 7, 0, 13, 4, 13, 13, 4, 18, 4, 13, 13, 13, 13, 0, 13, 4, 13, 0, 13, 17, 0, 13, 17, 28, 13, 4, 13, 13, 14, 2, 18, 13, 13, 17, 4, 13, 17, 14, 2, 18, 13, 13, 17, 14, 2, 13, 2, 13, 13, 4, 13, 17, 0, 13, 17, 4, 13, 17, 14, 2, 18, 13, 13, 17, 14, 2, 2, 13, 2, 13, 13, 2, 13, 13, 4, 13, 17, 0, 13, 17, 0, 13, 17, 4, 13, 17, 10, 4, 13, 10, 17, 13, 10, 17, 13, 10, 4, 13, 10, 17, 13, 10, 17, 13, 10, 17, 13, 10, 4, 13, 10, 4, 13 ]
[ [ 111, 2 ], [ 111, 11 ], [ 111, 12 ], [ 87, 14 ], [ 90, 18 ], [ 99, 21 ], [ 25, 24 ], [ 109, 27 ], [ 88, 31 ], [ 24, 32 ], [ 88, 40 ], [ 24, 41 ], [ 91, 45 ], [ 103, 45 ], [ 94, 45 ], [ 97, 47 ], [ 112, 48 ], [ 93, 53 ], [ 88, 61 ], [ 24, 62 ], [ 91, 67 ], [ 103, 67 ], [ 94, 67 ], [ 97, 69 ], [ 112, 70 ], [ 100, 72 ], [ 106, 72 ], [ 112, 73 ], [ 102, 78 ], [ 105, 81 ], [ 87, 88 ], [ 90, 91 ], [ 93, 94 ], [ 111, 97 ], [ 99, 100 ], [ 102, 103 ], [ 105, 106 ], [ 111, 109 ], [ 111, 112 ] ]
[ "N, A, B = map(int, input().split())\nS = input()\ncount = 0\ncount2 = 0\n\n\nfor i in range(N):\n if S[i] == \"c\":\n print(\"No\")\n elif S[i] == \"a\":\n \n if count < A+B:\n print(\"Yes\")\n count += 1\n else:\n print(\"No\")\n elif S[i] == \"b\":\n \n if count < A+B and count2 < B:\n print(\"Yes\")\n count += 1\n count2 += 1\n else:\n print(\"No\")", "N, A, B = map(int, input().split())", "N", "map(int, input().split())", "map", "int", "input().split()", "().split", "()", "input", "split", "A", "B", "S = input()", "S", "input()", "input", "count = 0", "count", "0", "count2 = 0", "count2", "0", "for i in range(N):\n if S[i] == \"c\":\n print(\"No\")\n elif S[i] == \"a\":\n \n if count < A+B:\n print(\"Yes\")\n count += 1\n else:\n print(\"No\")\n elif S[i] == \"b\":\n \n if count < A+B and count2 < B:\n print(\"Yes\")\n count += 1\n count2 += 1\n else:\n print(\"No\")", "i", "range(N)", "range", "N", "if S[i] == \"c\":\n print(\"No\")\n elif S[i] == \"a\":\n \n if count < A+B:\n print(\"Yes\")\n count += 1\n else:\n print(\"No\")\n elif S[i] == \"b\":\n \n if count < A+B and count2 < B:\n print(\"Yes\")\n count += 1\n count2 += 1\n else:\n print(\"No\")", "S[i] == \"c\"", "S[i]", "S", "i", "\"c\"", "print(\"No\")", "print", "\"No\"", "elif S[i] == \"a\":\n \n if count < A+B:\n print(\"Yes\")\n count += 1\n else:\n print(\"No\")\n ", "S[i] == \"a\"", "S[i]", "S", "i", "\"a\"", "if count < A+B:\n print(\"Yes\")\n count += 1\n else:\n print(\"No\")\n ", "count < A+B", "count", "A+B", "A", "B", "print(\"Yes\")", "print", "\"Yes\"", "count += 1", "count", "1", "print(\"No\")", "print", "\"No\"", "elif S[i] == \"b\":\n \n if count < A+B and count2 < B:\n print(\"Yes\")\n count += 1\n count2 += 1\n else:\n print(\"No\")", "S[i] == \"b\"", "S[i]", "S", "i", "\"b\"", "if count < A+B and count2 < B:\n print(\"Yes\")\n count += 1\n count2 += 1\n else:\n print(\"No\")", "count < A+B and count2 < B", "count < A+B", "count", "A+B", "A", "B", "count2 < B", "count2", "B", "print(\"Yes\")", "print", "\"Yes\"", "count += 1", "count", "1", "count2 += 1", "count2", "1", "print(\"No\")", "print", "\"No\"", "S = input()", "input()", "S", "count = 0", "0", "count", "count += 1", "1", "count", "A, B = map(int, input().split())", "map(int, input().split())", "A", "count2 = 0", "0", "count2", "count += 1", "1", "count", "count2 += 1", "1", "count2", "N, A, B = map(int, input().split())", "map(int, input().split())", "N", "B = map(int, input().split())", "map(int, input().split())", "B" ]
N, A, B = map(int, input().split()) S = input() count = 0 count2 = 0 for i in range(N): if S[i] == "c": print("No") elif S[i] == "a": if count < A+B: print("Yes") count += 1 else: print("No") elif S[i] == "b": if count < A+B and count2 < B: print("Yes") count += 1 count2 += 1 else: print("No")
[ 7, 0, 13, 4, 13, 13, 4, 18, 4, 13, 13, 13, 13, 0, 13, 4, 13, 0, 13, 17, 0, 13, 17, 28, 13, 4, 13, 13, 14, 2, 18, 13, 13, 17, 4, 13, 17, 14, 2, 18, 13, 13, 17, 14, 40, 13, 2, 13, 13, 4, 13, 17, 0, 13, 17, 4, 13, 17, 14, 2, 40, 13, 2, 13, 13, 40, 13, 13, 4, 13, 17, 0, 13, 17, 0, 13, 17, 4, 13, 17, 10, 17, 13, 10, 17, 13, 10, 17, 13, 10, 4, 13, 10, 4, 13, 10, 17, 13, 10, 4, 13, 10, 4, 13, 10, 17, 13 ]
[ [ 102, 2 ], [ 102, 11 ], [ 102, 12 ], [ 99, 14 ], [ 81, 18 ], [ 105, 21 ], [ 25, 24 ], [ 91, 27 ], [ 100, 31 ], [ 24, 32 ], [ 100, 40 ], [ 24, 41 ], [ 106, 45 ], [ 85, 45 ], [ 97, 45 ], [ 94, 47 ], [ 103, 48 ], [ 96, 53 ], [ 106, 61 ], [ 85, 61 ], [ 97, 61 ], [ 94, 63 ], [ 103, 64 ], [ 82, 66 ], [ 88, 66 ], [ 103, 67 ], [ 87, 72 ], [ 84, 75 ], [ 81, 82 ], [ 84, 85 ], [ 87, 88 ], [ 102, 91 ], [ 102, 94 ], [ 96, 97 ], [ 99, 100 ], [ 102, 103 ], [ 105, 106 ] ]
[ "N,A,B=map(int,input().split())\ns=input()\nkaigai=1\njyun=1\nfor i in range(N):\n if s[i]==\"c\":\n print(\"No\")\n elif s[i]==\"a\":\n if jyun<=A+B:\n print(\"Yes\")\n jyun+=1\n else:\n print(\"No\")\n else:\n if jyun<=A+B and kaigai<=B:\n print(\"Yes\")\n kaigai+=1\n jyun+=1\n else:\n print(\"No\")", "N,A,B=map(int,input().split())", "N", "map(int,input().split())", "map", "int", "input().split()", "().split", "()", "input", "split", "A", "B", "s=input()", "s", "input()", "input", "kaigai=1", "kaigai", "1", "jyun=1", "jyun", "1", "for i in range(N):\n if s[i]==\"c\":\n print(\"No\")\n elif s[i]==\"a\":\n if jyun<=A+B:\n print(\"Yes\")\n jyun+=1\n else:\n print(\"No\")\n else:\n if jyun<=A+B and kaigai<=B:\n print(\"Yes\")\n kaigai+=1\n jyun+=1\n else:\n print(\"No\")", "i", "range(N)", "range", "N", "if s[i]==\"c\":\n print(\"No\")\n elif s[i]==\"a\":\n if jyun<=A+B:\n print(\"Yes\")\n jyun+=1\n else:\n print(\"No\")\n else:\n if jyun<=A+B and kaigai<=B:\n print(\"Yes\")\n kaigai+=1\n jyun+=1\n else:\n print(\"No\")", "s[i]==\"c\"", "s[i]", "s", "i", "\"c\"", "print(\"No\")", "print", "\"No\"", "elif s[i]==\"a\":\n if jyun<=A+B:\n print(\"Yes\")\n jyun+=1\n else:\n print(\"No\")\n ", "s[i]==\"a\"", "s[i]", "s", "i", "\"a\"", "if jyun<=A+B:\n print(\"Yes\")\n jyun+=1\n else:\n print(\"No\")\n ", "jyun<=A+B", "jyun", "A+B", "A", "B", "print(\"Yes\")", "print", "\"Yes\"", "jyun+=1", "jyun", "1", "print(\"No\")", "print", "\"No\"", "if jyun<=A+B and kaigai<=B:\n print(\"Yes\")\n kaigai+=1\n jyun+=1\n else:\n print(\"No\")", "jyun<=A+B and kaigai<=B", "jyun<=A+B", "jyun", "A+B", "A", "B", "kaigai<=B", "kaigai", "B", "print(\"Yes\")", "print", "\"Yes\"", "kaigai+=1", "kaigai", "1", "jyun+=1", "jyun", "1", "print(\"No\")", "print", "\"No\"", "kaigai=1", "1", "kaigai", "jyun+=1", "1", "jyun", "kaigai+=1", "1", "kaigai", "N,A,B=map(int,input().split())", "map(int,input().split())", "N", "A,B=map(int,input().split())", "map(int,input().split())", "A", "jyun+=1", "1", "jyun", "s=input()", "input()", "s", "B=map(int,input().split())", "map(int,input().split())", "B", "jyun=1", "1", "jyun" ]
N,A,B=map(int,input().split()) s=input() kaigai=1 jyun=1 for i in range(N): if s[i]=="c": print("No") elif s[i]=="a": if jyun<=A+B: print("Yes") jyun+=1 else: print("No") else: if jyun<=A+B and kaigai<=B: print("Yes") kaigai+=1 jyun+=1 else: print("No")
[ 7, 0, 13, 4, 13, 13, 4, 18, 4, 13, 13, 13, 13, 0, 13, 4, 13, 0, 13, 2, 13, 13, 0, 13, 17, 13, 17, 28, 13, 13, 0, 13, 17, 14, 2, 13, 17, 14, 40, 13, 2, 13, 13, 0, 13, 17, 0, 13, 17, 14, 2, 13, 17, 14, 2, 40, 13, 2, 13, 13, 40, 13, 13, 0, 13, 17, 0, 13, 17, 0, 13, 17, 14, 13, 4, 13, 17, 4, 13, 17, 10, 17, 13, 10, 2, 13, 10, 17, 13, 10, 17, 13, 10, 17, 13, 10, 17, 13, 10, 4, 13, 10, 4, 13, 10, 4, 13, 10, 4, 13, 10, 17, 13, 10, 17, 13, 10, 17, 13 ]
[ [ 108, 2 ], [ 108, 11 ], [ 108, 12 ], [ 102, 14 ], [ 84, 18 ], [ 109, 20 ], [ 106, 21 ], [ 114, 23 ], [ 87, 25 ], [ 29, 28 ], [ 103, 28 ], [ 117, 31 ], [ 28, 35 ], [ 115, 39 ], [ 97, 39 ], [ 112, 39 ], [ 109, 41 ], [ 106, 42 ], [ 93, 44 ], [ 111, 47 ], [ 28, 51 ], [ 115, 56 ], [ 97, 56 ], [ 112, 56 ], [ 109, 58 ], [ 106, 59 ], [ 88, 61 ], [ 91, 61 ], [ 106, 62 ], [ 81, 64 ], [ 96, 67 ], [ 90, 70 ], [ 81, 82 ], [ 84, 85 ], [ 87, 88 ], [ 90, 91 ], [ 93, 94 ], [ 96, 97 ], [ 108, 100 ], [ 102, 103 ], [ 108, 106 ], [ 108, 109 ], [ 111, 112 ], [ 114, 115 ], [ 117, 118 ] ]
[ "n, a, b = map(int,input().split())\ns = input()\n\nborder = a + b\ni, j = 1, 1\nfor p in s:\n flag = False\n if p == \"a\":\n if i <= a + b:\n flag = True\n i += 1\n elif p == \"b\":\n if i <= a + b and j <= b:\n flag = True\n i += 1\n j += 1\n if flag:\n print(\"Yes\")\n else:\n print(\"No\")", "n, a, b = map(int,input().split())", "n", "map(int,input().split())", "map", "int", "input().split()", "().split", "()", "input", "split", "a", "b", "s = input()", "s", "input()", "input", "border = a + b", "border", "a + b", "a", "b", "i, j = 1, 1", "i", "1", "j", "1", "for p in s:\n flag = False\n if p == \"a\":\n if i <= a + b:\n flag = True\n i += 1\n elif p == \"b\":\n if i <= a + b and j <= b:\n flag = True\n i += 1\n j += 1\n if flag:\n print(\"Yes\")\n else:\n print(\"No\")", "p", "s", "flag = False", "flag", "False", "if p == \"a\":\n if i <= a + b:\n flag = True\n i += 1\n elif p == \"b\":\n if i <= a + b and j <= b:\n flag = True\n i += 1\n j += 1\n ", "p == \"a\"", "p", "\"a\"", "if i <= a + b:\n flag = True\n i += 1\n ", "i <= a + b", "i", "a + b", "a", "b", "flag = True", "flag", "True", "i += 1", "i", "1", "elif p == \"b\":\n if i <= a + b and j <= b:\n flag = True\n i += 1\n j += 1\n ", "p == \"b\"", "p", "\"b\"", "if i <= a + b and j <= b:\n flag = True\n i += 1\n j += 1\n ", "i <= a + b and j <= b", "i <= a + b", "i", "a + b", "a", "b", "j <= b", "j", "b", "flag = True", "flag", "True", "i += 1", "i", "1", "j += 1", "j", "1", "if flag:\n print(\"Yes\")\n else:\n print(\"No\")", "flag", "print(\"Yes\")", "print", "\"Yes\"", "print(\"No\")", "print", "\"No\"", "flag = True", "True", "flag", "border = a + b", "a + b", "border", "j = 1, 1", "1", "j", "j += 1", "1", "j", "flag = True", "True", "flag", "i += 1", "1", "i", "n, a, b = map(int,input().split())", "map(int,input().split())", "n", "s = input()", "input()", "s", "b = map(int,input().split())", "map(int,input().split())", "b", "a, b = map(int,input().split())", "map(int,input().split())", "a", "i += 1", "1", "i", "i, j = 1, 1", "1", "i", "flag = False", "False", "flag" ]
n, a, b = map(int,input().split()) s = input() border = a + b i, j = 1, 1 for p in s: flag = False if p == "a": if i <= a + b: flag = True i += 1 elif p == "b": if i <= a + b and j <= b: flag = True i += 1 j += 1 if flag: print("Yes") else: print("No")
[ 7, 12, 13, 41, 28, 13, 4, 13, 13, 4, 17, 0, 13, 13, 0, 13, 17, 13, 17, 28, 13, 13, 4, 13, 13, 14, 2, 2, 13, 17, 2, 13, 2, 13, 13, 0, 13, 17, 0, 18, 13, 13, 17, 14, 2, 2, 2, 13, 17, 2, 13, 2, 13, 13, 2, 13, 13, 0, 13, 17, 0, 13, 17, 0, 18, 13, 13, 17, 0, 18, 13, 13, 17, 29, 13, 23, 13, 23, 13, 23, 13, 23, 13, 14, 2, 13, 17, 0, 13, 4, 13, 13, 4, 18, 4, 13, 13, 13, 13, 0, 13, 4, 13, 0, 13, 4, 13, 13, 13, 13, 13, 28, 13, 13, 4, 13, 13, 10, 4, 13, 10, 12, 13, 10, 4, 13, 10, 4, 13, 10, 4, 13, 10, 4, 13 ]
[ [ 6, 5 ], [ 76, 8 ], [ 13, 12 ], [ 16, 15 ], [ 18, 17 ], [ 82, 24 ], [ 15, 31 ], [ 58, 31 ], [ 36, 31 ], [ 78, 33 ], [ 80, 34 ], [ 37, 36 ], [ 42, 39 ], [ 12, 40 ], [ 15, 50 ], [ 58, 50 ], [ 36, 50 ], [ 78, 52 ], [ 80, 53 ], [ 17, 55 ], [ 61, 55 ], [ 80, 56 ], [ 59, 58 ], [ 62, 61 ], [ 67, 64 ], [ 12, 65 ], [ 72, 69 ], [ 12, 70 ], [ 12, 74 ], [ 76, 76 ], [ 78, 78 ], [ 80, 80 ], [ 82, 82 ], [ 127, 88 ], [ 127, 97 ], [ 127, 98 ], [ 133, 100 ], [ 130, 104 ], [ 122, 106 ], [ 119, 107 ], [ 125, 108 ], [ 128, 109 ], [ 134, 110 ], [ 113, 112 ], [ 131, 112 ], [ 112, 116 ], [ 127, 119 ], [ 127, 125 ], [ 127, 128 ], [ 130, 131 ], [ 133, 134 ] ]
[ "def main(N, A, B ,S):\n status = [None for _ in range(N)]\n c_all, c_for = 0, 0\n for i, s in enumerate(S):\n if s == 'a' and c_all < A + B:\n c_all += 1\n status[i] = 'Yes'\n elif s == 'b' and c_all < A + B and c_for < B:\n c_all += 1\n c_for += 1\n status[i] = 'Yes'\n else:\n status[i] = 'No'\n return status\n\n\nif __name__ == \"__main__\":\n N, A, B = map(int, input().split())\n S = input()\n ans = main(N, A, B, S)\n for i in ans:\n print(i)", "def main(N, A, B ,S):\n status = [None for _ in range(N)]\n c_all, c_for = 0, 0\n for i, s in enumerate(S):\n if s == 'a' and c_all < A + B:\n c_all += 1\n status[i] = 'Yes'\n elif s == 'b' and c_all < A + B and c_for < B:\n c_all += 1\n c_for += 1\n status[i] = 'Yes'\n else:\n status[i] = 'No'\n return status", "main", "None for _ in range(N)", "for _ in range(N)", "_", "range(N)", "range", "N", "for _ in range(N)", "None", "status = [None for _ in range(N)]", "status", "[None for _ in range(N)]", "c_all, c_for = 0, 0", "c_all", "0", "c_for", "0", "for i, s in enumerate(S):\n if s == 'a' and c_all < A + B:\n c_all += 1\n status[i] = 'Yes'\n elif s == 'b' and c_all < A + B and c_for < B:\n c_all += 1\n c_for += 1\n status[i] = 'Yes'\n else:\n status[i] = 'No'\n ", "i", "s", "enumerate(S)", "enumerate", "S", "if s == 'a' and c_all < A + B:\n c_all += 1\n status[i] = 'Yes'\n elif s == 'b' and c_all < A + B and c_for < B:\n c_all += 1\n c_for += 1\n status[i] = 'Yes'\n else:\n status[i] = 'No'\n ", "s == 'a' and c_all < A + B", "s == 'a'", "s", "'a'", "c_all < A + B", "c_all", "A + B", "A", "B", "c_all += 1", "c_all", "1", "status[i] = 'Yes'", "status[i]", "status", "i", "'Yes'", "elif s == 'b' and c_all < A + B and c_for < B:\n c_all += 1\n c_for += 1\n status[i] = 'Yes'\n ", "s == 'b' and c_all < A + B and c_for < B", "s == 'b' and c_all < A + B", "s == 'b'", "s", "'b'", "c_all < A + B", "c_all", "A + B", "A", "B", "c_for < B", "c_for", "B", "c_all += 1", "c_all", "1", "c_for += 1", "c_for", "1", "status[i] = 'Yes'", "status[i]", "status", "i", "'Yes'", "status[i] = 'No'", "status[i]", "status", "i", "'No'", "return status", "status", "N", "N", "A", "A", "B", "B", "S", "S", "if __name__ == \"__main__\":\n N, A, B = map(int, input().split())\n S = input()\n ans = main(N, A, B, S)\n for i in ans:\n print(i)", "__name__ == \"__main__\"", "__name__", "\"__main__\"", "N, A, B = map(int, input().split())", "N", "map(int, input().split())", "map", "int", "input().split()", "().split", "()", "input", "split", "A", "B", "S = input()", "S", "input()", "input", "ans = main(N, A, B, S)", "ans", "main(N, A, B, S)", "main", "N", "A", "B", "S", "for i in ans:\n print(i)", "i", "ans", "print(i)", "print", "i", "N, A, B = map(int, input().split())", "map(int, input().split())", "N", "def main(N, A, B ,S):\n status = [None for _ in range(N)]\n c_all, c_for = 0, 0\n for i, s in enumerate(S):\n if s == 'a' and c_all < A + B:\n c_all += 1\n status[i] = 'Yes'\n elif s == 'b' and c_all < A + B and c_for < B:\n c_all += 1\n c_for += 1\n status[i] = 'Yes'\n else:\n status[i] = 'No'\n return status", "def main(N, A, B ,S):\n status = [None for _ in range(N)]\n c_all, c_for = 0, 0\n for i, s in enumerate(S):\n if s == 'a' and c_all < A + B:\n c_all += 1\n status[i] = 'Yes'\n elif s == 'b' and c_all < A + B and c_for < B:\n c_all += 1\n c_for += 1\n status[i] = 'Yes'\n else:\n status[i] = 'No'\n return status", "main", "A, B = map(int, input().split())", "map(int, input().split())", "A", "B = map(int, input().split())", "map(int, input().split())", "B", "ans = main(N, A, B, S)", "main(N, A, B, S)", "ans", "S = input()", "input()", "S" ]
def main(N, A, B ,S): status = [None for _ in range(N)] c_all, c_for = 0, 0 for i, s in enumerate(S): if s == 'a' and c_all < A + B: c_all += 1 status[i] = 'Yes' elif s == 'b' and c_all < A + B and c_for < B: c_all += 1 c_for += 1 status[i] = 'Yes' else: status[i] = 'No' return status if __name__ == "__main__": N, A, B = map(int, input().split()) S = input() ans = main(N, A, B, S) for i in ans: print(i)
[ 7, 0, 13, 4, 13, 13, 4, 18, 4, 13, 13, 13, 13, 0, 13, 4, 13, 0, 13, 2, 13, 13, 0, 13, 13, 0, 13, 17, 0, 13, 17, 28, 13, 4, 13, 13, 14, 2, 18, 13, 13, 17, 4, 13, 17, 14, 2, 18, 13, 13, 17, 14, 2, 2, 13, 13, 2, 13, 13, 4, 13, 17, 0, 13, 17, 0, 13, 17, 14, 2, 13, 13, 4, 13, 17, 4, 13, 17, 14, 2, 13, 13, 4, 13, 17, 4, 13, 17, 0, 13, 17, 10, 4, 13, 10, 17, 13, 10, 17, 13, 10, 17, 13, 10, 13, 13, 10, 4, 13, 10, 2, 13, 10, 17, 13, 10, 4, 13, 10, 17, 13, 10, 4, 13 ]
[ [ 122, 2 ], [ 122, 11 ], [ 122, 12 ], [ 92, 14 ], [ 110, 18 ], [ 117, 20 ], [ 123, 21 ], [ 104, 23 ], [ 123, 24 ], [ 113, 26 ], [ 95, 29 ], [ 33, 32 ], [ 108, 35 ], [ 93, 39 ], [ 32, 40 ], [ 93, 48 ], [ 32, 49 ], [ 96, 54 ], [ 102, 54 ], [ 105, 55 ], [ 114, 57 ], [ 120, 57 ], [ 99, 57 ], [ 111, 58 ], [ 98, 63 ], [ 101, 66 ], [ 114, 70 ], [ 120, 70 ], [ 99, 70 ], [ 111, 71 ], [ 114, 80 ], [ 120, 80 ], [ 99, 80 ], [ 111, 81 ], [ 119, 89 ], [ 92, 93 ], [ 95, 96 ], [ 98, 99 ], [ 101, 102 ], [ 123, 104 ], [ 104, 105 ], [ 122, 108 ], [ 110, 111 ], [ 113, 114 ], [ 122, 117 ], [ 119, 120 ], [ 122, 123 ] ]
[ "n,a,b = map(int,input().split())\ns = input()\nmaxa = a+b\nmaxb = b\ncounta = 0\ncountb = 0\nfor i in range(n):\n if s[i] == 'c':\n print(\"No\")\n elif s[i] == 'b':\n if countb < maxb and counta < maxa:\n print(\"Yes\")\n counta += 1\n countb += 1\n elif counta < maxa:\n print(\"No\")\n else:\n print(\"No\")\n else:\n if counta < maxa:\n print(\"Yes\")\n else:\n print(\"No\")\n counta+=1", "n,a,b = map(int,input().split())", "n", "map(int,input().split())", "map", "int", "input().split()", "().split", "()", "input", "split", "a", "b", "s = input()", "s", "input()", "input", "maxa = a+b", "maxa", "a+b", "a", "b", "maxb = b", "maxb", "b", "counta = 0", "counta", "0", "countb = 0", "countb", "0", "for i in range(n):\n if s[i] == 'c':\n print(\"No\")\n elif s[i] == 'b':\n if countb < maxb and counta < maxa:\n print(\"Yes\")\n counta += 1\n countb += 1\n elif counta < maxa:\n print(\"No\")\n else:\n print(\"No\")\n else:\n if counta < maxa:\n print(\"Yes\")\n else:\n print(\"No\")\n counta+=1", "i", "range(n)", "range", "n", "if s[i] == 'c':\n print(\"No\")\n elif s[i] == 'b':\n if countb < maxb and counta < maxa:\n print(\"Yes\")\n counta += 1\n countb += 1\n elif counta < maxa:\n print(\"No\")\n else:\n print(\"No\")\n else:\n if counta < maxa:\n print(\"Yes\")\n else:\n print(\"No\")\n counta+=1", "s[i] == 'c'", "s[i]", "s", "i", "'c'", "print(\"No\")", "print", "\"No\"", "elif s[i] == 'b':\n if countb < maxb and counta < maxa:\n print(\"Yes\")\n counta += 1\n countb += 1\n elif counta < maxa:\n print(\"No\")\n else:\n print(\"No\")\n ", "s[i] == 'b'", "s[i]", "s", "i", "'b'", "if countb < maxb and counta < maxa:\n print(\"Yes\")\n counta += 1\n countb += 1\n elif counta < maxa:\n print(\"No\")\n else:\n print(\"No\")\n ", "countb < maxb and counta < maxa", "countb < maxb", "countb", "maxb", "counta < maxa", "counta", "maxa", "print(\"Yes\")", "print", "\"Yes\"", "counta += 1", "counta", "1", "countb += 1", "countb", "1", "elif counta < maxa:\n print(\"No\")\n ", "counta < maxa", "counta", "maxa", "print(\"No\")", "print", "\"No\"", "print(\"No\")", "print", "\"No\"", "if counta < maxa:\n print(\"Yes\")\n else:\n print(\"No\")\n ", "counta < maxa", "counta", "maxa", "print(\"Yes\")", "print", "\"Yes\"", "print(\"No\")", "print", "\"No\"", "counta+=1", "counta", "1", "s = input()", "input()", "s", "countb = 0", "0", "countb", "counta += 1", "1", "counta", "countb += 1", "1", "countb", "maxb = b", "b", "maxb", "n,a,b = map(int,input().split())", "map(int,input().split())", "n", "maxa = a+b", "a+b", "maxa", "counta = 0", "0", "counta", "a,b = map(int,input().split())", "map(int,input().split())", "a", "counta+=1", "1", "counta", "b = map(int,input().split())", "map(int,input().split())", "b" ]
n,a,b = map(int,input().split()) s = input() maxa = a+b maxb = b counta = 0 countb = 0 for i in range(n): if s[i] == 'c': print("No") elif s[i] == 'b': if countb < maxb and counta < maxa: print("Yes") counta += 1 countb += 1 elif counta < maxa: print("No") else: print("No") else: if counta < maxa: print("Yes") else: print("No") counta+=1
[ 7, 12, 13, 17, 41, 28, 13, 4, 18, 4, 13, 13, 4, 4, 13, 13, 0, 13, 13, 13, 13, 0, 13, 4, 13, 0, 13, 17, 0, 13, 17, 28, 13, 4, 13, 13, 0, 13, 18, 13, 13, 14, 2, 13, 17, 14, 2, 13, 2, 13, 13, 0, 13, 17, 4, 13, 17, 4, 13, 17, 14, 2, 13, 17, 14, 2, 2, 13, 2, 13, 13, 2, 13, 13, 0, 13, 17, 0, 13, 17, 4, 13, 17, 4, 13, 17, 4, 13, 17, 14, 2, 13, 17, 4, 13, 10, 12, 13 ]
[ [ 7, 6 ], [ 6, 15 ], [ 18, 17 ], [ 18, 19 ], [ 18, 20 ], [ 23, 22 ], [ 27, 26 ], [ 30, 29 ], [ 33, 32 ], [ 17, 35 ], [ 38, 37 ], [ 22, 39 ], [ 32, 40 ], [ 37, 43 ], [ 26, 47 ], [ 78, 47 ], [ 52, 47 ], [ 19, 49 ], [ 20, 50 ], [ 53, 52 ], [ 37, 62 ], [ 26, 67 ], [ 78, 67 ], [ 52, 67 ], [ 19, 69 ], [ 20, 70 ], [ 29, 72 ], [ 75, 72 ], [ 20, 73 ], [ 76, 75 ], [ 79, 78 ], [ 97, 94 ] ]
[ "def resolve():\n '''\n code here\n https://atcoder.jp/contests/code-festival-2016-qualb/tasks/codefestival_2016_qualB_b\n '''\n N, A, B = [int(item) for item in input().split()]\n S = input()\n d = 0\n c = 0\n for i in range(N):\n temp = S[i]\n if temp == 'a':\n if d < A+B:\n d += 1\n print('Yes')\n else:\n print('No')\n elif temp == 'b':\n if d < A+B and c < B:\n c +=1\n d += 1\n print('Yes')\n else:\n print('No')\n else:\n print('No')\n\nif __name__ == \"__main__\":\n resolve()", "def resolve():\n '''\n code here\n https://atcoder.jp/contests/code-festival-2016-qualb/tasks/codefestival_2016_qualB_b\n '''\n N, A, B = [int(item) for item in input().split()]\n S = input()\n d = 0\n c = 0\n for i in range(N):\n temp = S[i]\n if temp == 'a':\n if d < A+B:\n d += 1\n print('Yes')\n else:\n print('No')\n elif temp == 'b':\n if d < A+B and c < B:\n c +=1\n d += 1\n print('Yes')\n else:\n print('No')\n else:\n print('No')", "resolve", "'''\n code here\n https://atcoder.jp/contests/code-festival-2016-qualb/tasks/codefestival_2016_qualB_b\n '''", "int(item) for item in input().split()", "for item in input().split()", "item", "input().split()", "().split", "()", "input", "split", "for item in input().split()", "int(item)", "int", "item", "N, A, B = [int(item) for item in input().split()]", "N", "[int(item) for item in input().split()]", "A", "B", "S = input()", "S", "input()", "input", "d = 0", "d", "0", "c = 0", "c", "0", "for i in range(N):\n temp = S[i]\n if temp == 'a':\n if d < A+B:\n d += 1\n print('Yes')\n else:\n print('No')\n elif temp == 'b':\n if d < A+B and c < B:\n c +=1\n d += 1\n print('Yes')\n else:\n print('No')\n else:\n print('No')", "i", "range(N)", "range", "N", "temp = S[i]", "temp", "S[i]", "S", "i", "if temp == 'a':\n if d < A+B:\n d += 1\n print('Yes')\n else:\n print('No')\n elif temp == 'b':\n if d < A+B and c < B:\n c +=1\n d += 1\n print('Yes')\n else:\n print('No')\n else:\n print('No')", "temp == 'a'", "temp", "'a'", "if d < A+B:\n d += 1\n print('Yes')\n else:\n print('No')\n ", "d < A+B", "d", "A+B", "A", "B", "d += 1", "d", "1", "print('Yes')", "print", "'Yes'", "print('No')", "print", "'No'", "elif temp == 'b':\n if d < A+B and c < B:\n c +=1\n d += 1\n print('Yes')\n else:\n print('No')\n ", "temp == 'b'", "temp", "'b'", "if d < A+B and c < B:\n c +=1\n d += 1\n print('Yes')\n else:\n print('No')\n ", "d < A+B and c < B", "d < A+B", "d", "A+B", "A", "B", "c < B", "c", "B", "c +=1", "c", "1", "d += 1", "d", "1", "print('Yes')", "print", "'Yes'", "print('No')", "print", "'No'", "print('No')", "print", "'No'", "if __name__ == \"__main__\":\n resolve()", "__name__ == \"__main__\"", "__name__", "\"__main__\"", "resolve()", "resolve", "def resolve():\n '''\n code here\n https://atcoder.jp/contests/code-festival-2016-qualb/tasks/codefestival_2016_qualB_b\n '''\n N, A, B = [int(item) for item in input().split()]\n S = input()\n d = 0\n c = 0\n for i in range(N):\n temp = S[i]\n if temp == 'a':\n if d < A+B:\n d += 1\n print('Yes')\n else:\n print('No')\n elif temp == 'b':\n if d < A+B and c < B:\n c +=1\n d += 1\n print('Yes')\n else:\n print('No')\n else:\n print('No')", "def resolve():\n '''\n code here\n https://atcoder.jp/contests/code-festival-2016-qualb/tasks/codefestival_2016_qualB_b\n '''\n N, A, B = [int(item) for item in input().split()]\n S = input()\n d = 0\n c = 0\n for i in range(N):\n temp = S[i]\n if temp == 'a':\n if d < A+B:\n d += 1\n print('Yes')\n else:\n print('No')\n elif temp == 'b':\n if d < A+B and c < B:\n c +=1\n d += 1\n print('Yes')\n else:\n print('No')\n else:\n print('No')", "resolve" ]
def resolve(): ''' code here https://atcoder.jp/contests/code-festival-2016-qualb/tasks/codefestival_2016_qualB_b ''' N, A, B = [int(item) for item in input().split()] S = input() d = 0 c = 0 for i in range(N): temp = S[i] if temp == 'a': if d < A+B: d += 1 print('Yes') else: print('No') elif temp == 'b': if d < A+B and c < B: c +=1 d += 1 print('Yes') else: print('No') else: print('No') if __name__ == "__main__": resolve()
[ 7, 41, 28, 13, 4, 18, 4, 13, 13, 4, 4, 13, 13, 0, 13, 13, 13, 13, 0, 13, 2, 13, 13, 0, 13, 17, 0, 13, 17, 0, 13, 4, 13, 28, 13, 13, 14, 40, 13, 13, 4, 13, 17, 9, 14, 2, 13, 17, 4, 13, 17, 0, 13, 17, 14, 2, 2, 13, 17, 2, 13, 13, 4, 13, 17, 0, 13, 17, 0, 13, 17, 4, 13, 17, 10, 13, 13, 10, 17, 13, 10, 13, 13, 10, 4, 13, 10, 17, 13, 10, 2, 13, 10, 17, 13, 10, 13, 13, 10, 17, 13, 10, 17, 13 ]
[ [ 4, 3 ], [ 3, 12 ], [ 96, 14 ], [ 96, 16 ], [ 96, 17 ], [ 90, 19 ], [ 97, 21 ], [ 82, 22 ], [ 78, 24 ], [ 87, 27 ], [ 84, 30 ], [ 35, 34 ], [ 85, 34 ], [ 88, 38 ], [ 100, 38 ], [ 94, 38 ], [ 91, 39 ], [ 34, 46 ], [ 93, 52 ], [ 34, 57 ], [ 79, 60 ], [ 103, 60 ], [ 82, 61 ], [ 99, 66 ], [ 102, 69 ], [ 96, 76 ], [ 78, 79 ], [ 96, 82 ], [ 84, 85 ], [ 87, 88 ], [ 90, 91 ], [ 93, 94 ], [ 96, 97 ], [ 99, 100 ], [ 102, 103 ] ]
[ "n, a, b = [int(i) for i in input().split()]\nborder = a + b\nforeign_pass = 0\npassed = 0\ns = input()\nfor x in s:\n if passed >= border:\n print('No')\n continue\n if x == 'a':\n print('Yes')\n passed += 1\n elif x == 'b' and foreign_pass < b:\n print('Yes')\n passed += 1\n foreign_pass += 1\n else:\n print('No')", "int(i) for i in input().split()", "for i in input().split()", "i", "input().split()", "().split", "()", "input", "split", "for i in input().split()", "int(i)", "int", "i", "n, a, b = [int(i) for i in input().split()]", "n", "[int(i) for i in input().split()]", "a", "b", "border = a + b", "border", "a + b", "a", "b", "foreign_pass = 0", "foreign_pass", "0", "passed = 0", "passed", "0", "s = input()", "s", "input()", "input", "for x in s:\n if passed >= border:\n print('No')\n continue\n if x == 'a':\n print('Yes')\n passed += 1\n elif x == 'b' and foreign_pass < b:\n print('Yes')\n passed += 1\n foreign_pass += 1\n else:\n print('No')", "x", "s", "if passed >= border:\n print('No')\n continue\n ", "passed >= border", "passed", "border", "print('No')", "print", "'No'", "continue", "if x == 'a':\n print('Yes')\n passed += 1\n elif x == 'b' and foreign_pass < b:\n print('Yes')\n passed += 1\n foreign_pass += 1\n else:\n print('No')", "x == 'a'", "x", "'a'", "print('Yes')", "print", "'Yes'", "passed += 1", "passed", "1", "elif x == 'b' and foreign_pass < b:\n print('Yes')\n passed += 1\n foreign_pass += 1\n ", "x == 'b' and foreign_pass < b", "x == 'b'", "x", "'b'", "foreign_pass < b", "foreign_pass", "b", "print('Yes')", "print", "'Yes'", "passed += 1", "passed", "1", "foreign_pass += 1", "foreign_pass", "1", "print('No')", "print", "'No'", "n, a, b = [int(i) for i in input().split()]", "[int(i) for i in input().split()]", "n", "foreign_pass = 0", "0", "foreign_pass", "b = [int(i) for i in input().split()]", "[int(i) for i in input().split()]", "b", "s = input()", "input()", "s", "passed = 0", "0", "passed", "border = a + b", "a + b", "border", "passed += 1", "1", "passed", "a, b = [int(i) for i in input().split()]", "[int(i) for i in input().split()]", "a", "passed += 1", "1", "passed", "foreign_pass += 1", "1", "foreign_pass" ]
n, a, b = [int(i) for i in input().split()] border = a + b foreign_pass = 0 passed = 0 s = input() for x in s: if passed >= border: print('No') continue if x == 'a': print('Yes') passed += 1 elif x == 'b' and foreign_pass < b: print('Yes') passed += 1 foreign_pass += 1 else: print('No')
[ 7, 12, 13, 0, 13, 17, 0, 13, 17, 0, 13, 17, 0, 13, 17, 0, 13, 2, 13, 13, 0, 13, 39, 28, 13, 13, 14, 2, 13, 17, 4, 18, 13, 13, 17, 14, 2, 13, 17, 14, 2, 13, 2, 13, 13, 0, 13, 17, 4, 18, 13, 13, 17, 0, 13, 17, 4, 18, 13, 13, 17, 14, 2, 2, 13, 2, 13, 13, 2, 13, 13, 0, 13, 17, 0, 13, 17, 4, 18, 13, 13, 17, 0, 13, 17, 4, 18, 13, 13, 17, 29, 13, 23, 13, 23, 13, 23, 13, 0, 13, 4, 13, 13, 4, 18, 4, 13, 13, 13, 13, 0, 13, 4, 13, 0, 13, 4, 13, 13, 13, 13, 28, 13, 13, 4, 13, 13, 10, 4, 13, 10, 4, 13, 10, 12, 13, 10, 4, 13, 10, 4, 13, 10, 4, 13 ]
[ [ 5, 4 ], [ 8, 7 ], [ 11, 10 ], [ 14, 13 ], [ 17, 16 ], [ 95, 18 ], [ 97, 19 ], [ 22, 21 ], [ 25, 24 ], [ 93, 24 ], [ 24, 28 ], [ 21, 32 ], [ 24, 37 ], [ 10, 41 ], [ 54, 41 ], [ 4, 43 ], [ 72, 43 ], [ 46, 43 ], [ 16, 44 ], [ 47, 46 ], [ 21, 50 ], [ 55, 54 ], [ 21, 58 ], [ 13, 64 ], [ 83, 64 ], [ 4, 66 ], [ 72, 66 ], [ 46, 66 ], [ 16, 67 ], [ 7, 69 ], [ 75, 69 ], [ 97, 70 ], [ 73, 72 ], [ 76, 75 ], [ 21, 79 ], [ 84, 83 ], [ 21, 87 ], [ 21, 91 ], [ 93, 93 ], [ 95, 95 ], [ 97, 97 ], [ 143, 99 ], [ 143, 108 ], [ 143, 109 ], [ 131, 111 ], [ 128, 115 ], [ 135, 117 ], [ 132, 118 ], [ 138, 119 ], [ 141, 120 ], [ 123, 122 ], [ 129, 122 ], [ 122, 126 ], [ 128, 129 ], [ 131, 132 ], [ 143, 138 ], [ 143, 141 ], [ 143, 144 ] ]
[ "def qsimulator(s, a, b):\n\tpaas = 0\n\tbpaas = 0\n\taflg = True\n\tbflg = True\n\ttotal = a + b\n\tres = []\n\tfor i in s:\n\t\tif i == 'c':\n\t\t\tres.append(\"No\")\n\t\telif i == 'a':\n\t\t\tif aflg and paas < total:\n\t\t\t\tpaas += 1\n\t\t\t\tres.append(\"Yes\")\n\t\t\telse:\n\t\t\t\taflg = False\n\t\t\t\tres.append(\"No\")\n\t\telse:\n\t\t\tif bflg and paas < total and bpaas < b:\n\t\t\t\tpaas += 1\n\t\t\t\tbpaas += 1\n\t\t\t\tres.append(\"Yes\")\n\t\t\telse:\n\t\t\t\tbflg = False\n\t\t\t\tres.append(\"No\")\n\treturn res\nn, a, b = map(int, input().split())\ns = input()\nans = qsimulator(s, a, b)\nfor i in ans:\n\tprint(i)", "def qsimulator(s, a, b):\n\tpaas = 0\n\tbpaas = 0\n\taflg = True\n\tbflg = True\n\ttotal = a + b\n\tres = []\n\tfor i in s:\n\t\tif i == 'c':\n\t\t\tres.append(\"No\")\n\t\telif i == 'a':\n\t\t\tif aflg and paas < total:\n\t\t\t\tpaas += 1\n\t\t\t\tres.append(\"Yes\")\n\t\t\telse:\n\t\t\t\taflg = False\n\t\t\t\tres.append(\"No\")\n\t\telse:\n\t\t\tif bflg and paas < total and bpaas < b:\n\t\t\t\tpaas += 1\n\t\t\t\tbpaas += 1\n\t\t\t\tres.append(\"Yes\")\n\t\t\telse:\n\t\t\t\tbflg = False\n\t\t\t\tres.append(\"No\")\n\treturn res", "qsimulator", "paas = 0", "paas", "0", "bpaas = 0", "bpaas", "0", "aflg = True", "aflg", "True", "bflg = True", "bflg", "True", "total = a + b", "total", "a + b", "a", "b", "res = []", "res", "[]", "for i in s:\n\t\tif i == 'c':\n\t\t\tres.append(\"No\")\n\t\telif i == 'a':\n\t\t\tif aflg and paas < total:\n\t\t\t\tpaas += 1\n\t\t\t\tres.append(\"Yes\")\n\t\t\telse:\n\t\t\t\taflg = False\n\t\t\t\tres.append(\"No\")\n\t\telse:\n\t\t\tif bflg and paas < total and bpaas < b:\n\t\t\t\tpaas += 1\n\t\t\t\tbpaas += 1\n\t\t\t\tres.append(\"Yes\")\n\t\t\telse:\n\t\t\t\tbflg = False\n\t\t\t\tres.append(\"No\")\n\t", "i", "s", "if i == 'c':\n\t\t\tres.append(\"No\")\n\t\telif i == 'a':\n\t\t\tif aflg and paas < total:\n\t\t\t\tpaas += 1\n\t\t\t\tres.append(\"Yes\")\n\t\t\telse:\n\t\t\t\taflg = False\n\t\t\t\tres.append(\"No\")\n\t\telse:\n\t\t\tif bflg and paas < total and bpaas < b:\n\t\t\t\tpaas += 1\n\t\t\t\tbpaas += 1\n\t\t\t\tres.append(\"Yes\")\n\t\t\telse:\n\t\t\t\tbflg = False\n\t\t\t\tres.append(\"No\")\n\t", "i == 'c'", "i", "'c'", "res.append(\"No\")", "res.append", "res", "append", "\"No\"", "elif i == 'a':\n\t\t\tif aflg and paas < total:\n\t\t\t\tpaas += 1\n\t\t\t\tres.append(\"Yes\")\n\t\t\telse:\n\t\t\t\taflg = False\n\t\t\t\tres.append(\"No\")\n\t\t", "i == 'a'", "i", "'a'", "if aflg and paas < total:\n\t\t\t\tpaas += 1\n\t\t\t\tres.append(\"Yes\")\n\t\t\telse:\n\t\t\t\taflg = False\n\t\t\t\tres.append(\"No\")\n\t\t", "aflg and paas < total", "aflg", "paas < total", "paas", "total", "paas += 1", "paas", "1", "res.append(\"Yes\")", "res.append", "res", "append", "\"Yes\"", "aflg = False", "aflg", "False", "res.append(\"No\")", "res.append", "res", "append", "\"No\"", "if bflg and paas < total and bpaas < b:\n\t\t\t\tpaas += 1\n\t\t\t\tbpaas += 1\n\t\t\t\tres.append(\"Yes\")\n\t\t\telse:\n\t\t\t\tbflg = False\n\t\t\t\tres.append(\"No\")\n\t", "bflg and paas < total and bpaas < b", "bflg and paas < total", "bflg", "paas < total", "paas", "total", "bpaas < b", "bpaas", "b", "paas += 1", "paas", "1", "bpaas += 1", "bpaas", "1", "res.append(\"Yes\")", "res.append", "res", "append", "\"Yes\"", "bflg = False", "bflg", "False", "res.append(\"No\")", "res.append", "res", "append", "\"No\"", "return res", "res", "s", "s", "a", "a", "b", "b", "n, a, b = map(int, input().split())", "n", "map(int, input().split())", "map", "int", "input().split()", "().split", "()", "input", "split", "a", "b", "s = input()", "s", "input()", "input", "ans = qsimulator(s, a, b)", "ans", "qsimulator(s, a, b)", "qsimulator", "s", "a", "b", "for i in ans:\n\tprint(i)", "i", "ans", "print(i)", "print", "i", "ans = qsimulator(s, a, b)", "qsimulator(s, a, b)", "ans", "s = input()", "input()", "s", "def qsimulator(s, a, b):\n\tpaas = 0\n\tbpaas = 0\n\taflg = True\n\tbflg = True\n\ttotal = a + b\n\tres = []\n\tfor i in s:\n\t\tif i == 'c':\n\t\t\tres.append(\"No\")\n\t\telif i == 'a':\n\t\t\tif aflg and paas < total:\n\t\t\t\tpaas += 1\n\t\t\t\tres.append(\"Yes\")\n\t\t\telse:\n\t\t\t\taflg = False\n\t\t\t\tres.append(\"No\")\n\t\telse:\n\t\t\tif bflg and paas < total and bpaas < b:\n\t\t\t\tpaas += 1\n\t\t\t\tbpaas += 1\n\t\t\t\tres.append(\"Yes\")\n\t\t\telse:\n\t\t\t\tbflg = False\n\t\t\t\tres.append(\"No\")\n\treturn res", "def qsimulator(s, a, b):\n\tpaas = 0\n\tbpaas = 0\n\taflg = True\n\tbflg = True\n\ttotal = a + b\n\tres = []\n\tfor i in s:\n\t\tif i == 'c':\n\t\t\tres.append(\"No\")\n\t\telif i == 'a':\n\t\t\tif aflg and paas < total:\n\t\t\t\tpaas += 1\n\t\t\t\tres.append(\"Yes\")\n\t\t\telse:\n\t\t\t\taflg = False\n\t\t\t\tres.append(\"No\")\n\t\telse:\n\t\t\tif bflg and paas < total and bpaas < b:\n\t\t\t\tpaas += 1\n\t\t\t\tbpaas += 1\n\t\t\t\tres.append(\"Yes\")\n\t\t\telse:\n\t\t\t\tbflg = False\n\t\t\t\tres.append(\"No\")\n\treturn res", "qsimulator", "a, b = map(int, input().split())", "map(int, input().split())", "a", "b = map(int, input().split())", "map(int, input().split())", "b", "n, a, b = map(int, input().split())", "map(int, input().split())", "n" ]
def qsimulator(s, a, b): paas = 0 bpaas = 0 aflg = True bflg = True total = a + b res = [] for i in s: if i == 'c': res.append("No") elif i == 'a': if aflg and paas < total: paas += 1 res.append("Yes") else: aflg = False res.append("No") else: if bflg and paas < total and bpaas < b: paas += 1 bpaas += 1 res.append("Yes") else: bflg = False res.append("No") return res n, a, b = map(int, input().split()) s = input() ans = qsimulator(s, a, b) for i in ans: print(i)
[ 7, 0, 13, 4, 13, 4, 13, 13, 4, 18, 4, 13, 13, 13, 13, 0, 13, 4, 13, 4, 13, 0, 13, 17, 0, 13, 17, 28, 13, 13, 14, 2, 13, 17, 14, 2, 13, 2, 13, 13, 4, 13, 17, 9, 0, 13, 17, 4, 13, 17, 14, 2, 13, 17, 14, 2, 13, 2, 13, 13, 4, 13, 17, 9, 14, 2, 13, 13, 4, 13, 17, 9, 0, 13, 17, 0, 13, 17, 4, 13, 17, 4, 13, 17, 10, 17, 13, 10, 4, 13, 10, 17, 13, 10, 4, 13, 10, 17, 13, 10, 17, 13, 10, 4, 13, 10, 17, 13, 10, 4, 13 ]
[ [ 109, 2 ], [ 109, 13 ], [ 109, 14 ], [ 103, 16 ], [ 100, 22 ], [ 91, 25 ], [ 29, 28 ], [ 104, 28 ], [ 28, 32 ], [ 101, 36 ], [ 98, 36 ], [ 86, 36 ], [ 110, 38 ], [ 89, 39 ], [ 85, 45 ], [ 28, 52 ], [ 101, 56 ], [ 98, 56 ], [ 86, 56 ], [ 110, 58 ], [ 89, 59 ], [ 92, 66 ], [ 107, 66 ], [ 89, 67 ], [ 97, 73 ], [ 106, 76 ], [ 85, 86 ], [ 109, 89 ], [ 91, 92 ], [ 109, 95 ], [ 97, 98 ], [ 100, 101 ], [ 103, 104 ], [ 106, 107 ], [ 109, 110 ] ]
[ "n,a,b = tuple(map(int,input().split()))\n\ns = list(input())\nrank = 0\nbrank = 0\nfor s_i in s:\n if s_i=='a':\n if rank==a+b:\n print(\"No\")\n continue\n rank+=1\n print(\"Yes\")\n elif s_i=='b':\n if rank==a+b:\n print(\"No\")\n continue\n if brank==b:\n print(\"No\")\n continue\n rank+=1\n brank+=1\n print(\"Yes\")\n else:\n print(\"No\")", "n,a,b = tuple(map(int,input().split()))", "n", "tuple(map(int,input().split()))", "tuple", "map(int,input().split())", "map", "int", "input().split()", "().split", "()", "input", "split", "a", "b", "s = list(input())", "s", "list(input())", "list", "input()", "input", "rank = 0", "rank", "0", "brank = 0", "brank", "0", "for s_i in s:\n if s_i=='a':\n if rank==a+b:\n print(\"No\")\n continue\n rank+=1\n print(\"Yes\")\n elif s_i=='b':\n if rank==a+b:\n print(\"No\")\n continue\n if brank==b:\n print(\"No\")\n continue\n rank+=1\n brank+=1\n print(\"Yes\")\n else:\n print(\"No\")", "s_i", "s", "if s_i=='a':\n if rank==a+b:\n print(\"No\")\n continue\n rank+=1\n print(\"Yes\")\n elif s_i=='b':\n if rank==a+b:\n print(\"No\")\n continue\n if brank==b:\n print(\"No\")\n continue\n rank+=1\n brank+=1\n print(\"Yes\")\n else:\n print(\"No\")", "s_i=='a'", "s_i", "'a'", "if rank==a+b:\n print(\"No\")\n continue\n ", "rank==a+b", "rank", "a+b", "a", "b", "print(\"No\")", "print", "\"No\"", "continue", "rank+=1", "rank", "1", "print(\"Yes\")", "print", "\"Yes\"", "elif s_i=='b':\n if rank==a+b:\n print(\"No\")\n continue\n if brank==b:\n print(\"No\")\n continue\n rank+=1\n brank+=1\n print(\"Yes\")\n ", "s_i=='b'", "s_i", "'b'", "if rank==a+b:\n print(\"No\")\n continue\n ", "rank==a+b", "rank", "a+b", "a", "b", "print(\"No\")", "print", "\"No\"", "continue", "if brank==b:\n print(\"No\")\n continue\n ", "brank==b", "brank", "b", "print(\"No\")", "print", "\"No\"", "continue", "rank+=1", "rank", "1", "brank+=1", "brank", "1", "print(\"Yes\")", "print", "\"Yes\"", "print(\"No\")", "print", "\"No\"", "rank+=1", "1", "rank", "b = tuple(map(int,input().split()))", "tuple(map(int,input().split()))", "b", "brank = 0", "0", "brank", "n,a,b = tuple(map(int,input().split()))", "tuple(map(int,input().split()))", "n", "rank+=1", "1", "rank", "rank = 0", "0", "rank", "s = list(input())", "list(input())", "s", "brank+=1", "1", "brank", "a,b = tuple(map(int,input().split()))", "tuple(map(int,input().split()))", "a" ]
n,a,b = tuple(map(int,input().split())) s = list(input()) rank = 0 brank = 0 for s_i in s: if s_i=='a': if rank==a+b: print("No") continue rank+=1 print("Yes") elif s_i=='b': if rank==a+b: print("No") continue if brank==b: print("No") continue rank+=1 brank+=1 print("Yes") else: print("No")
[ 7, 0, 13, 4, 13, 13, 4, 18, 4, 13, 13, 13, 13, 0, 13, 4, 13, 0, 13, 17, 0, 13, 17, 28, 13, 13, 14, 2, 13, 17, 4, 13, 17, 14, 2, 13, 17, 14, 2, 13, 2, 13, 13, 4, 13, 17, 0, 13, 17, 4, 13, 17, 14, 2, 2, 13, 2, 13, 13, 2, 13, 13, 4, 13, 17, 0, 13, 17, 0, 13, 17, 4, 13, 17, 10, 17, 13, 10, 4, 13, 10, 17, 13, 10, 17, 13, 10, 4, 13, 10, 4, 13, 10, 17, 13, 10, 17, 13, 10, 4, 13 ]
[ [ 99, 2 ], [ 99, 11 ], [ 99, 12 ], [ 87, 14 ], [ 93, 18 ], [ 96, 21 ], [ 25, 24 ], [ 88, 24 ], [ 24, 28 ], [ 24, 35 ], [ 94, 39 ], [ 82, 39 ], [ 85, 39 ], [ 100, 41 ], [ 91, 42 ], [ 84, 47 ], [ 94, 55 ], [ 82, 55 ], [ 85, 55 ], [ 100, 57 ], [ 91, 58 ], [ 97, 60 ], [ 76, 60 ], [ 91, 61 ], [ 81, 66 ], [ 75, 69 ], [ 75, 76 ], [ 99, 79 ], [ 81, 82 ], [ 84, 85 ], [ 87, 88 ], [ 99, 91 ], [ 93, 94 ], [ 96, 97 ], [ 99, 100 ] ]
[ "N, A, B = map(int, input().split())\nS = input()\nps = 0\nos_r = 0\nfor s in S:\n if s == 'c':\n print(\"No\")\n elif s == 'a':\n if ps < A + B:\n print(\"Yes\")\n ps += 1\n else:\n print(\"No\")\n else:\n if ps < A + B and os_r < B:\n print(\"Yes\")\n ps += 1\n os_r += 1\n else:\n print(\"No\")", "N, A, B = map(int, input().split())", "N", "map(int, input().split())", "map", "int", "input().split()", "().split", "()", "input", "split", "A", "B", "S = input()", "S", "input()", "input", "ps = 0", "ps", "0", "os_r = 0", "os_r", "0", "for s in S:\n if s == 'c':\n print(\"No\")\n elif s == 'a':\n if ps < A + B:\n print(\"Yes\")\n ps += 1\n else:\n print(\"No\")\n else:\n if ps < A + B and os_r < B:\n print(\"Yes\")\n ps += 1\n os_r += 1\n else:\n print(\"No\")", "s", "S", "if s == 'c':\n print(\"No\")\n elif s == 'a':\n if ps < A + B:\n print(\"Yes\")\n ps += 1\n else:\n print(\"No\")\n else:\n if ps < A + B and os_r < B:\n print(\"Yes\")\n ps += 1\n os_r += 1\n else:\n print(\"No\")", "s == 'c'", "s", "'c'", "print(\"No\")", "print", "\"No\"", "elif s == 'a':\n if ps < A + B:\n print(\"Yes\")\n ps += 1\n else:\n print(\"No\")\n ", "s == 'a'", "s", "'a'", "if ps < A + B:\n print(\"Yes\")\n ps += 1\n else:\n print(\"No\")\n ", "ps < A + B", "ps", "A + B", "A", "B", "print(\"Yes\")", "print", "\"Yes\"", "ps += 1", "ps", "1", "print(\"No\")", "print", "\"No\"", "if ps < A + B and os_r < B:\n print(\"Yes\")\n ps += 1\n os_r += 1\n else:\n print(\"No\")", "ps < A + B and os_r < B", "ps < A + B", "ps", "A + B", "A", "B", "os_r < B", "os_r", "B", "print(\"Yes\")", "print", "\"Yes\"", "ps += 1", "ps", "1", "os_r += 1", "os_r", "1", "print(\"No\")", "print", "\"No\"", "os_r += 1", "1", "os_r", "N, A, B = map(int, input().split())", "map(int, input().split())", "N", "ps += 1", "1", "ps", "ps += 1", "1", "ps", "S = input()", "input()", "S", "B = map(int, input().split())", "map(int, input().split())", "B", "ps = 0", "0", "ps", "os_r = 0", "0", "os_r", "A, B = map(int, input().split())", "map(int, input().split())", "A" ]
N, A, B = map(int, input().split()) S = input() ps = 0 os_r = 0 for s in S: if s == 'c': print("No") elif s == 'a': if ps < A + B: print("Yes") ps += 1 else: print("No") else: if ps < A + B and os_r < B: print("Yes") ps += 1 os_r += 1 else: print("No")
[ 7, 0, 13, 4, 13, 13, 4, 18, 4, 13, 13, 13, 13, 0, 13, 4, 13, 0, 13, 17, 0, 13, 17, 0, 13, 17, 0, 13, 17, 28, 13, 4, 13, 13, 14, 2, 18, 13, 13, 17, 4, 13, 17, 14, 2, 18, 13, 13, 17, 14, 2, 13, 2, 13, 13, 4, 13, 17, 0, 13, 17, 4, 13, 17, 14, 2, 2, 13, 13, 2, 13, 2, 13, 13, 4, 13, 17, 0, 13, 17, 0, 13, 17, 4, 13, 17, 10, 17, 13, 10, 17, 13, 10, 4, 13, 10, 4, 13, 10, 17, 13, 10, 17, 13, 10, 17, 13, 10, 17, 13, 10, 4, 13, 10, 17, 13, 10, 4, 13 ]
[ [ 111, 2 ], [ 111, 11 ], [ 111, 12 ], [ 117, 14 ], [ 108, 18 ], [ 114, 21 ], [ 87, 24 ], [ 99, 27 ], [ 31, 30 ], [ 94, 33 ], [ 118, 37 ], [ 30, 38 ], [ 118, 46 ], [ 30, 47 ], [ 109, 51 ], [ 91, 51 ], [ 106, 51 ], [ 112, 53 ], [ 97, 54 ], [ 105, 59 ], [ 115, 67 ], [ 103, 67 ], [ 97, 68 ], [ 109, 70 ], [ 91, 70 ], [ 106, 70 ], [ 112, 72 ], [ 97, 73 ], [ 90, 78 ], [ 102, 81 ], [ 87, 88 ], [ 90, 91 ], [ 111, 94 ], [ 111, 97 ], [ 99, 100 ], [ 102, 103 ], [ 105, 106 ], [ 108, 109 ], [ 111, 112 ], [ 114, 115 ], [ 117, 118 ] ]
[ "n,a,b=map(int,input().split())\ns=input()\npassed=0\noversea=0\nyep=False\ncnt=0\nfor i in range(n):\n if s[i]==\"c\":\n print(\"No\")\n elif s[i]==\"a\":\n if passed<(a+b):\n print(\"Yes\")\n passed+=1\n else:\n print(\"No\")\n else:\n if oversea<b and passed<(a+b):\n print(\"Yes\")\n passed+=1\n oversea+=1\n else:\n print(\"No\")\n# if passed>=(a+b):\n# yep=True\n# cnt=len(s)-(i+1)\n# break\n# if yep:\n# for i in range(cnt):\n# print(\"No\")", "n,a,b=map(int,input().split())", "n", "map(int,input().split())", "map", "int", "input().split()", "().split", "()", "input", "split", "a", "b", "s=input()", "s", "input()", "input", "passed=0", "passed", "0", "oversea=0", "oversea", "0", "yep=False", "yep", "False", "cnt=0", "cnt", "0", "for i in range(n):\n if s[i]==\"c\":\n print(\"No\")\n elif s[i]==\"a\":\n if passed<(a+b):\n print(\"Yes\")\n passed+=1\n else:\n print(\"No\")\n else:\n if oversea<b and passed<(a+b):\n print(\"Yes\")\n passed+=1\n oversea+=1\n else:\n print(\"No\")\n# if passed>=(a+b):\n# yep=True\n# cnt=len(s)-(i+1)\n# break\n# if yep:\n# for i in range(cnt):\n# print(\"No\")", "i", "range(n)", "range", "n", "if s[i]==\"c\":\n print(\"No\")\n elif s[i]==\"a\":\n if passed<(a+b):\n print(\"Yes\")\n passed+=1\n else:\n print(\"No\")\n else:\n if oversea<b and passed<(a+b):\n print(\"Yes\")\n passed+=1\n oversea+=1\n else:\n print(\"No\")\n# if passed>=(a+b):\n# yep=True\n# cnt=len(s)-(i+1)\n# break\n# if yep:\n# for i in range(cnt):\n# print(\"No\")", "s[i]==\"c\"", "s[i]", "s", "i", "\"c\"", "print(\"No\")", "print", "\"No\"", "elif s[i]==\"a\":\n if passed<(a+b):\n print(\"Yes\")\n passed+=1\n else:\n print(\"No\")\n ", "s[i]==\"a\"", "s[i]", "s", "i", "\"a\"", "if passed<(a+b):\n print(\"Yes\")\n passed+=1\n else:\n print(\"No\")\n ", "passed<(a+b)", "passed", "a+b", "a", "b", "print(\"Yes\")", "print", "\"Yes\"", "passed+=1", "passed", "1", "print(\"No\")", "print", "\"No\"", "if oversea<b and passed<(a+b):\n print(\"Yes\")\n passed+=1\n oversea+=1\n else:\n print(\"No\")\n# if passed>=(a+b):\n# yep=True\n# cnt=len(s)-(i+1)\n# break\n# if yep:\n# for i in range(cnt):\n# print(\"No\")", "oversea<b and passed<(a+b)", "oversea<b", "oversea", "b", "passed<(a+b)", "passed", "a+b", "a", "b", "print(\"Yes\")", "print", "\"Yes\"", "passed+=1", "passed", "1", "oversea+=1", "oversea", "1", "print(\"No\")", "print", "\"No\"", "yep=False", "False", "yep", "passed+=1", "1", "passed", "n,a,b=map(int,input().split())", "map(int,input().split())", "n", "b=map(int,input().split())", "map(int,input().split())", "b", "cnt=0", "0", "cnt", "oversea+=1", "1", "oversea", "passed+=1", "1", "passed", "passed=0", "0", "passed", "a,b=map(int,input().split())", "map(int,input().split())", "a", "oversea=0", "0", "oversea", "s=input()", "input()", "s" ]
n,a,b=map(int,input().split()) s=input() passed=0 oversea=0 yep=False cnt=0 for i in range(n): if s[i]=="c": print("No") elif s[i]=="a": if passed<(a+b): print("Yes") passed+=1 else: print("No") else: if oversea<b and passed<(a+b): print("Yes") passed+=1 oversea+=1 else: print("No") # if passed>=(a+b): # yep=True # cnt=len(s)-(i+1) # break # if yep: # for i in range(cnt): # print("No")
[ 7, 0, 13, 4, 13, 13, 4, 18, 4, 13, 13, 13, 13, 0, 13, 4, 13, 0, 13, 4, 13, 13, 0, 13, 17, 0, 13, 17, 28, 13, 4, 13, 13, 14, 2, 18, 13, 13, 17, 14, 2, 13, 2, 13, 13, 0, 13, 17, 4, 13, 17, 4, 13, 17, 14, 2, 18, 13, 13, 17, 14, 2, 13, 2, 13, 13, 14, 40, 13, 13, 0, 13, 17, 0, 13, 17, 4, 13, 17, 4, 13, 17, 4, 13, 17, 4, 13, 17, 10, 17, 13, 10, 4, 13, 10, 17, 13, 10, 4, 13, 10, 17, 13, 10, 4, 13, 10, 17, 13, 10, 4, 13, 10, 17, 13, 10, 4, 13 ]
[ [ 110, 2 ], [ 110, 11 ], [ 110, 12 ], [ 98, 14 ], [ 116, 18 ], [ 99, 21 ], [ 89, 23 ], [ 113, 26 ], [ 30, 29 ], [ 105, 32 ], [ 117, 36 ], [ 29, 37 ], [ 90, 41 ], [ 102, 41 ], [ 96, 41 ], [ 111, 43 ], [ 93, 44 ], [ 95, 46 ], [ 117, 57 ], [ 29, 58 ], [ 90, 62 ], [ 102, 62 ], [ 96, 62 ], [ 111, 64 ], [ 93, 65 ], [ 114, 68 ], [ 108, 68 ], [ 93, 69 ], [ 107, 71 ], [ 101, 74 ], [ 89, 90 ], [ 110, 93 ], [ 95, 96 ], [ 98, 99 ], [ 101, 102 ], [ 110, 105 ], [ 107, 108 ], [ 110, 111 ], [ 113, 114 ], [ 116, 117 ] ]
[ "N, A, B = map(int, input().split())\nS = input()\n\nmem = list(S)\nnow = 0\nfore=1\nfor i in range(N):\n if(mem[i]=='a'):\n if(now<(A+B)):\n now+=1\n print('Yes')\n else:\n print('No')\n\n elif(mem[i]=='b'):\n if(now<(A+B)):\n if(fore<=B):\n fore+=1\n now+=1\n print('Yes')\n else:\n print('No')\n else:\n print('No')\n\n else:\n print('No')", "N, A, B = map(int, input().split())", "N", "map(int, input().split())", "map", "int", "input().split()", "().split", "()", "input", "split", "A", "B", "S = input()", "S", "input()", "input", "mem = list(S)", "mem", "list(S)", "list", "S", "now = 0", "now", "0", "fore=1", "fore", "1", "for i in range(N):\n if(mem[i]=='a'):\n if(now<(A+B)):\n now+=1\n print('Yes')\n else:\n print('No')\n\n elif(mem[i]=='b'):\n if(now<(A+B)):\n if(fore<=B):\n fore+=1\n now+=1\n print('Yes')\n else:\n print('No')\n else:\n print('No')\n\n else:\n print('No')", "i", "range(N)", "range", "N", "if(mem[i]=='a'):\n if(now<(A+B)):\n now+=1\n print('Yes')\n else:\n print('No')\n\n elif(mem[i]=='b'):\n if(now<(A+B)):\n if(fore<=B):\n fore+=1\n now+=1\n print('Yes')\n else:\n print('No')\n else:\n print('No')\n\n else:\n print('No')", "mem[i]=='a'", "mem[i]", "mem", "i", "'a'", "if(now<(A+B)):\n now+=1\n print('Yes')\n else:\n print('No')\n\n ", "now<(A+B)", "now", "A+B", "A", "B", "now+=1", "now", "1", "print('Yes')", "print", "'Yes'", "print('No')", "print", "'No'", "elif(mem[i]=='b'):\n if(now<(A+B)):\n if(fore<=B):\n fore+=1\n now+=1\n print('Yes')\n else:\n print('No')\n else:\n print('No')\n\n ", "mem[i]=='b'", "mem[i]", "mem", "i", "'b'", "if(now<(A+B)):\n if(fore<=B):\n fore+=1\n now+=1\n print('Yes')\n else:\n print('No')\n else:\n print('No')\n\n ", "now<(A+B)", "now", "A+B", "A", "B", "if(fore<=B):\n fore+=1\n now+=1\n print('Yes')\n else:\n print('No')\n ", "fore<=B", "fore", "B", "fore+=1", "fore", "1", "now+=1", "now", "1", "print('Yes')", "print", "'Yes'", "print('No')", "print", "'No'", "print('No')", "print", "'No'", "print('No')", "print", "'No'", "now = 0", "0", "now", "B = map(int, input().split())", "map(int, input().split())", "B", "now+=1", "1", "now", "S = input()", "input()", "S", "now+=1", "1", "now", "N, A, B = map(int, input().split())", "map(int, input().split())", "N", "fore+=1", "1", "fore", "A, B = map(int, input().split())", "map(int, input().split())", "A", "fore=1", "1", "fore", "mem = list(S)", "list(S)", "mem" ]
N, A, B = map(int, input().split()) S = input() mem = list(S) now = 0 fore=1 for i in range(N): if(mem[i]=='a'): if(now<(A+B)): now+=1 print('Yes') else: print('No') elif(mem[i]=='b'): if(now<(A+B)): if(fore<=B): fore+=1 now+=1 print('Yes') else: print('No') else: print('No') else: print('No')
[ 7, 0, 13, 4, 13, 4, 13, 13, 4, 18, 4, 13, 13, 13, 13, 0, 13, 4, 13, 0, 13, 17, 13, 17, 28, 13, 13, 14, 2, 13, 17, 14, 2, 2, 13, 13, 2, 13, 13, 4, 13, 17, 0, 13, 17, 4, 13, 17, 14, 2, 13, 17, 14, 2, 2, 2, 13, 13, 2, 13, 13, 2, 13, 13, 4, 13, 17, 0, 13, 17, 4, 13, 17, 4, 13, 17, 10, 4, 13, 10, 4, 13, 10, 4, 13, 10, 17, 13, 10, 17, 13, 10, 17, 13, 10, 17, 13, 10, 4, 13 ]
[ [ 98, 2 ], [ 98, 13 ], [ 98, 14 ], [ 80, 16 ], [ 86, 20 ], [ 95, 22 ], [ 26, 25 ], [ 81, 25 ], [ 25, 29 ], [ 87, 34 ], [ 90, 34 ], [ 96, 35 ], [ 93, 35 ], [ 99, 37 ], [ 78, 38 ], [ 89, 43 ], [ 25, 50 ], [ 87, 56 ], [ 90, 56 ], [ 96, 57 ], [ 93, 57 ], [ 99, 59 ], [ 78, 60 ], [ 96, 62 ], [ 93, 62 ], [ 78, 63 ], [ 92, 68 ], [ 98, 78 ], [ 80, 81 ], [ 98, 84 ], [ 86, 87 ], [ 89, 90 ], [ 92, 93 ], [ 95, 96 ], [ 98, 99 ] ]
[ "N, A, B = list(map(int, input().split()))\nS = input()\nAP, BP = 0, 0\nfor s in S:\n if s == 'a':\n if (AP+BP) < (A+B):\n print('Yes')\n AP += 1\n else:\n print('No')\n elif s == 'b':\n if ((AP+BP) < (A+B)) and (BP < B):\n print('Yes')\n BP += 1\n else:\n print('No')\n else:\n print('No')", "N, A, B = list(map(int, input().split()))", "N", "list(map(int, input().split()))", "list", "map(int, input().split())", "map", "int", "input().split()", "().split", "()", "input", "split", "A", "B", "S = input()", "S", "input()", "input", "AP, BP = 0, 0", "AP", "0", "BP", "0", "for s in S:\n if s == 'a':\n if (AP+BP) < (A+B):\n print('Yes')\n AP += 1\n else:\n print('No')\n elif s == 'b':\n if ((AP+BP) < (A+B)) and (BP < B):\n print('Yes')\n BP += 1\n else:\n print('No')\n else:\n print('No')", "s", "S", "if s == 'a':\n if (AP+BP) < (A+B):\n print('Yes')\n AP += 1\n else:\n print('No')\n elif s == 'b':\n if ((AP+BP) < (A+B)) and (BP < B):\n print('Yes')\n BP += 1\n else:\n print('No')\n else:\n print('No')", "s == 'a'", "s", "'a'", "if (AP+BP) < (A+B):\n print('Yes')\n AP += 1\n else:\n print('No')\n ", "(AP+BP) < (A+B)", "AP+BP", "AP", "BP", "A+B", "A", "B", "print('Yes')", "print", "'Yes'", "AP += 1", "AP", "1", "print('No')", "print", "'No'", "elif s == 'b':\n if ((AP+BP) < (A+B)) and (BP < B):\n print('Yes')\n BP += 1\n else:\n print('No')\n ", "s == 'b'", "s", "'b'", "if ((AP+BP) < (A+B)) and (BP < B):\n print('Yes')\n BP += 1\n else:\n print('No')\n ", "((AP+BP) < (A+B)) and (BP < B)", "(AP+BP) < (A+B)", "AP+BP", "AP", "BP", "A+B", "A", "B", "BP < B", "BP", "B", "print('Yes')", "print", "'Yes'", "BP += 1", "BP", "1", "print('No')", "print", "'No'", "print('No')", "print", "'No'", "B = list(map(int, input().split()))", "list(map(int, input().split()))", "B", "S = input()", "input()", "S", "N, A, B = list(map(int, input().split()))", "list(map(int, input().split()))", "N", "AP, BP = 0, 0", "0", "AP", "AP += 1", "1", "AP", "BP += 1", "1", "BP", "BP = 0, 0", "0", "BP", "A, B = list(map(int, input().split()))", "list(map(int, input().split()))", "A" ]
N, A, B = list(map(int, input().split())) S = input() AP, BP = 0, 0 for s in S: if s == 'a': if (AP+BP) < (A+B): print('Yes') AP += 1 else: print('No') elif s == 'b': if ((AP+BP) < (A+B)) and (BP < B): print('Yes') BP += 1 else: print('No') else: print('No')
[ 7, 0, 13, 4, 13, 13, 4, 18, 4, 13, 13, 13, 13, 0, 13, 4, 13, 0, 13, 17, 0, 13, 17, 28, 13, 4, 13, 13, 14, 2, 18, 13, 13, 17, 14, 2, 2, 13, 13, 2, 13, 13, 0, 13, 17, 4, 13, 17, 9, 14, 2, 18, 13, 13, 17, 14, 2, 2, 2, 13, 13, 2, 13, 13, 2, 13, 13, 0, 13, 17, 4, 13, 17, 9, 4, 13, 17, 10, 4, 13, 10, 4, 13, 10, 17, 13, 10, 4, 13, 10, 17, 13, 10, 17, 13, 10, 17, 13, 10, 4, 13 ]
[ [ 87, 2 ], [ 87, 11 ], [ 87, 12 ], [ 99, 14 ], [ 96, 18 ], [ 90, 21 ], [ 25, 24 ], [ 82, 27 ], [ 100, 31 ], [ 24, 32 ], [ 97, 37 ], [ 94, 37 ], [ 91, 38 ], [ 85, 38 ], [ 88, 40 ], [ 79, 41 ], [ 93, 43 ], [ 100, 52 ], [ 24, 53 ], [ 94, 59 ], [ 97, 59 ], [ 91, 60 ], [ 85, 60 ], [ 88, 62 ], [ 79, 63 ], [ 91, 65 ], [ 85, 65 ], [ 79, 66 ], [ 84, 68 ], [ 87, 79 ], [ 87, 82 ], [ 84, 85 ], [ 87, 88 ], [ 90, 91 ], [ 93, 94 ], [ 96, 97 ], [ 99, 100 ] ]
[ "n,a,b = map(int,input().split())\ns = input()\nca = 0\ncb = 0\nfor i in range(n):\n if s[i] == 'a': \n if ca + cb < a + b:\n ca += 1\n print('Yes')\n continue\n if s[i] == 'b': \n if (ca + cb < a + b) and cb < b:\n cb += 1\n print('Yes')\n continue\n print('No') ", "n,a,b = map(int,input().split())", "n", "map(int,input().split())", "map", "int", "input().split()", "().split", "()", "input", "split", "a", "b", "s = input()", "s", "input()", "input", "ca = 0", "ca", "0", "cb = 0", "cb", "0", "for i in range(n):\n if s[i] == 'a': \n if ca + cb < a + b:\n ca += 1\n print('Yes')\n continue\n if s[i] == 'b': \n if (ca + cb < a + b) and cb < b:\n cb += 1\n print('Yes')\n continue\n print('No') ", "i", "range(n)", "range", "n", "if s[i] == 'a': \n if ca + cb < a + b:\n ca += 1\n print('Yes')\n continue\n ", "s[i] == 'a'", "s[i]", "s", "i", "'a'", "if ca + cb < a + b:\n ca += 1\n print('Yes')\n continue\n ", "ca + cb < a + b", "ca + cb", "ca", "cb", "a + b", "a", "b", "ca += 1", "ca", "1", "print('Yes')", "print", "'Yes'", "continue", "if s[i] == 'b': \n if (ca + cb < a + b) and cb < b:\n cb += 1\n print('Yes')\n continue\n ", "s[i] == 'b'", "s[i]", "s", "i", "'b'", "if (ca + cb < a + b) and cb < b:\n cb += 1\n print('Yes')\n continue\n ", "(ca + cb < a + b) and cb < b", "ca + cb < a + b", "ca + cb", "ca", "cb", "a + b", "a", "b", "cb < b", "cb", "b", "cb += 1", "cb", "1", "print('Yes')", "print", "'Yes'", "continue", "print('No')", "print", "'No'", "b = map(int,input().split())", "map(int,input().split())", "b", "n,a,b = map(int,input().split())", "map(int,input().split())", "n", "cb += 1", "1", "cb", "a,b = map(int,input().split())", "map(int,input().split())", "a", "cb = 0", "0", "cb", "ca += 1", "1", "ca", "ca = 0", "0", "ca", "s = input()", "input()", "s" ]
n,a,b = map(int,input().split()) s = input() ca = 0 cb = 0 for i in range(n): if s[i] == 'a': if ca + cb < a + b: ca += 1 print('Yes') continue if s[i] == 'b': if (ca + cb < a + b) and cb < b: cb += 1 print('Yes') continue print('No')
[ 7, 0, 13, 4, 13, 13, 4, 18, 4, 13, 13, 13, 13, 0, 13, 4, 13, 0, 13, 17, 0, 13, 17, 28, 13, 4, 13, 13, 14, 2, 18, 13, 13, 17, 14, 2, 2, 13, 13, 2, 13, 13, 4, 13, 17, 0, 13, 17, 4, 13, 17, 14, 2, 18, 13, 13, 17, 14, 2, 2, 2, 13, 13, 2, 13, 13, 2, 13, 13, 4, 13, 17, 0, 13, 17, 4, 13, 17, 4, 13, 17, 10, 17, 13, 10, 17, 13, 10, 4, 13, 10, 4, 13, 10, 17, 13, 10, 4, 13, 10, 4, 13, 10, 17, 13 ]
[ [ 100, 2 ], [ 100, 11 ], [ 100, 12 ], [ 88, 14 ], [ 82, 18 ], [ 94, 21 ], [ 25, 24 ], [ 101, 27 ], [ 89, 31 ], [ 24, 32 ], [ 83, 37 ], [ 104, 37 ], [ 95, 38 ], [ 86, 38 ], [ 92, 40 ], [ 98, 41 ], [ 103, 46 ], [ 89, 54 ], [ 24, 55 ], [ 83, 61 ], [ 104, 61 ], [ 95, 62 ], [ 86, 62 ], [ 92, 64 ], [ 98, 65 ], [ 95, 67 ], [ 86, 67 ], [ 98, 68 ], [ 85, 73 ], [ 82, 83 ], [ 85, 86 ], [ 88, 89 ], [ 100, 92 ], [ 94, 95 ], [ 100, 98 ], [ 100, 101 ], [ 103, 104 ] ]
[ "a,b,c=map(int,input().split())\nd=input()\ntotal1=0\ntotal2=0\nfor i in range(a):\n if d[i]==\"a\":\n if total1+total2<b+c:\n print(\"Yes\")\n total1+=1\n else:\n print(\"No\")\n elif d[i]==\"b\":\n if total1+total2<b+c and total2<c:\n print(\"Yes\")\n total2+=1\n else:\n print(\"No\")\n else:\n print(\"No\")", "a,b,c=map(int,input().split())", "a", "map(int,input().split())", "map", "int", "input().split()", "().split", "()", "input", "split", "b", "c", "d=input()", "d", "input()", "input", "total1=0", "total1", "0", "total2=0", "total2", "0", "for i in range(a):\n if d[i]==\"a\":\n if total1+total2<b+c:\n print(\"Yes\")\n total1+=1\n else:\n print(\"No\")\n elif d[i]==\"b\":\n if total1+total2<b+c and total2<c:\n print(\"Yes\")\n total2+=1\n else:\n print(\"No\")\n else:\n print(\"No\")", "i", "range(a)", "range", "a", "if d[i]==\"a\":\n if total1+total2<b+c:\n print(\"Yes\")\n total1+=1\n else:\n print(\"No\")\n elif d[i]==\"b\":\n if total1+total2<b+c and total2<c:\n print(\"Yes\")\n total2+=1\n else:\n print(\"No\")\n else:\n print(\"No\")", "d[i]==\"a\"", "d[i]", "d", "i", "\"a\"", "if total1+total2<b+c:\n print(\"Yes\")\n total1+=1\n else:\n print(\"No\")\n ", "total1+total2<b+c", "total1+total2", "total1", "total2", "b+c", "b", "c", "print(\"Yes\")", "print", "\"Yes\"", "total1+=1", "total1", "1", "print(\"No\")", "print", "\"No\"", "elif d[i]==\"b\":\n if total1+total2<b+c and total2<c:\n print(\"Yes\")\n total2+=1\n else:\n print(\"No\")\n ", "d[i]==\"b\"", "d[i]", "d", "i", "\"b\"", "if total1+total2<b+c and total2<c:\n print(\"Yes\")\n total2+=1\n else:\n print(\"No\")\n ", "total1+total2<b+c and total2<c", "total1+total2<b+c", "total1+total2", "total1", "total2", "b+c", "b", "c", "total2<c", "total2", "c", "print(\"Yes\")", "print", "\"Yes\"", "total2+=1", "total2", "1", "print(\"No\")", "print", "\"No\"", "print(\"No\")", "print", "\"No\"", "total1=0", "0", "total1", "total2+=1", "1", "total2", "d=input()", "input()", "d", "b,c=map(int,input().split())", "map(int,input().split())", "b", "total2=0", "0", "total2", "c=map(int,input().split())", "map(int,input().split())", "c", "a,b,c=map(int,input().split())", "map(int,input().split())", "a", "total1+=1", "1", "total1" ]
a,b,c=map(int,input().split()) d=input() total1=0 total2=0 for i in range(a): if d[i]=="a": if total1+total2<b+c: print("Yes") total1+=1 else: print("No") elif d[i]=="b": if total1+total2<b+c and total2<c: print("Yes") total2+=1 else: print("No") else: print("No")
[ 7, 0, 13, 4, 13, 13, 4, 18, 4, 13, 13, 13, 13, 0, 13, 4, 13, 0, 13, 17, 0, 13, 17, 28, 13, 13, 14, 2, 13, 17, 4, 13, 17, 14, 2, 13, 17, 14, 2, 13, 2, 13, 13, 4, 13, 17, 0, 13, 17, 4, 13, 17, 14, 2, 13, 17, 14, 2, 2, 13, 2, 13, 13, 2, 13, 13, 4, 13, 17, 0, 13, 17, 0, 13, 17, 4, 13, 17, 10, 17, 13, 10, 17, 13, 10, 17, 13, 10, 4, 13, 10, 4, 13, 10, 17, 13, 10, 4, 13, 10, 4, 13, 10, 17, 13 ]
[ [ 100, 2 ], [ 100, 11 ], [ 100, 12 ], [ 88, 14 ], [ 103, 18 ], [ 79, 21 ], [ 25, 24 ], [ 89, 24 ], [ 24, 28 ], [ 24, 35 ], [ 104, 39 ], [ 83, 39 ], [ 86, 39 ], [ 101, 41 ], [ 92, 42 ], [ 85, 47 ], [ 24, 54 ], [ 86, 59 ], [ 104, 59 ], [ 83, 59 ], [ 101, 61 ], [ 92, 62 ], [ 80, 64 ], [ 95, 64 ], [ 92, 65 ], [ 82, 70 ], [ 94, 73 ], [ 79, 80 ], [ 82, 83 ], [ 85, 86 ], [ 88, 89 ], [ 100, 92 ], [ 94, 95 ], [ 100, 98 ], [ 100, 101 ], [ 103, 104 ] ]
[ "N,A,B=map(int,input().split())\nS=input()\n\npasser=0\npassb=0\nfor p in S:\n if p ==\"c\":\n print(\"No\")\n if p==\"a\":\n if passer < A+B:\n print(\"Yes\")\n passer+=1\n else:\n print(\"No\")\n if p==\"b\":\n if passer <A+B and passb <B:\n print(\"Yes\")\n passer+=1\n passb+=1\n else:\n print(\"No\")", "N,A,B=map(int,input().split())", "N", "map(int,input().split())", "map", "int", "input().split()", "().split", "()", "input", "split", "A", "B", "S=input()", "S", "input()", "input", "passer=0", "passer", "0", "passb=0", "passb", "0", "for p in S:\n if p ==\"c\":\n print(\"No\")\n if p==\"a\":\n if passer < A+B:\n print(\"Yes\")\n passer+=1\n else:\n print(\"No\")\n if p==\"b\":\n if passer <A+B and passb <B:\n print(\"Yes\")\n passer+=1\n passb+=1\n else:\n print(\"No\")", "p", "S", "if p ==\"c\":\n print(\"No\")\n ", "p ==\"c\"", "p", "\"c\"", "print(\"No\")", "print", "\"No\"", "if p==\"a\":\n if passer < A+B:\n print(\"Yes\")\n passer+=1\n else:\n print(\"No\")\n ", "p==\"a\"", "p", "\"a\"", "if passer < A+B:\n print(\"Yes\")\n passer+=1\n else:\n print(\"No\")\n ", "passer < A+B", "passer", "A+B", "A", "B", "print(\"Yes\")", "print", "\"Yes\"", "passer+=1", "passer", "1", "print(\"No\")", "print", "\"No\"", "if p==\"b\":\n if passer <A+B and passb <B:\n print(\"Yes\")\n passer+=1\n passb+=1\n else:\n print(\"No\")", "p==\"b\"", "p", "\"b\"", "if passer <A+B and passb <B:\n print(\"Yes\")\n passer+=1\n passb+=1\n else:\n print(\"No\")", "passer <A+B and passb <B", "passer <A+B", "passer", "A+B", "A", "B", "passb <B", "passb", "B", "print(\"Yes\")", "print", "\"Yes\"", "passer+=1", "passer", "1", "passb+=1", "passb", "1", "print(\"No\")", "print", "\"No\"", "passb=0", "0", "passb", "passer+=1", "1", "passer", "passer+=1", "1", "passer", "S=input()", "input()", "S", "B=map(int,input().split())", "map(int,input().split())", "B", "passb+=1", "1", "passb", "N,A,B=map(int,input().split())", "map(int,input().split())", "N", "A,B=map(int,input().split())", "map(int,input().split())", "A", "passer=0", "0", "passer" ]
N,A,B=map(int,input().split()) S=input() passer=0 passb=0 for p in S: if p =="c": print("No") if p=="a": if passer < A+B: print("Yes") passer+=1 else: print("No") if p=="b": if passer <A+B and passb <B: print("Yes") passer+=1 passb+=1 else: print("No")
[ 7, 0, 13, 4, 18, 4, 13, 13, 13, 13, 0, 13, 4, 13, 13, 0, 13, 4, 13, 13, 0, 13, 4, 13, 0, 13, 17, 0, 13, 17, 28, 13, 4, 13, 4, 13, 13, 14, 2, 18, 13, 13, 17, 4, 13, 17, 14, 2, 18, 13, 13, 17, 0, 13, 17, 4, 13, 17, 0, 13, 17, 14, 40, 13, 13, 0, 13, 17, 4, 13, 17, 4, 13, 17, 14, 40, 13, 2, 13, 13, 28, 13, 4, 13, 2, 2, 4, 13, 13, 13, 17, 4, 13, 17, 3, 10, 4, 13, 10, 17, 13, 10, 17, 13, 10, 4, 13, 10, 4, 13, 10, 17, 13, 10, 17, 13, 10, 4, 13, 10, 4, 13, 10, 17, 13, 10, 4, 13 ]
[ [ 117, 2 ], [ 117, 8 ], [ 117, 9 ], [ 120, 11 ], [ 118, 14 ], [ 126, 16 ], [ 106, 19 ], [ 108, 21 ], [ 111, 25 ], [ 123, 28 ], [ 32, 31 ], [ 109, 36 ], [ 109, 40 ], [ 31, 41 ], [ 109, 49 ], [ 31, 50 ], [ 99, 53 ], [ 114, 59 ], [ 115, 63 ], [ 124, 63 ], [ 127, 64 ], [ 106, 64 ], [ 102, 66 ], [ 103, 76 ], [ 100, 76 ], [ 112, 76 ], [ 121, 78 ], [ 118, 78 ], [ 127, 79 ], [ 106, 79 ], [ 82, 81 ], [ 109, 88 ], [ 81, 89 ], [ 117, 97 ], [ 99, 100 ], [ 102, 103 ], [ 117, 106 ], [ 108, 109 ], [ 111, 112 ], [ 114, 115 ], [ 117, 118 ], [ 120, 121 ], [ 123, 124 ], [ 126, 127 ] ]
[ "N, A, B = input().split()\nA = int(A)\nB = int(B)\ns = input()\n\naccepted = 0\nB_checked = 0\n\nfor i in range(len(s)):\n if s[i] == \"c\":\n print(\"No\")\n elif s[i] == \"a\":\n accepted += 1\n print(\"Yes\")\n else:\n B_checked += 1\n if (B_checked <= B):\n accepted += 1\n print(\"Yes\")\n else:\n print(\"No\")\n\n if (accepted >= (A + B)):\n for i in range(len(s) - i - 1):\n print(\"No\")\n\n break", "N, A, B = input().split()", "N", "input().split()", "().split", "()", "input", "split", "A", "B", "A = int(A)", "A", "int(A)", "int", "A", "B = int(B)", "B", "int(B)", "int", "B", "s = input()", "s", "input()", "input", "accepted = 0", "accepted", "0", "B_checked = 0", "B_checked", "0", "for i in range(len(s)):\n if s[i] == \"c\":\n print(\"No\")\n elif s[i] == \"a\":\n accepted += 1\n print(\"Yes\")\n else:\n B_checked += 1\n if (B_checked <= B):\n accepted += 1\n print(\"Yes\")\n else:\n print(\"No\")\n\n if (accepted >= (A + B)):\n for i in range(len(s) - i - 1):\n print(\"No\")\n\n break", "i", "range(len(s))", "range", "len(s)", "len", "s", "if s[i] == \"c\":\n print(\"No\")\n elif s[i] == \"a\":\n accepted += 1\n print(\"Yes\")\n else:\n B_checked += 1\n if (B_checked <= B):\n accepted += 1\n print(\"Yes\")\n else:\n print(\"No\")\n\n ", "s[i] == \"c\"", "s[i]", "s", "i", "\"c\"", "print(\"No\")", "print", "\"No\"", "elif s[i] == \"a\":\n accepted += 1\n print(\"Yes\")\n ", "s[i] == \"a\"", "s[i]", "s", "i", "\"a\"", "accepted += 1", "accepted", "1", "print(\"Yes\")", "print", "\"Yes\"", "B_checked += 1", "B_checked", "1", "if (B_checked <= B):\n accepted += 1\n print(\"Yes\")\n else:\n print(\"No\")\n\n ", "B_checked <= B", "B_checked", "B", "accepted += 1", "accepted", "1", "print(\"Yes\")", "print", "\"Yes\"", "print(\"No\")", "print", "\"No\"", "if (accepted >= (A + B)):\n for i in range(len(s) - i - 1):\n print(\"No\")\n\n break", "accepted >= (A + B)", "accepted", "A + B", "A", "B", "for i in range(len(s) - i - 1):\n print(\"No\")\n\n ", "i", "range(len(s) - i - 1)", "range", "len(s) - i - 1", "len(s) - i", "len(s)", "len", "s", "i", "1", "print(\"No\")", "print", "\"No\"", "break", "N, A, B = input().split()", "input().split()", "N", "accepted += 1", "1", "accepted", "accepted += 1", "1", "accepted", "B = input().split()", "input().split()", "B", "s = input()", "input()", "s", "accepted = 0", "0", "accepted", "B_checked += 1", "1", "B_checked", "A, B = input().split()", "input().split()", "A", "A = int(A)", "int(A)", "A", "B_checked = 0", "0", "B_checked", "B = int(B)", "int(B)", "B" ]
N, A, B = input().split() A = int(A) B = int(B) s = input() accepted = 0 B_checked = 0 for i in range(len(s)): if s[i] == "c": print("No") elif s[i] == "a": accepted += 1 print("Yes") else: B_checked += 1 if (B_checked <= B): accepted += 1 print("Yes") else: print("No") if (accepted >= (A + B)): for i in range(len(s) - i - 1): print("No") break
[ 7, 0, 13, 4, 13, 13, 4, 18, 4, 13, 13, 13, 13, 0, 13, 4, 13, 0, 13, 17, 0, 13, 17, 28, 13, 13, 14, 2, 2, 13, 17, 2, 2, 13, 13, 2, 13, 13, 4, 13, 17, 0, 13, 17, 14, 2, 2, 2, 13, 17, 2, 2, 13, 13, 2, 13, 13, 2, 13, 13, 4, 13, 17, 0, 13, 17, 4, 13, 17, 10, 4, 13, 10, 4, 13, 10, 17, 13, 10, 17, 13, 10, 17, 13, 10, 4, 13, 10, 17, 13, 10, 4, 13 ]
[ [ 85, 2 ], [ 85, 11 ], [ 85, 12 ], [ 91, 14 ], [ 88, 18 ], [ 82, 21 ], [ 25, 24 ], [ 92, 24 ], [ 24, 29 ], [ 89, 33 ], [ 80, 33 ], [ 83, 34 ], [ 77, 34 ], [ 74, 36 ], [ 71, 37 ], [ 79, 42 ], [ 24, 48 ], [ 89, 52 ], [ 80, 52 ], [ 83, 53 ], [ 77, 53 ], [ 74, 55 ], [ 71, 56 ], [ 83, 58 ], [ 77, 58 ], [ 71, 59 ], [ 76, 64 ], [ 85, 71 ], [ 85, 74 ], [ 76, 77 ], [ 79, 80 ], [ 82, 83 ], [ 85, 86 ], [ 88, 89 ], [ 91, 92 ] ]
[ "n,a,b = map(int, input().split())\ns = input()\nya=0\nyb=0\nfor c in s:\n if c==\"a\" and ya+yb<a+b:\n print(\"Yes\")\n ya+=1\n elif c==\"b\"and ya+yb<a+b and yb<b:\n print(\"Yes\")\n yb+=1\n else:\n print(\"No\")", "n,a,b = map(int, input().split())", "n", "map(int, input().split())", "map", "int", "input().split()", "().split", "()", "input", "split", "a", "b", "s = input()", "s", "input()", "input", "ya=0", "ya", "0", "yb=0", "yb", "0", "for c in s:\n if c==\"a\" and ya+yb<a+b:\n print(\"Yes\")\n ya+=1\n elif c==\"b\"and ya+yb<a+b and yb<b:\n print(\"Yes\")\n yb+=1\n else:\n print(\"No\")", "c", "s", "if c==\"a\" and ya+yb<a+b:\n print(\"Yes\")\n ya+=1\n elif c==\"b\"and ya+yb<a+b and yb<b:\n print(\"Yes\")\n yb+=1\n else:\n print(\"No\")", "c==\"a\" and ya+yb<a+b", "c==\"a\"", "c", "\"a\"", "ya+yb<a+b", "ya+yb", "ya", "yb", "a+b", "a", "b", "print(\"Yes\")", "print", "\"Yes\"", "ya+=1", "ya", "1", "elif c==\"b\"and ya+yb<a+b and yb<b:\n print(\"Yes\")\n yb+=1\n ", "c==\"b\"and ya+yb<a+b and yb<b", "c==\"b\"and ya+yb<a+b", "c==\"b\"", "c", "\"b\"", "ya+yb<a+b", "ya+yb", "ya", "yb", "a+b", "a", "b", "yb<b", "yb", "b", "print(\"Yes\")", "print", "\"Yes\"", "yb+=1", "yb", "1", "print(\"No\")", "print", "\"No\"", "b = map(int, input().split())", "map(int, input().split())", "b", "a,b = map(int, input().split())", "map(int, input().split())", "a", "yb+=1", "1", "yb", "ya+=1", "1", "ya", "yb=0", "0", "yb", "n,a,b = map(int, input().split())", "map(int, input().split())", "n", "ya=0", "0", "ya", "s = input()", "input()", "s" ]
n,a,b = map(int, input().split()) s = input() ya=0 yb=0 for c in s: if c=="a" and ya+yb<a+b: print("Yes") ya+=1 elif c=="b"and ya+yb<a+b and yb<b: print("Yes") yb+=1 else: print("No")
[ 7, 0, 13, 17, 0, 13, 17, 0, 13, 4, 13, 13, 4, 18, 4, 13, 13, 13, 13, 0, 13, 4, 13, 4, 13, 28, 13, 13, 14, 2, 2, 13, 17, 2, 2, 13, 13, 13, 4, 13, 17, 0, 13, 17, 14, 2, 2, 2, 13, 17, 2, 2, 13, 13, 13, 2, 13, 13, 4, 13, 17, 0, 13, 17, 0, 13, 17, 4, 13, 17, 10, 4, 13, 10, 17, 13, 10, 17, 13, 10, 17, 13, 10, 4, 13, 10, 4, 13, 10, 4, 13, 10, 17, 13, 10, 17, 13 ]
[ [ 95, 2 ], [ 80, 5 ], [ 89, 8 ], [ 89, 17 ], [ 89, 18 ], [ 83, 20 ], [ 27, 26 ], [ 84, 26 ], [ 26, 31 ], [ 72, 35 ], [ 90, 36 ], [ 96, 37 ], [ 75, 37 ], [ 93, 37 ], [ 92, 42 ], [ 26, 48 ], [ 72, 52 ], [ 90, 53 ], [ 96, 54 ], [ 75, 54 ], [ 93, 54 ], [ 90, 56 ], [ 81, 57 ], [ 78, 57 ], [ 74, 62 ], [ 77, 65 ], [ 89, 72 ], [ 74, 75 ], [ 77, 78 ], [ 80, 81 ], [ 83, 84 ], [ 89, 87 ], [ 89, 90 ], [ 92, 93 ], [ 95, 96 ] ]
[ "count1 = 0\ncount2 = 0\nN, A, B = map(int, input().split())\nS = list(input())\nfor i in S:\n if i == \"a\" and A + B > count1:\n print(\"Yes\")\n count1 += 1\n elif i == \"b\" and A + B > count1 and B > count2:\n print(\"Yes\")\n count1 += 1\n count2 += 1\n else :\n print(\"No\")", "count1 = 0", "count1", "0", "count2 = 0", "count2", "0", "N, A, B = map(int, input().split())", "N", "map(int, input().split())", "map", "int", "input().split()", "().split", "()", "input", "split", "A", "B", "S = list(input())", "S", "list(input())", "list", "input()", "input", "for i in S:\n if i == \"a\" and A + B > count1:\n print(\"Yes\")\n count1 += 1\n elif i == \"b\" and A + B > count1 and B > count2:\n print(\"Yes\")\n count1 += 1\n count2 += 1\n else :\n print(\"No\")", "i", "S", "if i == \"a\" and A + B > count1:\n print(\"Yes\")\n count1 += 1\n elif i == \"b\" and A + B > count1 and B > count2:\n print(\"Yes\")\n count1 += 1\n count2 += 1\n else :\n print(\"No\")", "i == \"a\" and A + B > count1", "i == \"a\"", "i", "\"a\"", "A + B > count1", "A + B", "A", "B", "count1", "print(\"Yes\")", "print", "\"Yes\"", "count1 += 1", "count1", "1", "elif i == \"b\" and A + B > count1 and B > count2:\n print(\"Yes\")\n count1 += 1\n count2 += 1\n ", "i == \"b\" and A + B > count1 and B > count2", "i == \"b\" and A + B > count1", "i == \"b\"", "i", "\"b\"", "A + B > count1", "A + B", "A", "B", "count1", "B > count2", "B", "count2", "print(\"Yes\")", "print", "\"Yes\"", "count1 += 1", "count1", "1", "count2 += 1", "count2", "1", "print(\"No\")", "print", "\"No\"", "A, B = map(int, input().split())", "map(int, input().split())", "A", "count1 += 1", "1", "count1", "count2 += 1", "1", "count2", "count2 = 0", "0", "count2", "S = list(input())", "list(input())", "S", "N, A, B = map(int, input().split())", "map(int, input().split())", "N", "B = map(int, input().split())", "map(int, input().split())", "B", "count1 += 1", "1", "count1", "count1 = 0", "0", "count1" ]
count1 = 0 count2 = 0 N, A, B = map(int, input().split()) S = list(input()) for i in S: if i == "a" and A + B > count1: print("Yes") count1 += 1 elif i == "b" and A + B > count1 and B > count2: print("Yes") count1 += 1 count2 += 1 else : print("No")
[ 7, 0, 13, 4, 13, 13, 4, 18, 4, 13, 13, 13, 13, 0, 13, 4, 13, 4, 13, 0, 13, 17, 0, 13, 17, 28, 13, 4, 13, 13, 14, 2, 18, 13, 13, 17, 14, 2, 13, 2, 13, 13, 0, 13, 17, 4, 13, 17, 4, 13, 17, 14, 2, 18, 13, 13, 17, 14, 2, 2, 13, 2, 13, 13, 2, 13, 13, 0, 13, 17, 0, 13, 17, 4, 13, 17, 4, 13, 17, 14, 2, 18, 13, 13, 17, 4, 13, 17, 10, 4, 13, 10, 4, 13, 10, 4, 13, 10, 17, 13, 10, 4, 13, 10, 17, 13, 10, 17, 13, 10, 17, 13, 10, 17, 13 ]
[ [ 101, 2 ], [ 101, 11 ], [ 101, 12 ], [ 95, 14 ], [ 98, 20 ], [ 110, 23 ], [ 27, 26 ], [ 102, 29 ], [ 96, 33 ], [ 26, 34 ], [ 99, 38 ], [ 114, 38 ], [ 105, 38 ], [ 93, 40 ], [ 90, 41 ], [ 104, 43 ], [ 96, 54 ], [ 26, 55 ], [ 105, 60 ], [ 99, 60 ], [ 114, 60 ], [ 93, 62 ], [ 90, 63 ], [ 111, 65 ], [ 108, 65 ], [ 90, 66 ], [ 113, 68 ], [ 107, 71 ], [ 96, 82 ], [ 26, 83 ], [ 101, 90 ], [ 101, 93 ], [ 95, 96 ], [ 98, 99 ], [ 101, 102 ], [ 104, 105 ], [ 107, 108 ], [ 110, 111 ], [ 113, 114 ] ]
[ "N, A, B = map(int, input().split())\nS = list(input())\ncy = 0\nco = 0\nfor i in range(N):\n if S[i]=='a':\n if cy < A+B:\n cy += 1\n print('Yes')\n else:\n print('No')\n if S[i]=='b':\n if cy < A+B and co < B:\n cy += 1\n co += 1\n print('Yes')\n else:\n print('No')\n if S[i]=='c':\n print('No')", "N, A, B = map(int, input().split())", "N", "map(int, input().split())", "map", "int", "input().split()", "().split", "()", "input", "split", "A", "B", "S = list(input())", "S", "list(input())", "list", "input()", "input", "cy = 0", "cy", "0", "co = 0", "co", "0", "for i in range(N):\n if S[i]=='a':\n if cy < A+B:\n cy += 1\n print('Yes')\n else:\n print('No')\n if S[i]=='b':\n if cy < A+B and co < B:\n cy += 1\n co += 1\n print('Yes')\n else:\n print('No')\n if S[i]=='c':\n print('No')", "i", "range(N)", "range", "N", "if S[i]=='a':\n if cy < A+B:\n cy += 1\n print('Yes')\n else:\n print('No')\n ", "S[i]=='a'", "S[i]", "S", "i", "'a'", "if cy < A+B:\n cy += 1\n print('Yes')\n else:\n print('No')\n ", "cy < A+B", "cy", "A+B", "A", "B", "cy += 1", "cy", "1", "print('Yes')", "print", "'Yes'", "print('No')", "print", "'No'", "if S[i]=='b':\n if cy < A+B and co < B:\n cy += 1\n co += 1\n print('Yes')\n else:\n print('No')\n ", "S[i]=='b'", "S[i]", "S", "i", "'b'", "if cy < A+B and co < B:\n cy += 1\n co += 1\n print('Yes')\n else:\n print('No')\n ", "cy < A+B and co < B", "cy < A+B", "cy", "A+B", "A", "B", "co < B", "co", "B", "cy += 1", "cy", "1", "co += 1", "co", "1", "print('Yes')", "print", "'Yes'", "print('No')", "print", "'No'", "if S[i]=='c':\n print('No')", "S[i]=='c'", "S[i]", "S", "i", "'c'", "print('No')", "print", "'No'", "B = map(int, input().split())", "map(int, input().split())", "B", "A, B = map(int, input().split())", "map(int, input().split())", "A", "S = list(input())", "list(input())", "S", "cy = 0", "0", "cy", "N, A, B = map(int, input().split())", "map(int, input().split())", "N", "cy += 1", "1", "cy", "co += 1", "1", "co", "co = 0", "0", "co", "cy += 1", "1", "cy" ]
N, A, B = map(int, input().split()) S = list(input()) cy = 0 co = 0 for i in range(N): if S[i]=='a': if cy < A+B: cy += 1 print('Yes') else: print('No') if S[i]=='b': if cy < A+B and co < B: cy += 1 co += 1 print('Yes') else: print('No') if S[i]=='c': print('No')
[ 7, 0, 13, 4, 13, 13, 4, 18, 4, 13, 13, 13, 13, 0, 13, 4, 13, 4, 13, 0, 13, 17, 0, 13, 17, 28, 13, 4, 13, 13, 14, 2, 18, 13, 13, 17, 4, 13, 17, 14, 2, 18, 13, 13, 17, 14, 2, 2, 2, 13, 13, 2, 13, 13, 2, 13, 13, 4, 13, 17, 0, 13, 17, 4, 13, 17, 14, 2, 18, 13, 13, 17, 14, 2, 2, 13, 13, 2, 13, 13, 4, 13, 17, 4, 13, 17, 0, 13, 17, 10, 17, 13, 10, 4, 13, 10, 17, 13, 10, 4, 13, 10, 17, 13, 10, 4, 13, 10, 4, 13, 10, 17, 13 ]
[ [ 105, 2 ], [ 105, 11 ], [ 105, 12 ], [ 108, 14 ], [ 111, 20 ], [ 90, 23 ], [ 27, 26 ], [ 106, 29 ], [ 109, 33 ], [ 26, 34 ], [ 109, 42 ], [ 26, 43 ], [ 112, 49 ], [ 97, 49 ], [ 91, 50 ], [ 103, 50 ], [ 94, 52 ], [ 100, 53 ], [ 91, 55 ], [ 103, 55 ], [ 100, 56 ], [ 102, 61 ], [ 109, 69 ], [ 26, 70 ], [ 112, 75 ], [ 97, 75 ], [ 91, 76 ], [ 103, 76 ], [ 94, 78 ], [ 100, 79 ], [ 96, 87 ], [ 90, 91 ], [ 105, 94 ], [ 96, 97 ], [ 105, 100 ], [ 102, 103 ], [ 105, 106 ], [ 108, 109 ], [ 111, 112 ] ]
[ "n,A,B=map(int,input().split())\ncontestant=list(input())\naa=0\nbb=0\nfor i in range(n):\n if contestant[i]==\"c\":\n print(\"No\")\n elif contestant[i]==\"b\":\n if aa+bb<A+B and bb<B:\n print(\"Yes\")\n bb+=1\n else:\n print(\"No\")\n \n elif contestant[i]==\"a\":\n if aa+bb<A+B:\n print(\"Yes\")\n else:\n print(\"No\")\n aa+=1", "n,A,B=map(int,input().split())", "n", "map(int,input().split())", "map", "int", "input().split()", "().split", "()", "input", "split", "A", "B", "contestant=list(input())", "contestant", "list(input())", "list", "input()", "input", "aa=0", "aa", "0", "bb=0", "bb", "0", "for i in range(n):\n if contestant[i]==\"c\":\n print(\"No\")\n elif contestant[i]==\"b\":\n if aa+bb<A+B and bb<B:\n print(\"Yes\")\n bb+=1\n else:\n print(\"No\")\n \n elif contestant[i]==\"a\":\n if aa+bb<A+B:\n print(\"Yes\")\n else:\n print(\"No\")\n aa+=1", "i", "range(n)", "range", "n", "if contestant[i]==\"c\":\n print(\"No\")\n elif contestant[i]==\"b\":\n if aa+bb<A+B and bb<B:\n print(\"Yes\")\n bb+=1\n else:\n print(\"No\")\n \n elif contestant[i]==\"a\":\n if aa+bb<A+B:\n print(\"Yes\")\n else:\n print(\"No\")\n aa+=1", "contestant[i]==\"c\"", "contestant[i]", "contestant", "i", "\"c\"", "print(\"No\")", "print", "\"No\"", "elif contestant[i]==\"b\":\n if aa+bb<A+B and bb<B:\n print(\"Yes\")\n bb+=1\n else:\n print(\"No\")\n \n ", "contestant[i]==\"b\"", "contestant[i]", "contestant", "i", "\"b\"", "if aa+bb<A+B and bb<B:\n print(\"Yes\")\n bb+=1\n else:\n print(\"No\")\n \n ", "aa+bb<A+B and bb<B", "aa+bb<A+B", "aa+bb", "aa", "bb", "A+B", "A", "B", "bb<B", "bb", "B", "print(\"Yes\")", "print", "\"Yes\"", "bb+=1", "bb", "1", "print(\"No\")", "print", "\"No\"", "elif contestant[i]==\"a\":\n if aa+bb<A+B:\n print(\"Yes\")\n else:\n print(\"No\")\n aa+=1", "contestant[i]==\"a\"", "contestant[i]", "contestant", "i", "\"a\"", "if aa+bb<A+B:\n print(\"Yes\")\n else:\n print(\"No\")\n ", "aa+bb<A+B", "aa+bb", "aa", "bb", "A+B", "A", "B", "print(\"Yes\")", "print", "\"Yes\"", "print(\"No\")", "print", "\"No\"", "aa+=1", "aa", "1", "bb=0", "0", "bb", "A,B=map(int,input().split())", "map(int,input().split())", "A", "aa+=1", "1", "aa", "B=map(int,input().split())", "map(int,input().split())", "B", "bb+=1", "1", "bb", "n,A,B=map(int,input().split())", "map(int,input().split())", "n", "contestant=list(input())", "list(input())", "contestant", "aa=0", "0", "aa" ]
n,A,B=map(int,input().split()) contestant=list(input()) aa=0 bb=0 for i in range(n): if contestant[i]=="c": print("No") elif contestant[i]=="b": if aa+bb<A+B and bb<B: print("Yes") bb+=1 else: print("No") elif contestant[i]=="a": if aa+bb<A+B: print("Yes") else: print("No") aa+=1
[ 7, 41, 28, 13, 4, 18, 4, 13, 13, 4, 4, 13, 13, 0, 13, 13, 13, 13, 0, 13, 4, 13, 0, 13, 17, 0, 13, 17, 28, 13, 13, 14, 2, 13, 17, 14, 2, 13, 2, 13, 13, 0, 13, 17, 4, 13, 17, 9, 14, 2, 13, 17, 14, 2, 2, 13, 2, 13, 13, 2, 13, 13, 0, 13, 17, 0, 13, 17, 4, 13, 17, 9, 4, 13, 17, 10, 13, 13, 10, 13, 13, 10, 4, 13, 10, 17, 13, 10, 17, 13, 10, 17, 13, 10, 17, 13, 10, 17, 13, 10, 13, 13 ]
[ [ 4, 3 ], [ 3, 12 ], [ 100, 14 ], [ 100, 16 ], [ 100, 17 ], [ 82, 19 ], [ 94, 23 ], [ 85, 26 ], [ 30, 29 ], [ 83, 29 ], [ 29, 33 ], [ 95, 37 ], [ 92, 37 ], [ 89, 37 ], [ 101, 39 ], [ 80, 40 ], [ 88, 42 ], [ 29, 50 ], [ 89, 55 ], [ 95, 55 ], [ 92, 55 ], [ 101, 57 ], [ 80, 58 ], [ 86, 60 ], [ 98, 60 ], [ 80, 61 ], [ 91, 63 ], [ 97, 66 ], [ 100, 77 ], [ 100, 80 ], [ 82, 83 ], [ 85, 86 ], [ 88, 89 ], [ 91, 92 ], [ 94, 95 ], [ 97, 98 ], [ 100, 101 ] ]
[ "N, A, B = [int(x) for x in input().split()]\nS = input()\n\nrank = 0\nforeign_rank = 0\nfor i in S:\n if i == 'a':\n if rank < A + B:\n rank += 1\n print('Yes')\n continue\n\n if i == 'b':\n if rank < A + B and foreign_rank < B:\n rank += 1\n foreign_rank += 1\n print('Yes')\n continue\n\n print('No')", "int(x) for x in input().split()", "for x in input().split()", "x", "input().split()", "().split", "()", "input", "split", "for x in input().split()", "int(x)", "int", "x", "N, A, B = [int(x) for x in input().split()]", "N", "[int(x) for x in input().split()]", "A", "B", "S = input()", "S", "input()", "input", "rank = 0", "rank", "0", "foreign_rank = 0", "foreign_rank", "0", "for i in S:\n if i == 'a':\n if rank < A + B:\n rank += 1\n print('Yes')\n continue\n\n if i == 'b':\n if rank < A + B and foreign_rank < B:\n rank += 1\n foreign_rank += 1\n print('Yes')\n continue\n\n print('No')", "i", "S", "if i == 'a':\n if rank < A + B:\n rank += 1\n print('Yes')\n continue\n\n ", "i == 'a'", "i", "'a'", "if rank < A + B:\n rank += 1\n print('Yes')\n continue\n\n ", "rank < A + B", "rank", "A + B", "A", "B", "rank += 1", "rank", "1", "print('Yes')", "print", "'Yes'", "continue", "if i == 'b':\n if rank < A + B and foreign_rank < B:\n rank += 1\n foreign_rank += 1\n print('Yes')\n continue\n\n ", "i == 'b'", "i", "'b'", "if rank < A + B and foreign_rank < B:\n rank += 1\n foreign_rank += 1\n print('Yes')\n continue\n\n ", "rank < A + B and foreign_rank < B", "rank < A + B", "rank", "A + B", "A", "B", "foreign_rank < B", "foreign_rank", "B", "rank += 1", "rank", "1", "foreign_rank += 1", "foreign_rank", "1", "print('Yes')", "print", "'Yes'", "continue", "print('No')", "print", "'No'", "N, A, B = [int(x) for x in input().split()]", "[int(x) for x in input().split()]", "N", "B = [int(x) for x in input().split()]", "[int(x) for x in input().split()]", "B", "S = input()", "input()", "S", "foreign_rank = 0", "0", "foreign_rank", "rank += 1", "1", "rank", "rank += 1", "1", "rank", "rank = 0", "0", "rank", "foreign_rank += 1", "1", "foreign_rank", "A, B = [int(x) for x in input().split()]", "[int(x) for x in input().split()]", "A" ]
N, A, B = [int(x) for x in input().split()] S = input() rank = 0 foreign_rank = 0 for i in S: if i == 'a': if rank < A + B: rank += 1 print('Yes') continue if i == 'b': if rank < A + B and foreign_rank < B: rank += 1 foreign_rank += 1 print('Yes') continue print('No')
[ 7, 0, 13, 4, 13, 4, 13, 13, 4, 18, 4, 13, 13, 13, 13, 0, 13, 4, 13, 0, 13, 17, 0, 13, 17, 28, 13, 13, 14, 2, 2, 13, 17, 2, 13, 2, 13, 13, 4, 13, 17, 0, 13, 17, 9, 14, 2, 2, 2, 13, 17, 2, 13, 2, 13, 13, 2, 13, 13, 4, 13, 17, 0, 13, 17, 0, 13, 17, 9, 4, 13, 17, 10, 4, 13, 10, 17, 13, 10, 17, 13, 10, 4, 13, 10, 17, 13, 10, 17, 13, 10, 4, 13, 10, 4, 13, 10, 17, 13 ]
[ [ 94, 2 ], [ 94, 13 ], [ 94, 14 ], [ 91, 16 ], [ 97, 20 ], [ 76, 23 ], [ 27, 26 ], [ 92, 26 ], [ 26, 31 ], [ 98, 34 ], [ 86, 34 ], [ 89, 34 ], [ 95, 36 ], [ 83, 37 ], [ 88, 42 ], [ 26, 49 ], [ 89, 52 ], [ 98, 52 ], [ 86, 52 ], [ 95, 54 ], [ 83, 55 ], [ 77, 57 ], [ 80, 57 ], [ 83, 58 ], [ 85, 63 ], [ 79, 66 ], [ 94, 74 ], [ 76, 77 ], [ 79, 80 ], [ 94, 83 ], [ 85, 86 ], [ 88, 89 ], [ 91, 92 ], [ 94, 95 ], [ 97, 98 ] ]
[ "n, a, b = list(map(int, input().split()))\ns = input()\n\ncnt = 0\noversea = 0\n\nfor each in s:\n if each == 'a' and cnt < a + b:\n print('Yes')\n cnt += 1\n continue\n if each == 'b' and cnt < a + b and oversea < b:\n print('Yes')\n cnt += 1\n oversea += 1\n continue\n else:\n print('No')", "n, a, b = list(map(int, input().split()))", "n", "list(map(int, input().split()))", "list", "map(int, input().split())", "map", "int", "input().split()", "().split", "()", "input", "split", "a", "b", "s = input()", "s", "input()", "input", "cnt = 0", "cnt", "0", "oversea = 0", "oversea", "0", "for each in s:\n if each == 'a' and cnt < a + b:\n print('Yes')\n cnt += 1\n continue\n if each == 'b' and cnt < a + b and oversea < b:\n print('Yes')\n cnt += 1\n oversea += 1\n continue\n else:\n print('No')", "each", "s", "if each == 'a' and cnt < a + b:\n print('Yes')\n cnt += 1\n continue\n ", "each == 'a' and cnt < a + b", "each == 'a'", "each", "'a'", "cnt < a + b", "cnt", "a + b", "a", "b", "print('Yes')", "print", "'Yes'", "cnt += 1", "cnt", "1", "continue", "if each == 'b' and cnt < a + b and oversea < b:\n print('Yes')\n cnt += 1\n oversea += 1\n continue\n else:\n print('No')", "each == 'b' and cnt < a + b and oversea < b", "each == 'b' and cnt < a + b", "each == 'b'", "each", "'b'", "cnt < a + b", "cnt", "a + b", "a", "b", "oversea < b", "oversea", "b", "print('Yes')", "print", "'Yes'", "cnt += 1", "cnt", "1", "oversea += 1", "oversea", "1", "continue", "print('No')", "print", "'No'", "n, a, b = list(map(int, input().split()))", "list(map(int, input().split()))", "n", "oversea = 0", "0", "oversea", "oversea += 1", "1", "oversea", "b = list(map(int, input().split()))", "list(map(int, input().split()))", "b", "cnt += 1", "1", "cnt", "cnt += 1", "1", "cnt", "s = input()", "input()", "s", "a, b = list(map(int, input().split()))", "list(map(int, input().split()))", "a", "cnt = 0", "0", "cnt" ]
n, a, b = list(map(int, input().split())) s = input() cnt = 0 oversea = 0 for each in s: if each == 'a' and cnt < a + b: print('Yes') cnt += 1 continue if each == 'b' and cnt < a + b and oversea < b: print('Yes') cnt += 1 oversea += 1 continue else: print('No')
[ 7, 0, 13, 4, 13, 4, 13, 13, 4, 18, 4, 13, 13, 0, 13, 4, 13, 4, 13, 0, 13, 2, 18, 13, 17, 18, 13, 17, 0, 13, 17, 0, 13, 17, 28, 13, 4, 13, 18, 13, 17, 14, 2, 18, 13, 13, 17, 14, 2, 13, 13, 0, 13, 17, 4, 13, 17, 4, 13, 17, 14, 2, 18, 13, 13, 17, 14, 2, 2, 13, 13, 2, 13, 18, 13, 17, 0, 13, 17, 0, 13, 17, 4, 13, 17, 4, 13, 17, 14, 2, 18, 13, 13, 17, 4, 13, 17, 10, 4, 13, 10, 17, 13, 10, 17, 13, 10, 17, 13, 10, 17, 13, 10, 2, 13, 10, 17, 13, 10, 4, 13 ]
[ [ 119, 2 ], [ 98, 14 ], [ 113, 20 ], [ 120, 23 ], [ 120, 26 ], [ 104, 29 ], [ 110, 32 ], [ 36, 35 ], [ 120, 39 ], [ 99, 44 ], [ 35, 45 ], [ 105, 49 ], [ 102, 49 ], [ 108, 49 ], [ 114, 50 ], [ 107, 52 ], [ 99, 63 ], [ 35, 64 ], [ 105, 69 ], [ 102, 69 ], [ 108, 69 ], [ 114, 70 ], [ 111, 72 ], [ 117, 72 ], [ 120, 74 ], [ 101, 77 ], [ 116, 80 ], [ 99, 91 ], [ 35, 92 ], [ 98, 99 ], [ 101, 102 ], [ 104, 105 ], [ 107, 108 ], [ 110, 111 ], [ 113, 114 ], [ 116, 117 ], [ 119, 120 ] ]
[ "N = list(map(int,input().split()))#array = list(map(int, input().strip().split()))\njob = list(input())\n\nAB = N[1] + N[2]\nx = 0\ny = 0\n\nfor i in range(N[0] ):\n if job[i] == \"a\":\n if x < AB:\n x += 1\n print(\"Yes\")\n else:\n print(\"No\")\n \n elif job[i] == \"b\":\n if x < AB and y < N[2]:\n x += 1\n y += 1\n print(\"Yes\")\n else:\n print(\"No\")\n \n elif job[i] == \"c\":\n print(\"No\")", "N = list(map(int,input().split()))", "N", "list(map(int,input().split()))", "list", "map(int,input().split())", "map", "int", "input().split()", "().split", "()", "input", "split", "job = list(input())", "job", "list(input())", "list", "input()", "input", "AB = N[1] + N[2]", "AB", "N[1] + N[2]", "N[1]", "N", "1", "N[2]", "N", "2", "x = 0", "x", "0", "y = 0", "y", "0", "for i in range(N[0] ):\n if job[i] == \"a\":\n if x < AB:\n x += 1\n print(\"Yes\")\n else:\n print(\"No\")\n \n elif job[i] == \"b\":\n if x < AB and y < N[2]:\n x += 1\n y += 1\n print(\"Yes\")\n else:\n print(\"No\")\n \n elif job[i] == \"c\":\n print(\"No\")", "i", "range(N[0] )", "range", "N[0]", "N", "0", "if job[i] == \"a\":\n if x < AB:\n x += 1\n print(\"Yes\")\n else:\n print(\"No\")\n \n elif job[i] == \"b\":\n if x < AB and y < N[2]:\n x += 1\n y += 1\n print(\"Yes\")\n else:\n print(\"No\")\n \n elif job[i] == \"c\":\n print(\"No\")", "job[i] == \"a\"", "job[i]", "job", "i", "\"a\"", "if x < AB:\n x += 1\n print(\"Yes\")\n else:\n print(\"No\")\n \n ", "x < AB", "x", "AB", "x += 1", "x", "1", "print(\"Yes\")", "print", "\"Yes\"", "print(\"No\")", "print", "\"No\"", "elif job[i] == \"b\":\n if x < AB and y < N[2]:\n x += 1\n y += 1\n print(\"Yes\")\n else:\n print(\"No\")\n \n ", "job[i] == \"b\"", "job[i]", "job", "i", "\"b\"", "if x < AB and y < N[2]:\n x += 1\n y += 1\n print(\"Yes\")\n else:\n print(\"No\")\n \n ", "x < AB and y < N[2]", "x < AB", "x", "AB", "y < N[2]", "y", "N[2]", "N", "2", "x += 1", "x", "1", "y += 1", "y", "1", "print(\"Yes\")", "print", "\"Yes\"", "print(\"No\")", "print", "\"No\"", "elif job[i] == \"c\":\n print(\"No\")", "job[i] == \"c\"", "job[i]", "job", "i", "\"c\"", "print(\"No\")", "print", "\"No\"", "job = list(input())", "list(input())", "job", "x += 1", "1", "x", "x = 0", "0", "x", "x += 1", "1", "x", "y = 0", "0", "y", "AB = N[1] + N[2]", "N[1] + N[2]", "AB", "y += 1", "1", "y", "N = list(map(int,input().split()))", "list(map(int,input().split()))", "N" ]
N = list(map(int,input().split()))#array = list(map(int, input().strip().split())) job = list(input()) AB = N[1] + N[2] x = 0 y = 0 for i in range(N[0] ): if job[i] == "a": if x < AB: x += 1 print("Yes") else: print("No") elif job[i] == "b": if x < AB and y < N[2]: x += 1 y += 1 print("Yes") else: print("No") elif job[i] == "c": print("No")
[ 7, 0, 13, 4, 13, 4, 13, 13, 4, 18, 4, 13, 13, 13, 13, 0, 13, 4, 13, 0, 13, 17, 13, 17, 28, 13, 4, 13, 13, 14, 2, 18, 13, 13, 17, 4, 13, 17, 14, 2, 18, 13, 13, 17, 14, 2, 2, 13, 2, 13, 13, 2, 13, 13, 4, 13, 17, 0, 13, 17, 0, 13, 17, 4, 13, 17, 14, 2, 18, 13, 13, 17, 14, 2, 13, 2, 13, 13, 4, 13, 17, 0, 13, 17, 4, 13, 17, 10, 4, 13, 10, 17, 13, 10, 4, 13, 10, 17, 13, 10, 17, 13, 10, 4, 13, 10, 4, 13, 10, 17, 13, 10, 17, 13 ]
[ [ 106, 2 ], [ 106, 13 ], [ 106, 14 ], [ 94, 16 ], [ 97, 20 ], [ 112, 22 ], [ 26, 25 ], [ 104, 28 ], [ 95, 32 ], [ 25, 33 ], [ 95, 41 ], [ 25, 42 ], [ 98, 47 ], [ 92, 47 ], [ 101, 47 ], [ 89, 49 ], [ 107, 50 ], [ 113, 52 ], [ 110, 52 ], [ 107, 53 ], [ 100, 58 ], [ 109, 61 ], [ 95, 69 ], [ 25, 70 ], [ 98, 74 ], [ 92, 74 ], [ 101, 74 ], [ 89, 76 ], [ 107, 77 ], [ 91, 82 ], [ 106, 89 ], [ 91, 92 ], [ 94, 95 ], [ 97, 98 ], [ 100, 101 ], [ 106, 104 ], [ 106, 107 ], [ 109, 110 ], [ 112, 113 ] ]
[ "N, A, B = list(map(int, input().split()))\nS = input()\n\ntotal, kaigai = 0, 0\n\nfor i in range(N):\n if S[i] == 'c':\n print('No')\n\n elif S[i] == 'b':\n if total < A+B and kaigai < B:\n print('Yes')\n total += 1\n kaigai += 1\n else:\n print('No')\n\n elif S[i] == 'a':\n if total < A+B:\n print('Yes')\n total += 1\n else:\n print('No')", "N, A, B = list(map(int, input().split()))", "N", "list(map(int, input().split()))", "list", "map(int, input().split())", "map", "int", "input().split()", "().split", "()", "input", "split", "A", "B", "S = input()", "S", "input()", "input", "total, kaigai = 0, 0", "total", "0", "kaigai", "0", "for i in range(N):\n if S[i] == 'c':\n print('No')\n\n elif S[i] == 'b':\n if total < A+B and kaigai < B:\n print('Yes')\n total += 1\n kaigai += 1\n else:\n print('No')\n\n elif S[i] == 'a':\n if total < A+B:\n print('Yes')\n total += 1\n else:\n print('No')", "i", "range(N)", "range", "N", "if S[i] == 'c':\n print('No')\n\n elif S[i] == 'b':\n if total < A+B and kaigai < B:\n print('Yes')\n total += 1\n kaigai += 1\n else:\n print('No')\n\n elif S[i] == 'a':\n if total < A+B:\n print('Yes')\n total += 1\n else:\n print('No')", "S[i] == 'c'", "S[i]", "S", "i", "'c'", "print('No')", "print", "'No'", "elif S[i] == 'b':\n if total < A+B and kaigai < B:\n print('Yes')\n total += 1\n kaigai += 1\n else:\n print('No')\n\n ", "S[i] == 'b'", "S[i]", "S", "i", "'b'", "if total < A+B and kaigai < B:\n print('Yes')\n total += 1\n kaigai += 1\n else:\n print('No')\n\n ", "total < A+B and kaigai < B", "total < A+B", "total", "A+B", "A", "B", "kaigai < B", "kaigai", "B", "print('Yes')", "print", "'Yes'", "total += 1", "total", "1", "kaigai += 1", "kaigai", "1", "print('No')", "print", "'No'", "elif S[i] == 'a':\n if total < A+B:\n print('Yes')\n total += 1\n else:\n print('No')", "S[i] == 'a'", "S[i]", "S", "i", "'a'", "if total < A+B:\n print('Yes')\n total += 1\n else:\n print('No')", "total < A+B", "total", "A+B", "A", "B", "print('Yes')", "print", "'Yes'", "total += 1", "total", "1", "print('No')", "print", "'No'", "A, B = list(map(int, input().split()))", "list(map(int, input().split()))", "A", "total += 1", "1", "total", "S = input()", "input()", "S", "total, kaigai = 0, 0", "0", "total", "total += 1", "1", "total", "N, A, B = list(map(int, input().split()))", "list(map(int, input().split()))", "N", "B = list(map(int, input().split()))", "list(map(int, input().split()))", "B", "kaigai += 1", "1", "kaigai", "kaigai = 0, 0", "0", "kaigai" ]
N, A, B = list(map(int, input().split())) S = input() total, kaigai = 0, 0 for i in range(N): if S[i] == 'c': print('No') elif S[i] == 'b': if total < A+B and kaigai < B: print('Yes') total += 1 kaigai += 1 else: print('No') elif S[i] == 'a': if total < A+B: print('Yes') total += 1 else: print('No')
[ 7, 41, 28, 13, 4, 18, 4, 13, 13, 17, 4, 4, 13, 13, 0, 13, 13, 13, 13, 0, 13, 4, 13, 0, 13, 17, 0, 13, 17, 28, 13, 13, 4, 13, 13, 14, 2, 13, 17, 14, 2, 13, 2, 13, 13, 0, 13, 17, 4, 13, 17, 4, 13, 17, 14, 2, 13, 17, 0, 13, 17, 14, 2, 2, 13, 2, 13, 13, 40, 13, 13, 0, 13, 17, 4, 13, 17, 4, 13, 17, 4, 13, 17, 10, 17, 13, 10, 17, 13, 10, 13, 13, 10, 17, 13, 10, 17, 13, 10, 13, 13, 10, 17, 13, 10, 13, 13, 10, 4, 13 ]
[ [ 4, 3 ], [ 3, 13 ], [ 105, 15 ], [ 105, 17 ], [ 105, 18 ], [ 108, 20 ], [ 84, 24 ], [ 87, 27 ], [ 109, 34 ], [ 85, 41 ], [ 97, 41 ], [ 94, 41 ], [ 106, 43 ], [ 91, 44 ], [ 93, 46 ], [ 102, 59 ], [ 85, 64 ], [ 97, 64 ], [ 94, 64 ], [ 106, 66 ], [ 91, 67 ], [ 103, 69 ], [ 88, 69 ], [ 91, 70 ], [ 96, 72 ], [ 84, 85 ], [ 87, 88 ], [ 105, 91 ], [ 93, 94 ], [ 96, 97 ], [ 105, 100 ], [ 102, 103 ], [ 105, 106 ], [ 108, 109 ] ]
[ "#!/usr/bin/env python3\n\nN,A,B= [int(x) for x in input().split(\" \")]\nS = input()\n\np = 0\np_b = 0\nfor i, x in enumerate(S):\n if x == 'a':\n if p < A + B:\n p += 1\n print(\"Yes\")\n else:\n print(\"No\")\n elif x == 'b':\n p_b += 1\n if p < A + B and p_b <= B:\n p += 1\n print(\"Yes\")\n else:\n print(\"No\")\n else:\n print(\"No\")\n ", "int(x) for x in input().split(\" \")", "for x in input().split(\" \")", "x", "input().split(\" \")", "().split", "()", "input", "split", "\" \"", "for x in input().split(\" \")", "int(x)", "int", "x", "N,A,B= [int(x) for x in input().split(\" \")]", "N", "[int(x) for x in input().split(\" \")]", "A", "B", "S = input()", "S", "input()", "input", "p = 0", "p", "0", "p_b = 0", "p_b", "0", "for i, x in enumerate(S):\n if x == 'a':\n if p < A + B:\n p += 1\n print(\"Yes\")\n else:\n print(\"No\")\n elif x == 'b':\n p_b += 1\n if p < A + B and p_b <= B:\n p += 1\n print(\"Yes\")\n else:\n print(\"No\")\n else:\n print(\"No\")\n ", "i", "x", "enumerate(S)", "enumerate", "S", "if x == 'a':\n if p < A + B:\n p += 1\n print(\"Yes\")\n else:\n print(\"No\")\n elif x == 'b':\n p_b += 1\n if p < A + B and p_b <= B:\n p += 1\n print(\"Yes\")\n else:\n print(\"No\")\n else:\n print(\"No\")\n ", "x == 'a'", "x", "'a'", "if p < A + B:\n p += 1\n print(\"Yes\")\n else:\n print(\"No\")\n ", "p < A + B", "p", "A + B", "A", "B", "p += 1", "p", "1", "print(\"Yes\")", "print", "\"Yes\"", "print(\"No\")", "print", "\"No\"", "elif x == 'b':\n p_b += 1\n if p < A + B and p_b <= B:\n p += 1\n print(\"Yes\")\n else:\n print(\"No\")\n ", "x == 'b'", "x", "'b'", "p_b += 1", "p_b", "1", "if p < A + B and p_b <= B:\n p += 1\n print(\"Yes\")\n else:\n print(\"No\")\n ", "p < A + B and p_b <= B", "p < A + B", "p", "A + B", "A", "B", "p_b <= B", "p_b", "B", "p += 1", "p", "1", "print(\"Yes\")", "print", "\"Yes\"", "print(\"No\")", "print", "\"No\"", "print(\"No\")", "print", "\"No\"", "p = 0", "0", "p", "p_b = 0", "0", "p_b", "B= [int(x) for x in input().split(\" \")]", "[int(x) for x in input().split(\" \")]", "B", "p += 1", "1", "p", "p += 1", "1", "p", "N,A,B= [int(x) for x in input().split(\" \")]", "[int(x) for x in input().split(\" \")]", "N", "p_b += 1", "1", "p_b", "A,B= [int(x) for x in input().split(\" \")]", "[int(x) for x in input().split(\" \")]", "A", "S = input()", "input()", "S" ]
#!/usr/bin/env python3 N,A,B= [int(x) for x in input().split(" ")] S = input() p = 0 p_b = 0 for i, x in enumerate(S): if x == 'a': if p < A + B: p += 1 print("Yes") else: print("No") elif x == 'b': p_b += 1 if p < A + B and p_b <= B: p += 1 print("Yes") else: print("No") else: print("No")
[ 7, 0, 13, 4, 13, 13, 4, 18, 4, 13, 13, 13, 13, 0, 13, 4, 13, 0, 13, 2, 13, 13, 0, 13, 17, 0, 13, 17, 28, 13, 4, 13, 13, 0, 13, 18, 13, 39, 13, 2, 13, 17, 14, 40, 13, 13, 14, 2, 13, 17, 4, 13, 17, 0, 13, 17, 14, 2, 2, 13, 17, 40, 13, 13, 4, 13, 17, 0, 13, 17, 0, 13, 17, 4, 13, 17, 4, 13, 17, 10, 17, 13, 10, 4, 13, 10, 4, 13, 10, 17, 13, 10, 4, 13, 10, 4, 13, 10, 2, 13, 10, 17, 13, 10, 17, 13, 10, 17, 13, 10, 18, 13 ]
[ [ 95, 2 ], [ 95, 11 ], [ 95, 12 ], [ 92, 14 ], [ 98, 18 ], [ 84, 20 ], [ 87, 21 ], [ 101, 23 ], [ 104, 26 ], [ 30, 29 ], [ 96, 32 ], [ 110, 34 ], [ 93, 36 ], [ 29, 40 ], [ 102, 44 ], [ 90, 44 ], [ 108, 44 ], [ 99, 45 ], [ 111, 48 ], [ 107, 54 ], [ 111, 59 ], [ 105, 62 ], [ 81, 62 ], [ 87, 63 ], [ 89, 68 ], [ 80, 71 ], [ 80, 81 ], [ 95, 84 ], [ 95, 87 ], [ 89, 90 ], [ 92, 93 ], [ 95, 96 ], [ 98, 99 ], [ 101, 102 ], [ 104, 105 ], [ 107, 108 ], [ 110, 111 ] ]
[ "N, A, B = map(int, input().split())\ns = input()\n\nx = A + B\ncnt = 1\nrank = 1\nfor i in range(N):\n y = s[i : i+1]\n if cnt <= x:\n if y == \"a\":\n print(\"Yes\")\n cnt += 1\n elif y == \"b\" and rank <= B:\n print(\"Yes\")\n cnt += 1\n rank += 1\n else:\n print(\"No\")\n else:\n print(\"No\")", "N, A, B = map(int, input().split())", "N", "map(int, input().split())", "map", "int", "input().split()", "().split", "()", "input", "split", "A", "B", "s = input()", "s", "input()", "input", "x = A + B", "x", "A + B", "A", "B", "cnt = 1", "cnt", "1", "rank = 1", "rank", "1", "for i in range(N):\n y = s[i : i+1]\n if cnt <= x:\n if y == \"a\":\n print(\"Yes\")\n cnt += 1\n elif y == \"b\" and rank <= B:\n print(\"Yes\")\n cnt += 1\n rank += 1\n else:\n print(\"No\")\n else:\n print(\"No\")", "i", "range(N)", "range", "N", "y = s[i : i+1]", "y", "s[i : i+1]", "s", "i : i+1", "i", "i+1", "i", "1", "if cnt <= x:\n if y == \"a\":\n print(\"Yes\")\n cnt += 1\n elif y == \"b\" and rank <= B:\n print(\"Yes\")\n cnt += 1\n rank += 1\n else:\n print(\"No\")\n else:\n print(\"No\")", "cnt <= x", "cnt", "x", "if y == \"a\":\n print(\"Yes\")\n cnt += 1\n elif y == \"b\" and rank <= B:\n print(\"Yes\")\n cnt += 1\n rank += 1\n else:\n print(\"No\")\n ", "y == \"a\"", "y", "\"a\"", "print(\"Yes\")", "print", "\"Yes\"", "cnt += 1", "cnt", "1", "elif y == \"b\" and rank <= B:\n print(\"Yes\")\n cnt += 1\n rank += 1\n ", "y == \"b\" and rank <= B", "y == \"b\"", "y", "\"b\"", "rank <= B", "rank", "B", "print(\"Yes\")", "print", "\"Yes\"", "cnt += 1", "cnt", "1", "rank += 1", "rank", "1", "print(\"No\")", "print", "\"No\"", "print(\"No\")", "print", "\"No\"", "rank += 1", "1", "rank", "A, B = map(int, input().split())", "map(int, input().split())", "A", "B = map(int, input().split())", "map(int, input().split())", "B", "cnt += 1", "1", "cnt", "s = input()", "input()", "s", "N, A, B = map(int, input().split())", "map(int, input().split())", "N", "x = A + B", "A + B", "x", "cnt = 1", "1", "cnt", "rank = 1", "1", "rank", "cnt += 1", "1", "cnt", "y = s[i : i+1]", "s[i : i+1]", "y" ]
N, A, B = map(int, input().split()) s = input() x = A + B cnt = 1 rank = 1 for i in range(N): y = s[i : i+1] if cnt <= x: if y == "a": print("Yes") cnt += 1 elif y == "b" and rank <= B: print("Yes") cnt += 1 rank += 1 else: print("No") else: print("No")
[ 7, 0, 13, 4, 13, 13, 4, 18, 4, 13, 13, 13, 13, 0, 13, 4, 13, 0, 13, 17, 0, 13, 17, 28, 13, 13, 14, 2, 13, 17, 14, 2, 13, 2, 13, 13, 4, 13, 17, 0, 13, 17, 4, 13, 17, 14, 2, 13, 17, 14, 2, 2, 13, 2, 13, 13, 2, 13, 13, 4, 13, 17, 0, 13, 17, 0, 13, 17, 4, 13, 17, 4, 13, 17, 10, 17, 13, 10, 17, 13, 10, 17, 13, 10, 17, 13, 10, 4, 13, 10, 4, 13, 10, 4, 13, 10, 4, 13, 10, 17, 13 ]
[ [ 96, 2 ], [ 96, 11 ], [ 96, 12 ], [ 93, 14 ], [ 75, 18 ], [ 99, 21 ], [ 25, 24 ], [ 94, 24 ], [ 24, 28 ], [ 76, 32 ], [ 85, 32 ], [ 79, 32 ], [ 97, 34 ], [ 91, 35 ], [ 78, 40 ], [ 24, 47 ], [ 76, 52 ], [ 85, 52 ], [ 79, 52 ], [ 97, 54 ], [ 91, 55 ], [ 100, 57 ], [ 82, 57 ], [ 91, 58 ], [ 81, 63 ], [ 84, 66 ], [ 75, 76 ], [ 78, 79 ], [ 81, 82 ], [ 84, 85 ], [ 96, 88 ], [ 96, 91 ], [ 93, 94 ], [ 96, 97 ], [ 99, 100 ] ]
[ "N,A,B=map(int, input().split())\nS=input()\ncount=0\nastu=0\nfor s in S:\n if s==\"a\":\n if count<A+B:\n print(\"Yes\")\n count+=1\n else:\n print(\"No\")\n elif s==\"b\":\n if count<A+B and astu<B:\n print(\"Yes\")\n astu+=1\n count+=1\n else:\n print(\"No\")\n else:\n print(\"No\")", "N,A,B=map(int, input().split())", "N", "map(int, input().split())", "map", "int", "input().split()", "().split", "()", "input", "split", "A", "B", "S=input()", "S", "input()", "input", "count=0", "count", "0", "astu=0", "astu", "0", "for s in S:\n if s==\"a\":\n if count<A+B:\n print(\"Yes\")\n count+=1\n else:\n print(\"No\")\n elif s==\"b\":\n if count<A+B and astu<B:\n print(\"Yes\")\n astu+=1\n count+=1\n else:\n print(\"No\")\n else:\n print(\"No\")", "s", "S", "if s==\"a\":\n if count<A+B:\n print(\"Yes\")\n count+=1\n else:\n print(\"No\")\n elif s==\"b\":\n if count<A+B and astu<B:\n print(\"Yes\")\n astu+=1\n count+=1\n else:\n print(\"No\")\n else:\n print(\"No\")", "s==\"a\"", "s", "\"a\"", "if count<A+B:\n print(\"Yes\")\n count+=1\n else:\n print(\"No\")\n ", "count<A+B", "count", "A+B", "A", "B", "print(\"Yes\")", "print", "\"Yes\"", "count+=1", "count", "1", "print(\"No\")", "print", "\"No\"", "elif s==\"b\":\n if count<A+B and astu<B:\n print(\"Yes\")\n astu+=1\n count+=1\n else:\n print(\"No\")\n ", "s==\"b\"", "s", "\"b\"", "if count<A+B and astu<B:\n print(\"Yes\")\n astu+=1\n count+=1\n else:\n print(\"No\")\n ", "count<A+B and astu<B", "count<A+B", "count", "A+B", "A", "B", "astu<B", "astu", "B", "print(\"Yes\")", "print", "\"Yes\"", "astu+=1", "astu", "1", "count+=1", "count", "1", "print(\"No\")", "print", "\"No\"", "print(\"No\")", "print", "\"No\"", "count=0", "0", "count", "count+=1", "1", "count", "astu+=1", "1", "astu", "count+=1", "1", "count", "N,A,B=map(int, input().split())", "map(int, input().split())", "N", "B=map(int, input().split())", "map(int, input().split())", "B", "S=input()", "input()", "S", "A,B=map(int, input().split())", "map(int, input().split())", "A", "astu=0", "0", "astu" ]
N,A,B=map(int, input().split()) S=input() count=0 astu=0 for s in S: if s=="a": if count<A+B: print("Yes") count+=1 else: print("No") elif s=="b": if count<A+B and astu<B: print("Yes") astu+=1 count+=1 else: print("No") else: print("No")
[ 7, 0, 13, 4, 13, 13, 4, 18, 4, 13, 13, 13, 13, 0, 13, 4, 13, 4, 13, 0, 13, 2, 13, 13, 0, 13, 17, 0, 13, 17, 28, 13, 13, 14, 2, 2, 13, 17, 2, 13, 17, 14, 40, 13, 13, 14, 2, 13, 17, 4, 13, 17, 0, 13, 17, 0, 13, 17, 14, 40, 13, 13, 4, 13, 17, 0, 13, 17, 4, 13, 17, 4, 13, 17, 4, 13, 17, 10, 17, 13, 10, 17, 13, 10, 17, 13, 10, 17, 13, 10, 2, 13, 10, 17, 13, 10, 4, 13, 10, 4, 13, 10, 4, 13, 10, 4, 13 ]
[ [ 102, 2 ], [ 102, 11 ], [ 102, 12 ], [ 105, 14 ], [ 90, 20 ], [ 100, 22 ], [ 103, 23 ], [ 87, 25 ], [ 93, 28 ], [ 32, 31 ], [ 106, 31 ], [ 31, 36 ], [ 31, 39 ], [ 88, 43 ], [ 82, 43 ], [ 79, 43 ], [ 91, 44 ], [ 31, 47 ], [ 78, 53 ], [ 84, 56 ], [ 85, 60 ], [ 94, 60 ], [ 103, 61 ], [ 81, 66 ], [ 78, 79 ], [ 81, 82 ], [ 84, 85 ], [ 87, 88 ], [ 90, 91 ], [ 93, 94 ], [ 102, 97 ], [ 102, 100 ], [ 102, 103 ], [ 105, 106 ] ]
[ "n, a, b = map(int, input().split())\ns = list(input())\nline = a + b\nrank = 1\nbnum = 0\nfor student in s:\n if student == \"a\" or student== \"b\":\n if rank <= line:\n\n if student == \"a\":\n print(\"Yes\")\n rank += 1\n else:\n bnum += 1\n if bnum <= b:\n print(\"Yes\")\n rank += 1\n else:\n print(\"No\")\n else:\n print(\"No\")\n else:\n # rank +=1\n print(\"No\")", "n, a, b = map(int, input().split())", "n", "map(int, input().split())", "map", "int", "input().split()", "().split", "()", "input", "split", "a", "b", "s = list(input())", "s", "list(input())", "list", "input()", "input", "line = a + b", "line", "a + b", "a", "b", "rank = 1", "rank", "1", "bnum = 0", "bnum", "0", "for student in s:\n if student == \"a\" or student== \"b\":\n if rank <= line:\n\n if student == \"a\":\n print(\"Yes\")\n rank += 1\n else:\n bnum += 1\n if bnum <= b:\n print(\"Yes\")\n rank += 1\n else:\n print(\"No\")\n else:\n print(\"No\")\n else:\n # rank +=1\n print(\"No\")", "student", "s", "if student == \"a\" or student== \"b\":\n if rank <= line:\n\n if student == \"a\":\n print(\"Yes\")\n rank += 1\n else:\n bnum += 1\n if bnum <= b:\n print(\"Yes\")\n rank += 1\n else:\n print(\"No\")\n else:\n print(\"No\")\n else:\n # rank +=1\n print(\"No\")", "student == \"a\" or student== \"b\"", "student == \"a\"", "student", "\"a\"", "student== \"b\"", "student", "\"b\"", "if rank <= line:\n\n if student == \"a\":\n print(\"Yes\")\n rank += 1\n else:\n bnum += 1\n if bnum <= b:\n print(\"Yes\")\n rank += 1\n else:\n print(\"No\")\n else:\n print(\"No\")\n ", "rank <= line", "rank", "line", "if student == \"a\":\n print(\"Yes\")\n rank += 1\n else:\n bnum += 1\n if bnum <= b:\n print(\"Yes\")\n rank += 1\n else:\n print(\"No\")\n ", "student == \"a\"", "student", "\"a\"", "print(\"Yes\")", "print", "\"Yes\"", "rank += 1", "rank", "1", "bnum += 1", "bnum", "1", "if bnum <= b:\n print(\"Yes\")\n rank += 1\n else:\n print(\"No\")\n ", "bnum <= b", "bnum", "b", "print(\"Yes\")", "print", "\"Yes\"", "rank += 1", "rank", "1", "print(\"No\")", "print", "\"No\"", "print(\"No\")", "print", "\"No\"", "print(\"No\")", "print", "\"No\"", "rank += 1", "1", "rank", "rank += 1", "1", "rank", "bnum += 1", "1", "bnum", "rank = 1", "1", "rank", "line = a + b", "a + b", "line", "bnum = 0", "0", "bnum", "n, a, b = map(int, input().split())", "map(int, input().split())", "n", "a, b = map(int, input().split())", "map(int, input().split())", "a", "b = map(int, input().split())", "map(int, input().split())", "b", "s = list(input())", "list(input())", "s" ]
n, a, b = map(int, input().split()) s = list(input()) line = a + b rank = 1 bnum = 0 for student in s: if student == "a" or student== "b": if rank <= line: if student == "a": print("Yes") rank += 1 else: bnum += 1 if bnum <= b: print("Yes") rank += 1 else: print("No") else: print("No") else: # rank +=1 print("No")
[ 7, 0, 13, 4, 13, 13, 4, 18, 4, 13, 13, 13, 13, 0, 13, 4, 13, 0, 13, 2, 13, 13, 0, 13, 17, 0, 13, 17, 28, 13, 13, 14, 40, 13, 13, 4, 13, 17, 9, 14, 2, 13, 17, 0, 13, 17, 4, 13, 17, 14, 2, 13, 17, 14, 2, 13, 13, 0, 13, 17, 0, 13, 17, 4, 13, 17, 4, 13, 17, 4, 13, 17, 10, 17, 13, 10, 4, 13, 10, 17, 13, 10, 4, 13, 10, 4, 13, 10, 17, 13, 10, 17, 13, 10, 17, 13, 10, 2, 13, 10, 4, 13 ]
[ [ 100, 2 ], [ 100, 11 ], [ 100, 12 ], [ 85, 14 ], [ 97, 18 ], [ 77, 20 ], [ 83, 21 ], [ 79, 23 ], [ 91, 26 ], [ 30, 29 ], [ 86, 29 ], [ 80, 33 ], [ 95, 33 ], [ 74, 33 ], [ 98, 34 ], [ 29, 41 ], [ 73, 44 ], [ 29, 51 ], [ 92, 55 ], [ 89, 55 ], [ 83, 56 ], [ 94, 58 ], [ 88, 61 ], [ 73, 74 ], [ 100, 77 ], [ 79, 80 ], [ 100, 83 ], [ 85, 86 ], [ 88, 89 ], [ 91, 92 ], [ 94, 95 ], [ 97, 98 ], [ 100, 101 ] ]
[ "N, A, B = map(int, input().split())\nS = input()\n\nx = A + B\ncnt = 0\nbcnt = 0\nfor s in S:\n if cnt >= x:\n print(\"No\")\n continue\n if s == \"a\":\n cnt += 1\n print(\"Yes\")\n elif s == \"b\":\n if bcnt < B:\n cnt += 1\n bcnt += 1\n print(\"Yes\")\n else:\n print(\"No\")\n else:\n print(\"No\")", "N, A, B = map(int, input().split())", "N", "map(int, input().split())", "map", "int", "input().split()", "().split", "()", "input", "split", "A", "B", "S = input()", "S", "input()", "input", "x = A + B", "x", "A + B", "A", "B", "cnt = 0", "cnt", "0", "bcnt = 0", "bcnt", "0", "for s in S:\n if cnt >= x:\n print(\"No\")\n continue\n if s == \"a\":\n cnt += 1\n print(\"Yes\")\n elif s == \"b\":\n if bcnt < B:\n cnt += 1\n bcnt += 1\n print(\"Yes\")\n else:\n print(\"No\")\n else:\n print(\"No\")", "s", "S", "if cnt >= x:\n print(\"No\")\n continue\n ", "cnt >= x", "cnt", "x", "print(\"No\")", "print", "\"No\"", "continue", "if s == \"a\":\n cnt += 1\n print(\"Yes\")\n elif s == \"b\":\n if bcnt < B:\n cnt += 1\n bcnt += 1\n print(\"Yes\")\n else:\n print(\"No\")\n else:\n print(\"No\")", "s == \"a\"", "s", "\"a\"", "cnt += 1", "cnt", "1", "print(\"Yes\")", "print", "\"Yes\"", "elif s == \"b\":\n if bcnt < B:\n cnt += 1\n bcnt += 1\n print(\"Yes\")\n else:\n print(\"No\")\n ", "s == \"b\"", "s", "\"b\"", "if bcnt < B:\n cnt += 1\n bcnt += 1\n print(\"Yes\")\n else:\n print(\"No\")\n ", "bcnt < B", "bcnt", "B", "cnt += 1", "cnt", "1", "bcnt += 1", "bcnt", "1", "print(\"Yes\")", "print", "\"Yes\"", "print(\"No\")", "print", "\"No\"", "print(\"No\")", "print", "\"No\"", "cnt += 1", "1", "cnt", "A, B = map(int, input().split())", "map(int, input().split())", "A", "cnt = 0", "0", "cnt", "B = map(int, input().split())", "map(int, input().split())", "B", "S = input()", "input()", "S", "bcnt += 1", "1", "bcnt", "bcnt = 0", "0", "bcnt", "cnt += 1", "1", "cnt", "x = A + B", "A + B", "x", "N, A, B = map(int, input().split())", "map(int, input().split())", "N" ]
N, A, B = map(int, input().split()) S = input() x = A + B cnt = 0 bcnt = 0 for s in S: if cnt >= x: print("No") continue if s == "a": cnt += 1 print("Yes") elif s == "b": if bcnt < B: cnt += 1 bcnt += 1 print("Yes") else: print("No") else: print("No")
[ 7, 0, 13, 4, 13, 13, 4, 18, 4, 13, 13, 13, 13, 0, 13, 4, 13, 0, 13, 17, 0, 13, 17, 28, 13, 13, 14, 2, 13, 17, 14, 2, 2, 13, 13, 2, 13, 13, 4, 13, 17, 0, 13, 17, 4, 13, 17, 14, 2, 13, 17, 14, 2, 2, 2, 13, 13, 2, 13, 13, 2, 13, 13, 4, 13, 17, 0, 13, 17, 4, 13, 17, 4, 13, 17, 10, 4, 13, 10, 4, 13, 10, 4, 13, 10, 17, 13, 10, 17, 13, 10, 4, 13, 10, 17, 13, 10, 17, 13 ]
[ [ 91, 2 ], [ 91, 11 ], [ 91, 12 ], [ 82, 14 ], [ 94, 18 ], [ 97, 21 ], [ 25, 24 ], [ 83, 24 ], [ 24, 28 ], [ 95, 33 ], [ 89, 33 ], [ 98, 34 ], [ 86, 34 ], [ 77, 36 ], [ 80, 37 ], [ 88, 42 ], [ 24, 49 ], [ 95, 55 ], [ 89, 55 ], [ 98, 56 ], [ 86, 56 ], [ 77, 58 ], [ 80, 59 ], [ 98, 61 ], [ 86, 61 ], [ 80, 62 ], [ 85, 67 ], [ 91, 77 ], [ 91, 80 ], [ 82, 83 ], [ 85, 86 ], [ 88, 89 ], [ 91, 92 ], [ 94, 95 ], [ 97, 98 ] ]
[ "n,A,B = map(int, input().split())\ns = input()\na_count = 0\nb_count = 0\nfor i in s:\n if i == 'a':\n if a_count + b_count < A + B:\n print('Yes')\n a_count += 1\n else:\n print('No')\n elif i == 'b':\n if a_count + b_count < A + B and b_count < B:\n print('Yes')\n b_count += 1\n else:\n print('No')\n else:\n print('No')", "n,A,B = map(int, input().split())", "n", "map(int, input().split())", "map", "int", "input().split()", "().split", "()", "input", "split", "A", "B", "s = input()", "s", "input()", "input", "a_count = 0", "a_count", "0", "b_count = 0", "b_count", "0", "for i in s:\n if i == 'a':\n if a_count + b_count < A + B:\n print('Yes')\n a_count += 1\n else:\n print('No')\n elif i == 'b':\n if a_count + b_count < A + B and b_count < B:\n print('Yes')\n b_count += 1\n else:\n print('No')\n else:\n print('No')", "i", "s", "if i == 'a':\n if a_count + b_count < A + B:\n print('Yes')\n a_count += 1\n else:\n print('No')\n elif i == 'b':\n if a_count + b_count < A + B and b_count < B:\n print('Yes')\n b_count += 1\n else:\n print('No')\n else:\n print('No')", "i == 'a'", "i", "'a'", "if a_count + b_count < A + B:\n print('Yes')\n a_count += 1\n else:\n print('No')\n ", "a_count + b_count < A + B", "a_count + b_count", "a_count", "b_count", "A + B", "A", "B", "print('Yes')", "print", "'Yes'", "a_count += 1", "a_count", "1", "print('No')", "print", "'No'", "elif i == 'b':\n if a_count + b_count < A + B and b_count < B:\n print('Yes')\n b_count += 1\n else:\n print('No')\n ", "i == 'b'", "i", "'b'", "if a_count + b_count < A + B and b_count < B:\n print('Yes')\n b_count += 1\n else:\n print('No')\n ", "a_count + b_count < A + B and b_count < B", "a_count + b_count < A + B", "a_count + b_count", "a_count", "b_count", "A + B", "A", "B", "b_count < B", "b_count", "B", "print('Yes')", "print", "'Yes'", "b_count += 1", "b_count", "1", "print('No')", "print", "'No'", "print('No')", "print", "'No'", "A,B = map(int, input().split())", "map(int, input().split())", "A", "B = map(int, input().split())", "map(int, input().split())", "B", "s = input()", "input()", "s", "b_count += 1", "1", "b_count", "a_count += 1", "1", "a_count", "n,A,B = map(int, input().split())", "map(int, input().split())", "n", "a_count = 0", "0", "a_count", "b_count = 0", "0", "b_count" ]
n,A,B = map(int, input().split()) s = input() a_count = 0 b_count = 0 for i in s: if i == 'a': if a_count + b_count < A + B: print('Yes') a_count += 1 else: print('No') elif i == 'b': if a_count + b_count < A + B and b_count < B: print('Yes') b_count += 1 else: print('No') else: print('No')
[ 7, 0, 13, 4, 13, 13, 4, 18, 4, 13, 13, 13, 13, 0, 13, 4, 13, 0, 13, 17, 0, 13, 17, 28, 13, 13, 14, 2, 2, 13, 17, 2, 13, 2, 13, 13, 0, 13, 17, 4, 13, 17, 14, 2, 13, 17, 0, 13, 17, 14, 2, 2, 13, 2, 13, 13, 2, 13, 2, 13, 17, 0, 13, 17, 4, 13, 17, 4, 13, 17, 4, 13, 17, 10, 17, 13, 10, 17, 13, 10, 4, 13, 10, 4, 13, 10, 4, 13, 10, 4, 13, 10, 17, 13, 10, 17, 13, 10, 17, 13 ]
[ [ 89, 2 ], [ 89, 11 ], [ 89, 12 ], [ 83, 14 ], [ 77, 18 ], [ 95, 21 ], [ 25, 24 ], [ 84, 24 ], [ 24, 29 ], [ 78, 32 ], [ 99, 32 ], [ 93, 32 ], [ 90, 34 ], [ 87, 35 ], [ 92, 37 ], [ 24, 44 ], [ 74, 47 ], [ 78, 52 ], [ 99, 52 ], [ 93, 52 ], [ 90, 54 ], [ 87, 55 ], [ 75, 57 ], [ 96, 57 ], [ 87, 59 ], [ 98, 62 ], [ 74, 75 ], [ 77, 78 ], [ 89, 81 ], [ 83, 84 ], [ 89, 87 ], [ 89, 90 ], [ 92, 93 ], [ 95, 96 ], [ 98, 99 ] ]
[ "N,A,B=map(int,input().split())\nS=input()\n\nPass=0\ncount=0\nfor s in S:\n if s=='a' and Pass<A+B:\n Pass+=1\n print('Yes')\n elif s=='b':\n count+=1\n if Pass<A+B and count<B+1:\n Pass+=1\n print('Yes')\n else:\n print('No')\n else:\n print('No')", "N,A,B=map(int,input().split())", "N", "map(int,input().split())", "map", "int", "input().split()", "().split", "()", "input", "split", "A", "B", "S=input()", "S", "input()", "input", "Pass=0", "Pass", "0", "count=0", "count", "0", "for s in S:\n if s=='a' and Pass<A+B:\n Pass+=1\n print('Yes')\n elif s=='b':\n count+=1\n if Pass<A+B and count<B+1:\n Pass+=1\n print('Yes')\n else:\n print('No')\n else:\n print('No')", "s", "S", "if s=='a' and Pass<A+B:\n Pass+=1\n print('Yes')\n elif s=='b':\n count+=1\n if Pass<A+B and count<B+1:\n Pass+=1\n print('Yes')\n else:\n print('No')\n else:\n print('No')", "s=='a' and Pass<A+B", "s=='a'", "s", "'a'", "Pass<A+B", "Pass", "A+B", "A", "B", "Pass+=1", "Pass", "1", "print('Yes')", "print", "'Yes'", "elif s=='b':\n count+=1\n if Pass<A+B and count<B+1:\n Pass+=1\n print('Yes')\n else:\n print('No')\n ", "s=='b'", "s", "'b'", "count+=1", "count", "1", "if Pass<A+B and count<B+1:\n Pass+=1\n print('Yes')\n else:\n print('No')\n ", "Pass<A+B and count<B+1", "Pass<A+B", "Pass", "A+B", "A", "B", "count<B+1", "count", "B+1", "B", "1", "Pass+=1", "Pass", "1", "print('Yes')", "print", "'Yes'", "print('No')", "print", "'No'", "print('No')", "print", "'No'", "count+=1", "1", "count", "Pass=0", "0", "Pass", "N,A,B=map(int,input().split())", "map(int,input().split())", "N", "S=input()", "input()", "S", "B=map(int,input().split())", "map(int,input().split())", "B", "A,B=map(int,input().split())", "map(int,input().split())", "A", "Pass+=1", "1", "Pass", "count=0", "0", "count", "Pass+=1", "1", "Pass" ]
N,A,B=map(int,input().split()) S=input() Pass=0 count=0 for s in S: if s=='a' and Pass<A+B: Pass+=1 print('Yes') elif s=='b': count+=1 if Pass<A+B and count<B+1: Pass+=1 print('Yes') else: print('No') else: print('No')
[ 7, 0, 13, 4, 13, 13, 4, 18, 4, 13, 13, 13, 13, 0, 13, 4, 13, 0, 13, 17, 0, 13, 2, 13, 13, 0, 13, 17, 28, 13, 13, 14, 2, 13, 17, 14, 2, 13, 13, 4, 13, 17, 0, 13, 17, 4, 13, 17, 14, 2, 13, 17, 14, 2, 13, 13, 14, 2, 13, 13, 4, 13, 17, 0, 13, 17, 0, 13, 17, 4, 13, 17, 4, 13, 17, 4, 13, 17, 10, 4, 13, 10, 4, 13, 10, 17, 13, 10, 4, 13, 10, 17, 13, 10, 4, 13, 10, 17, 13, 10, 17, 13, 10, 17, 13, 10, 2, 13 ]
[ [ 88, 2 ], [ 88, 11 ], [ 88, 12 ], [ 94, 14 ], [ 100, 18 ], [ 106, 21 ], [ 83, 23 ], [ 80, 24 ], [ 85, 26 ], [ 30, 29 ], [ 95, 29 ], [ 29, 33 ], [ 101, 37 ], [ 104, 37 ], [ 98, 37 ], [ 107, 38 ], [ 97, 43 ], [ 29, 50 ], [ 101, 54 ], [ 104, 54 ], [ 98, 54 ], [ 107, 55 ], [ 86, 58 ], [ 92, 58 ], [ 80, 59 ], [ 103, 64 ], [ 91, 67 ], [ 88, 80 ], [ 88, 83 ], [ 85, 86 ], [ 88, 89 ], [ 91, 92 ], [ 94, 95 ], [ 97, 98 ], [ 100, 101 ], [ 103, 104 ], [ 106, 107 ] ]
[ "#!/usr/bin/env python3\nn, a, b = map(int, input().split())\ns = input()\n\ncl = 0\nclmax = a + b\nwlrank = 0\n\nfor i in s:\n if i == \"a\":\n if cl < clmax:\n print(\"Yes\")\n cl += 1\n else:\n print(\"No\")\n\n elif i == \"b\":\n if cl < clmax:\n if wlrank < b:\n print(\"Yes\")\n cl += 1\n wlrank += 1\n else:\n print(\"No\")\n else:\n print(\"No\") \n else:\n print(\"No\")", "n, a, b = map(int, input().split())", "n", "map(int, input().split())", "map", "int", "input().split()", "().split", "()", "input", "split", "a", "b", "s = input()", "s", "input()", "input", "cl = 0", "cl", "0", "clmax = a + b", "clmax", "a + b", "a", "b", "wlrank = 0", "wlrank", "0", "for i in s:\n if i == \"a\":\n if cl < clmax:\n print(\"Yes\")\n cl += 1\n else:\n print(\"No\")\n\n elif i == \"b\":\n if cl < clmax:\n if wlrank < b:\n print(\"Yes\")\n cl += 1\n wlrank += 1\n else:\n print(\"No\")\n else:\n print(\"No\") \n else:\n print(\"No\")", "i", "s", "if i == \"a\":\n if cl < clmax:\n print(\"Yes\")\n cl += 1\n else:\n print(\"No\")\n\n elif i == \"b\":\n if cl < clmax:\n if wlrank < b:\n print(\"Yes\")\n cl += 1\n wlrank += 1\n else:\n print(\"No\")\n else:\n print(\"No\") \n else:\n print(\"No\")", "i == \"a\"", "i", "\"a\"", "if cl < clmax:\n print(\"Yes\")\n cl += 1\n else:\n print(\"No\")\n\n ", "cl < clmax", "cl", "clmax", "print(\"Yes\")", "print", "\"Yes\"", "cl += 1", "cl", "1", "print(\"No\")", "print", "\"No\"", "elif i == \"b\":\n if cl < clmax:\n if wlrank < b:\n print(\"Yes\")\n cl += 1\n wlrank += 1\n else:\n print(\"No\")\n else:\n print(\"No\") \n ", "i == \"b\"", "i", "\"b\"", "if cl < clmax:\n if wlrank < b:\n print(\"Yes\")\n cl += 1\n wlrank += 1\n else:\n print(\"No\")\n else:\n print(\"No\") \n ", "cl < clmax", "cl", "clmax", "if wlrank < b:\n print(\"Yes\")\n cl += 1\n wlrank += 1\n else:\n print(\"No\")\n ", "wlrank < b", "wlrank", "b", "print(\"Yes\")", "print", "\"Yes\"", "cl += 1", "cl", "1", "wlrank += 1", "wlrank", "1", "print(\"No\")", "print", "\"No\"", "print(\"No\")", "print", "\"No\"", "print(\"No\")", "print", "\"No\"", "b = map(int, input().split())", "map(int, input().split())", "b", "a, b = map(int, input().split())", "map(int, input().split())", "a", "wlrank = 0", "0", "wlrank", "n, a, b = map(int, input().split())", "map(int, input().split())", "n", "wlrank += 1", "1", "wlrank", "s = input()", "input()", "s", "cl += 1", "1", "cl", "cl = 0", "0", "cl", "cl += 1", "1", "cl", "clmax = a + b", "a + b", "clmax" ]
#!/usr/bin/env python3 n, a, b = map(int, input().split()) s = input() cl = 0 clmax = a + b wlrank = 0 for i in s: if i == "a": if cl < clmax: print("Yes") cl += 1 else: print("No") elif i == "b": if cl < clmax: if wlrank < b: print("Yes") cl += 1 wlrank += 1 else: print("No") else: print("No") else: print("No")
[ 7, 0, 13, 4, 13, 13, 4, 18, 4, 13, 13, 13, 13, 0, 13, 4, 13, 0, 13, 4, 13, 13, 0, 13, 17, 0, 13, 17, 28, 13, 13, 14, 2, 13, 17, 14, 2, 13, 2, 13, 13, 4, 13, 17, 0, 13, 17, 4, 13, 17, 14, 2, 13, 17, 14, 2, 2, 13, 2, 13, 13, 40, 13, 13, 4, 13, 17, 0, 13, 17, 0, 13, 17, 4, 13, 17, 4, 13, 17, 10, 17, 13, 10, 4, 13, 10, 4, 13, 10, 4, 13, 10, 4, 13, 10, 17, 13, 10, 17, 13, 10, 17, 13, 10, 17, 13, 10, 4, 13 ]
[ [ 107, 2 ], [ 107, 11 ], [ 107, 12 ], [ 86, 14 ], [ 89, 18 ], [ 87, 21 ], [ 95, 23 ], [ 98, 26 ], [ 30, 29 ], [ 90, 29 ], [ 87, 29 ], [ 29, 33 ], [ 96, 37 ], [ 102, 37 ], [ 105, 37 ], [ 93, 39 ], [ 84, 40 ], [ 104, 45 ], [ 29, 52 ], [ 96, 57 ], [ 102, 57 ], [ 105, 57 ], [ 93, 59 ], [ 84, 60 ], [ 99, 62 ], [ 81, 62 ], [ 84, 63 ], [ 101, 68 ], [ 80, 71 ], [ 80, 81 ], [ 107, 84 ], [ 86, 87 ], [ 89, 90 ], [ 107, 93 ], [ 95, 96 ], [ 98, 99 ], [ 101, 102 ], [ 104, 105 ], [ 107, 108 ] ]
[ "N,A,B=map(int,input().split())\nS=input()\nS=list(S)\ncount=0\nworld=1\nfor i in S:\n if i==\"a\":\n if count<A+B:\n print(\"Yes\")\n count+=1\n else:\n print(\"No\")\n elif i==\"b\":\n if (count<A+B) & (world<=B):\n print(\"Yes\")\n count+=1\n world+=1\n else:\n print(\"No\")\n else:\n print(\"No\")", "N,A,B=map(int,input().split())", "N", "map(int,input().split())", "map", "int", "input().split()", "().split", "()", "input", "split", "A", "B", "S=input()", "S", "input()", "input", "S=list(S)", "S", "list(S)", "list", "S", "count=0", "count", "0", "world=1", "world", "1", "for i in S:\n if i==\"a\":\n if count<A+B:\n print(\"Yes\")\n count+=1\n else:\n print(\"No\")\n elif i==\"b\":\n if (count<A+B) & (world<=B):\n print(\"Yes\")\n count+=1\n world+=1\n else:\n print(\"No\")\n else:\n print(\"No\")", "i", "S", "if i==\"a\":\n if count<A+B:\n print(\"Yes\")\n count+=1\n else:\n print(\"No\")\n elif i==\"b\":\n if (count<A+B) & (world<=B):\n print(\"Yes\")\n count+=1\n world+=1\n else:\n print(\"No\")\n else:\n print(\"No\")", "i==\"a\"", "i", "\"a\"", "if count<A+B:\n print(\"Yes\")\n count+=1\n else:\n print(\"No\")\n ", "count<A+B", "count", "A+B", "A", "B", "print(\"Yes\")", "print", "\"Yes\"", "count+=1", "count", "1", "print(\"No\")", "print", "\"No\"", "elif i==\"b\":\n if (count<A+B) & (world<=B):\n print(\"Yes\")\n count+=1\n world+=1\n else:\n print(\"No\")\n ", "i==\"b\"", "i", "\"b\"", "if (count<A+B) & (world<=B):\n print(\"Yes\")\n count+=1\n world+=1\n else:\n print(\"No\")\n ", "(count<A+B) & (world<=B)", "count<A+B", "count", "A+B", "A", "B", "world<=B", "world", "B", "print(\"Yes\")", "print", "\"Yes\"", "count+=1", "count", "1", "world+=1", "world", "1", "print(\"No\")", "print", "\"No\"", "print(\"No\")", "print", "\"No\"", "world+=1", "1", "world", "B=map(int,input().split())", "map(int,input().split())", "B", "S=input()", "input()", "S", "S=list(S)", "list(S)", "S", "A,B=map(int,input().split())", "map(int,input().split())", "A", "count=0", "0", "count", "world=1", "1", "world", "count+=1", "1", "count", "count+=1", "1", "count", "N,A,B=map(int,input().split())", "map(int,input().split())", "N" ]
N,A,B=map(int,input().split()) S=input() S=list(S) count=0 world=1 for i in S: if i=="a": if count<A+B: print("Yes") count+=1 else: print("No") elif i=="b": if (count<A+B) & (world<=B): print("Yes") count+=1 world+=1 else: print("No") else: print("No")
[ 7, 12, 13, 41, 28, 13, 4, 18, 4, 13, 13, 4, 4, 13, 13, 0, 13, 13, 13, 13, 0, 13, 4, 13, 0, 13, 17, 13, 17, 0, 13, 2, 39, 17, 13, 28, 13, 4, 13, 13, 0, 13, 18, 13, 13, 14, 2, 13, 17, 9, 14, 2, 13, 17, 14, 2, 2, 13, 13, 2, 13, 13, 0, 18, 13, 13, 17, 0, 13, 17, 14, 2, 13, 17, 14, 2, 2, 2, 13, 13, 2, 13, 13, 2, 13, 13, 0, 18, 13, 13, 17, 0, 13, 17, 28, 13, 13, 4, 13, 13, 14, 2, 13, 17, 4, 13, 10, 12, 13 ]
[ [ 6, 5 ], [ 5, 14 ], [ 17, 16 ], [ 17, 18 ], [ 17, 19 ], [ 22, 21 ], [ 26, 25 ], [ 28, 27 ], [ 31, 30 ], [ 16, 34 ], [ 37, 36 ], [ 16, 39 ], [ 42, 41 ], [ 21, 43 ], [ 36, 44 ], [ 41, 47 ], [ 41, 52 ], [ 25, 57 ], [ 68, 57 ], [ 27, 58 ], [ 92, 58 ], [ 18, 60 ], [ 19, 61 ], [ 66, 63 ], [ 30, 64 ], [ 36, 65 ], [ 69, 68 ], [ 41, 72 ], [ 68, 78 ], [ 25, 78 ], [ 27, 79 ], [ 92, 79 ], [ 18, 81 ], [ 19, 82 ], [ 27, 84 ], [ 92, 84 ], [ 19, 85 ], [ 90, 87 ], [ 30, 88 ], [ 36, 89 ], [ 93, 92 ], [ 96, 95 ], [ 30, 95 ], [ 95, 99 ], [ 108, 105 ] ]
[ "def solve():\n N, A, B = [int(x) for x in input().split()]\n S = input()\n a, b = 0, 0\n Ans = ['No'] * N\n for i in range(N):\n s = S[i]\n if s == 'c':\n continue\n if s == 'a':\n if a + b < A + B:\n Ans[i] = 'Yes'\n a += 1\n if s == 'b':\n if a + b < A + B and b < B:\n Ans[i] = 'Yes'\n b += 1\n for ans in Ans:\n print(ans)\n\n\nif __name__ == \"__main__\":\n solve()", "def solve():\n N, A, B = [int(x) for x in input().split()]\n S = input()\n a, b = 0, 0\n Ans = ['No'] * N\n for i in range(N):\n s = S[i]\n if s == 'c':\n continue\n if s == 'a':\n if a + b < A + B:\n Ans[i] = 'Yes'\n a += 1\n if s == 'b':\n if a + b < A + B and b < B:\n Ans[i] = 'Yes'\n b += 1\n for ans in Ans:\n print(ans)", "solve", "int(x) for x in input().split()", "for x in input().split()", "x", "input().split()", "().split", "()", "input", "split", "for x in input().split()", "int(x)", "int", "x", "N, A, B = [int(x) for x in input().split()]", "N", "[int(x) for x in input().split()]", "A", "B", "S = input()", "S", "input()", "input", "a, b = 0, 0", "a", "0", "b", "0", "Ans = ['No'] * N", "Ans", "['No'] * N", "['No']", "'No'", "N", "for i in range(N):\n s = S[i]\n if s == 'c':\n continue\n if s == 'a':\n if a + b < A + B:\n Ans[i] = 'Yes'\n a += 1\n if s == 'b':\n if a + b < A + B and b < B:\n Ans[i] = 'Yes'\n b += 1\n ", "i", "range(N)", "range", "N", "s = S[i]", "s", "S[i]", "S", "i", "if s == 'c':\n continue\n ", "s == 'c'", "s", "'c'", "continue", "if s == 'a':\n if a + b < A + B:\n Ans[i] = 'Yes'\n a += 1\n ", "s == 'a'", "s", "'a'", "if a + b < A + B:\n Ans[i] = 'Yes'\n a += 1\n ", "a + b < A + B", "a + b", "a", "b", "A + B", "A", "B", "Ans[i] = 'Yes'", "Ans[i]", "Ans", "i", "'Yes'", "a += 1", "a", "1", "if s == 'b':\n if a + b < A + B and b < B:\n Ans[i] = 'Yes'\n b += 1\n ", "s == 'b'", "s", "'b'", "if a + b < A + B and b < B:\n Ans[i] = 'Yes'\n b += 1\n ", "a + b < A + B and b < B", "a + b < A + B", "a + b", "a", "b", "A + B", "A", "B", "b < B", "b", "B", "Ans[i] = 'Yes'", "Ans[i]", "Ans", "i", "'Yes'", "b += 1", "b", "1", "for ans in Ans:\n print(ans)", "ans", "Ans", "print(ans)", "print", "ans", "if __name__ == \"__main__\":\n solve()", "__name__ == \"__main__\"", "__name__", "\"__main__\"", "solve()", "solve", "def solve():\n N, A, B = [int(x) for x in input().split()]\n S = input()\n a, b = 0, 0\n Ans = ['No'] * N\n for i in range(N):\n s = S[i]\n if s == 'c':\n continue\n if s == 'a':\n if a + b < A + B:\n Ans[i] = 'Yes'\n a += 1\n if s == 'b':\n if a + b < A + B and b < B:\n Ans[i] = 'Yes'\n b += 1\n for ans in Ans:\n print(ans)", "def solve():\n N, A, B = [int(x) for x in input().split()]\n S = input()\n a, b = 0, 0\n Ans = ['No'] * N\n for i in range(N):\n s = S[i]\n if s == 'c':\n continue\n if s == 'a':\n if a + b < A + B:\n Ans[i] = 'Yes'\n a += 1\n if s == 'b':\n if a + b < A + B and b < B:\n Ans[i] = 'Yes'\n b += 1\n for ans in Ans:\n print(ans)", "solve" ]
def solve(): N, A, B = [int(x) for x in input().split()] S = input() a, b = 0, 0 Ans = ['No'] * N for i in range(N): s = S[i] if s == 'c': continue if s == 'a': if a + b < A + B: Ans[i] = 'Yes' a += 1 if s == 'b': if a + b < A + B and b < B: Ans[i] = 'Yes' b += 1 for ans in Ans: print(ans) if __name__ == "__main__": solve()
[ 7, 0, 13, 4, 13, 13, 4, 18, 4, 13, 13, 13, 13, 0, 13, 4, 13, 0, 13, 2, 13, 13, 28, 13, 13, 14, 2, 13, 17, 14, 40, 13, 17, 0, 13, 17, 4, 13, 17, 4, 13, 17, 14, 2, 13, 17, 14, 2, 40, 13, 17, 40, 13, 17, 0, 13, 17, 0, 13, 17, 4, 13, 17, 4, 13, 17, 4, 13, 17, 10, 17, 13, 10, 2, 13, 10, 4, 13, 10, 17, 13, 10, 4, 13, 10, 17, 13, 10, 4, 13, 10, 4, 13 ]
[ [ 91, 2 ], [ 91, 11 ], [ 91, 12 ], [ 82, 14 ], [ 73, 18 ], [ 92, 20 ], [ 77, 21 ], [ 24, 23 ], [ 83, 23 ], [ 23, 27 ], [ 74, 31 ], [ 80, 31 ], [ 71, 31 ], [ 70, 34 ], [ 23, 44 ], [ 74, 49 ], [ 80, 49 ], [ 71, 49 ], [ 77, 52 ], [ 86, 52 ], [ 79, 55 ], [ 85, 58 ], [ 70, 71 ], [ 73, 74 ], [ 91, 77 ], [ 79, 80 ], [ 82, 83 ], [ 85, 86 ], [ 91, 89 ], [ 91, 92 ] ]
[ "n, a, b = map(int, input().split())\nst = input()\nc = a + b\nfor s in st:\n if s == \"a\":\n if c >= 1:\n c -= 1\n print(\"Yes\")\n else:\n print(\"No\")\n elif s == \"b\":\n if c >= 1 and b >= 1:\n c -= 1\n b -= 1\n print(\"Yes\")\n else:\n print(\"No\")\n else:\n print(\"No\")", "n, a, b = map(int, input().split())", "n", "map(int, input().split())", "map", "int", "input().split()", "().split", "()", "input", "split", "a", "b", "st = input()", "st", "input()", "input", "c = a + b", "c", "a + b", "a", "b", "for s in st:\n if s == \"a\":\n if c >= 1:\n c -= 1\n print(\"Yes\")\n else:\n print(\"No\")\n elif s == \"b\":\n if c >= 1 and b >= 1:\n c -= 1\n b -= 1\n print(\"Yes\")\n else:\n print(\"No\")\n else:\n print(\"No\")", "s", "st", "if s == \"a\":\n if c >= 1:\n c -= 1\n print(\"Yes\")\n else:\n print(\"No\")\n elif s == \"b\":\n if c >= 1 and b >= 1:\n c -= 1\n b -= 1\n print(\"Yes\")\n else:\n print(\"No\")\n else:\n print(\"No\")", "s == \"a\"", "s", "\"a\"", "if c >= 1:\n c -= 1\n print(\"Yes\")\n else:\n print(\"No\")\n ", "c >= 1", "c", "1", "c -= 1", "c", "1", "print(\"Yes\")", "print", "\"Yes\"", "print(\"No\")", "print", "\"No\"", "elif s == \"b\":\n if c >= 1 and b >= 1:\n c -= 1\n b -= 1\n print(\"Yes\")\n else:\n print(\"No\")\n ", "s == \"b\"", "s", "\"b\"", "if c >= 1 and b >= 1:\n c -= 1\n b -= 1\n print(\"Yes\")\n else:\n print(\"No\")\n ", "c >= 1 and b >= 1", "c >= 1", "c", "1", "b >= 1", "b", "1", "c -= 1", "c", "1", "b -= 1", "b", "1", "print(\"Yes\")", "print", "\"Yes\"", "print(\"No\")", "print", "\"No\"", "print(\"No\")", "print", "\"No\"", "c -= 1", "1", "c", "c = a + b", "a + b", "c", "b = map(int, input().split())", "map(int, input().split())", "b", "c -= 1", "1", "c", "st = input()", "input()", "st", "b -= 1", "1", "b", "n, a, b = map(int, input().split())", "map(int, input().split())", "n", "a, b = map(int, input().split())", "map(int, input().split())", "a" ]
n, a, b = map(int, input().split()) st = input() c = a + b for s in st: if s == "a": if c >= 1: c -= 1 print("Yes") else: print("No") elif s == "b": if c >= 1 and b >= 1: c -= 1 b -= 1 print("Yes") else: print("No") else: print("No")
[ 7, 0, 13, 4, 13, 13, 4, 18, 4, 13, 13, 13, 13, 0, 13, 4, 13, 0, 13, 17, 0, 13, 17, 28, 13, 4, 13, 17, 2, 13, 17, 14, 2, 18, 13, 2, 13, 17, 17, 14, 2, 13, 2, 13, 13, 4, 13, 17, 0, 13, 17, 4, 13, 17, 14, 2, 18, 13, 2, 13, 17, 17, 14, 2, 2, 13, 2, 13, 13, 2, 13, 13, 4, 13, 17, 0, 13, 17, 0, 13, 17, 4, 13, 17, 4, 13, 17, 10, 17, 13, 10, 4, 13, 10, 17, 13, 10, 17, 13, 10, 4, 13, 10, 4, 13, 10, 17, 13, 10, 4, 13, 10, 17, 13 ]
[ [ 109, 2 ], [ 109, 11 ], [ 109, 12 ], [ 103, 14 ], [ 112, 18 ], [ 88, 21 ], [ 25, 24 ], [ 110, 29 ], [ 104, 34 ], [ 24, 36 ], [ 113, 41 ], [ 107, 41 ], [ 98, 41 ], [ 101, 43 ], [ 92, 44 ], [ 97, 49 ], [ 104, 57 ], [ 24, 59 ], [ 113, 65 ], [ 107, 65 ], [ 98, 65 ], [ 101, 67 ], [ 92, 68 ], [ 89, 70 ], [ 95, 70 ], [ 92, 71 ], [ 106, 76 ], [ 94, 79 ], [ 88, 89 ], [ 109, 92 ], [ 94, 95 ], [ 97, 98 ], [ 109, 101 ], [ 103, 104 ], [ 106, 107 ], [ 109, 110 ], [ 112, 113 ] ]
[ "n, a, b = map(int,input().split())\ns = input()\n\n\ntuka = 0\nkaigai = 0\nfor i in range(1,n+1):\n if s[i-1] == 'a':\n if tuka < a+b:\n print('Yes')\n tuka += 1\n else:\n print('No')\n elif s[i-1] == 'b':\n if tuka < a+b and kaigai < b:\n print('Yes')\n tuka += 1\n kaigai += 1\n else:\n print('No')\n else:\n print('No')", "n, a, b = map(int,input().split())", "n", "map(int,input().split())", "map", "int", "input().split()", "().split", "()", "input", "split", "a", "b", "s = input()", "s", "input()", "input", "tuka = 0", "tuka", "0", "kaigai = 0", "kaigai", "0", "for i in range(1,n+1):\n if s[i-1] == 'a':\n if tuka < a+b:\n print('Yes')\n tuka += 1\n else:\n print('No')\n elif s[i-1] == 'b':\n if tuka < a+b and kaigai < b:\n print('Yes')\n tuka += 1\n kaigai += 1\n else:\n print('No')\n else:\n print('No')", "i", "range(1,n+1)", "range", "1", "n+1", "n", "1", "if s[i-1] == 'a':\n if tuka < a+b:\n print('Yes')\n tuka += 1\n else:\n print('No')\n elif s[i-1] == 'b':\n if tuka < a+b and kaigai < b:\n print('Yes')\n tuka += 1\n kaigai += 1\n else:\n print('No')\n else:\n print('No')", "s[i-1] == 'a'", "s[i-1]", "s", "i-1", "i", "1", "'a'", "if tuka < a+b:\n print('Yes')\n tuka += 1\n else:\n print('No')\n ", "tuka < a+b", "tuka", "a+b", "a", "b", "print('Yes')", "print", "'Yes'", "tuka += 1", "tuka", "1", "print('No')", "print", "'No'", "elif s[i-1] == 'b':\n if tuka < a+b and kaigai < b:\n print('Yes')\n tuka += 1\n kaigai += 1\n else:\n print('No')\n ", "s[i-1] == 'b'", "s[i-1]", "s", "i-1", "i", "1", "'b'", "if tuka < a+b and kaigai < b:\n print('Yes')\n tuka += 1\n kaigai += 1\n else:\n print('No')\n ", "tuka < a+b and kaigai < b", "tuka < a+b", "tuka", "a+b", "a", "b", "kaigai < b", "kaigai", "b", "print('Yes')", "print", "'Yes'", "tuka += 1", "tuka", "1", "kaigai += 1", "kaigai", "1", "print('No')", "print", "'No'", "print('No')", "print", "'No'", "kaigai = 0", "0", "kaigai", "b = map(int,input().split())", "map(int,input().split())", "b", "kaigai += 1", "1", "kaigai", "tuka += 1", "1", "tuka", "a, b = map(int,input().split())", "map(int,input().split())", "a", "s = input()", "input()", "s", "tuka += 1", "1", "tuka", "n, a, b = map(int,input().split())", "map(int,input().split())", "n", "tuka = 0", "0", "tuka" ]
n, a, b = map(int,input().split()) s = input() tuka = 0 kaigai = 0 for i in range(1,n+1): if s[i-1] == 'a': if tuka < a+b: print('Yes') tuka += 1 else: print('No') elif s[i-1] == 'b': if tuka < a+b and kaigai < b: print('Yes') tuka += 1 kaigai += 1 else: print('No') else: print('No')
[ 7, 0, 13, 4, 13, 13, 4, 18, 4, 13, 13, 13, 13, 0, 13, 2, 13, 13, 0, 13, 4, 13, 4, 13, 0, 13, 17, 13, 17, 28, 13, 4, 13, 13, 14, 2, 2, 13, 13, 13, 14, 2, 18, 13, 13, 17, 4, 13, 17, 14, 2, 18, 13, 13, 17, 4, 13, 17, 0, 13, 17, 14, 2, 2, 18, 13, 13, 17, 2, 13, 13, 4, 13, 17, 0, 13, 17, 4, 13, 17, 4, 13, 17, 10, 4, 13, 10, 17, 13, 10, 4, 13, 10, 17, 13, 10, 4, 13, 10, 17, 13, 10, 17, 13, 10, 4, 13, 10, 2, 13 ]
[ [ 105, 2 ], [ 105, 11 ], [ 105, 12 ], [ 108, 14 ], [ 97, 16 ], [ 106, 17 ], [ 90, 19 ], [ 87, 25 ], [ 93, 27 ], [ 31, 30 ], [ 85, 33 ], [ 88, 37 ], [ 100, 37 ], [ 94, 38 ], [ 103, 38 ], [ 109, 39 ], [ 91, 43 ], [ 30, 44 ], [ 91, 52 ], [ 30, 53 ], [ 99, 59 ], [ 91, 65 ], [ 30, 66 ], [ 94, 69 ], [ 103, 69 ], [ 106, 70 ], [ 102, 75 ], [ 105, 85 ], [ 87, 88 ], [ 90, 91 ], [ 93, 94 ], [ 105, 97 ], [ 99, 100 ], [ 102, 103 ], [ 105, 106 ], [ 108, 109 ] ]
[ "n, a, b = map(int, input().split())\nbo = a + b\nsl = list(input())\npa, pb = 0, 0\n \nfor i in range(n):\n if pa + pb < bo:\n if sl[i] == 'c':\n print('No')\n elif sl[i] == 'a':\n print('Yes')\n pa += 1\n elif sl[i] == 'b' and pb < b:\n print('Yes')\n pb += 1\n else:\n print('No')\n else:\n \tprint('No')", "n, a, b = map(int, input().split())", "n", "map(int, input().split())", "map", "int", "input().split()", "().split", "()", "input", "split", "a", "b", "bo = a + b", "bo", "a + b", "a", "b", "sl = list(input())", "sl", "list(input())", "list", "input()", "input", "pa, pb = 0, 0", "pa", "0", "pb", "0", "for i in range(n):\n if pa + pb < bo:\n if sl[i] == 'c':\n print('No')\n elif sl[i] == 'a':\n print('Yes')\n pa += 1\n elif sl[i] == 'b' and pb < b:\n print('Yes')\n pb += 1\n else:\n print('No')\n else:\n \tprint('No')", "i", "range(n)", "range", "n", "if pa + pb < bo:\n if sl[i] == 'c':\n print('No')\n elif sl[i] == 'a':\n print('Yes')\n pa += 1\n elif sl[i] == 'b' and pb < b:\n print('Yes')\n pb += 1\n else:\n print('No')\n else:\n \tprint('No')", "pa + pb < bo", "pa + pb", "pa", "pb", "bo", "if sl[i] == 'c':\n print('No')\n elif sl[i] == 'a':\n print('Yes')\n pa += 1\n elif sl[i] == 'b' and pb < b:\n print('Yes')\n pb += 1\n else:\n print('No')\n ", "sl[i] == 'c'", "sl[i]", "sl", "i", "'c'", "print('No')", "print", "'No'", "elif sl[i] == 'a':\n print('Yes')\n pa += 1\n ", "sl[i] == 'a'", "sl[i]", "sl", "i", "'a'", "print('Yes')", "print", "'Yes'", "pa += 1", "pa", "1", "elif sl[i] == 'b' and pb < b:\n print('Yes')\n pb += 1\n ", "sl[i] == 'b' and pb < b", "sl[i] == 'b'", "sl[i]", "sl", "i", "'b'", "pb < b", "pb", "b", "print('Yes')", "print", "'Yes'", "pb += 1", "pb", "1", "print('No')", "print", "'No'", "print('No')", "print", "'No'", "n, a, b = map(int, input().split())", "map(int, input().split())", "n", "pa, pb = 0, 0", "0", "pa", "sl = list(input())", "list(input())", "sl", "pb = 0, 0", "0", "pb", "a, b = map(int, input().split())", "map(int, input().split())", "a", "pa += 1", "1", "pa", "pb += 1", "1", "pb", "b = map(int, input().split())", "map(int, input().split())", "b", "bo = a + b", "a + b", "bo" ]
n, a, b = map(int, input().split()) bo = a + b sl = list(input()) pa, pb = 0, 0 for i in range(n): if pa + pb < bo: if sl[i] == 'c': print('No') elif sl[i] == 'a': print('Yes') pa += 1 elif sl[i] == 'b' and pb < b: print('Yes') pb += 1 else: print('No') else: print('No')
[ 7, 0, 13, 4, 13, 13, 4, 18, 4, 13, 13, 13, 13, 0, 13, 4, 13, 4, 13, 0, 13, 17, 0, 13, 17, 0, 13, 39, 28, 13, 4, 13, 13, 14, 2, 13, 2, 13, 13, 14, 2, 18, 13, 13, 17, 0, 13, 17, 4, 18, 13, 13, 17, 14, 2, 2, 18, 13, 13, 17, 2, 13, 13, 0, 13, 17, 0, 13, 17, 4, 18, 13, 13, 17, 4, 18, 13, 13, 17, 4, 18, 13, 13, 17, 28, 13, 4, 13, 13, 4, 13, 18, 13, 13, 10, 4, 13, 10, 17, 13, 10, 39, 13, 10, 17, 13, 10, 4, 13, 10, 17, 13, 10, 17, 13, 10, 17, 13, 10, 4, 13, 10, 4, 13 ]
[ [ 122, 2 ], [ 122, 11 ], [ 122, 12 ], [ 107, 14 ], [ 110, 20 ], [ 113, 23 ], [ 101, 26 ], [ 30, 29 ], [ 96, 32 ], [ 111, 35 ], [ 117, 35 ], [ 105, 35 ], [ 120, 37 ], [ 123, 38 ], [ 108, 42 ], [ 29, 43 ], [ 104, 46 ], [ 102, 50 ], [ 108, 57 ], [ 29, 58 ], [ 114, 61 ], [ 99, 61 ], [ 123, 62 ], [ 116, 64 ], [ 98, 67 ], [ 102, 71 ], [ 102, 76 ], [ 102, 81 ], [ 86, 85 ], [ 96, 88 ], [ 102, 92 ], [ 85, 93 ], [ 122, 96 ], [ 98, 99 ], [ 101, 102 ], [ 104, 105 ], [ 107, 108 ], [ 110, 111 ], [ 113, 114 ], [ 116, 117 ], [ 122, 120 ], [ 122, 123 ] ]
[ "n,a,b=map(int, input().split())\ns=list(input())\nnum=0\nnum_f=0\nqual=[]\nfor i in range(n):\n if num<a+b:\n if s[i]=='a':\n num+=1\n qual.append('Yes') \n elif s[i]=='b' and num_f<b:\n num+=1\n num_f+=1\n qual.append('Yes')\n else:\n qual.append('No') \n else:\n qual.append('No')\nfor i in range(n):\n print(qual[i])", "n,a,b=map(int, input().split())", "n", "map(int, input().split())", "map", "int", "input().split()", "().split", "()", "input", "split", "a", "b", "s=list(input())", "s", "list(input())", "list", "input()", "input", "num=0", "num", "0", "num_f=0", "num_f", "0", "qual=[]", "qual", "[]", "for i in range(n):\n if num<a+b:\n if s[i]=='a':\n num+=1\n qual.append('Yes') \n elif s[i]=='b' and num_f<b:\n num+=1\n num_f+=1\n qual.append('Yes')\n else:\n qual.append('No') \n else:\n qual.append('No')", "i", "range(n)", "range", "n", "if num<a+b:\n if s[i]=='a':\n num+=1\n qual.append('Yes') \n elif s[i]=='b' and num_f<b:\n num+=1\n num_f+=1\n qual.append('Yes')\n else:\n qual.append('No') \n else:\n qual.append('No')", "num<a+b", "num", "a+b", "a", "b", "if s[i]=='a':\n num+=1\n qual.append('Yes') \n elif s[i]=='b' and num_f<b:\n num+=1\n num_f+=1\n qual.append('Yes')\n else:\n qual.append('No') \n ", "s[i]=='a'", "s[i]", "s", "i", "'a'", "num+=1", "num", "1", "qual.append('Yes')", "qual.append", "qual", "append", "'Yes'", "elif s[i]=='b' and num_f<b:\n num+=1\n num_f+=1\n qual.append('Yes')\n ", "s[i]=='b' and num_f<b", "s[i]=='b'", "s[i]", "s", "i", "'b'", "num_f<b", "num_f", "b", "num+=1", "num", "1", "num_f+=1", "num_f", "1", "qual.append('Yes')", "qual.append", "qual", "append", "'Yes'", "qual.append('No')", "qual.append", "qual", "append", "'No'", "qual.append('No')", "qual.append", "qual", "append", "'No'", "for i in range(n):\n print(qual[i])", "i", "range(n)", "range", "n", "print(qual[i])", "print", "qual[i]", "qual", "i", "n,a,b=map(int, input().split())", "map(int, input().split())", "n", "num_f+=1", "1", "num_f", "qual=[]", "[]", "qual", "num+=1", "1", "num", "s=list(input())", "list(input())", "s", "num=0", "0", "num", "num_f=0", "0", "num_f", "num+=1", "1", "num", "a,b=map(int, input().split())", "map(int, input().split())", "a", "b=map(int, input().split())", "map(int, input().split())", "b" ]
n,a,b=map(int, input().split()) s=list(input()) num=0 num_f=0 qual=[] for i in range(n): if num<a+b: if s[i]=='a': num+=1 qual.append('Yes') elif s[i]=='b' and num_f<b: num+=1 num_f+=1 qual.append('Yes') else: qual.append('No') else: qual.append('No') for i in range(n): print(qual[i])
[ 7, 12, 13, 4, 13, 0, 13, 2, 39, 17, 13, 0, 13, 17, 28, 13, 4, 13, 13, 14, 2, 2, 18, 13, 13, 17, 2, 13, 2, 13, 13, 0, 13, 17, 0, 18, 13, 13, 17, 14, 2, 2, 2, 18, 13, 13, 17, 2, 13, 2, 13, 13, 2, 4, 18, 18, 13, 39, 13, 13, 17, 13, 0, 13, 17, 0, 18, 13, 13, 17, 28, 13, 13, 4, 13, 13, 23, 13, 23, 13, 23, 13, 23, 13, 0, 13, 4, 13, 13, 4, 18, 4, 13, 13, 13, 13, 0, 13, 4, 13, 4, 13, 13, 13, 13, 13, 10, 4, 13, 10, 4, 13, 10, 4, 13, 10, 4, 13, 10, 12, 13 ]
[ [ 7, 6 ], [ 77, 10 ], [ 13, 12 ], [ 16, 15 ], [ 77, 18 ], [ 83, 23 ], [ 15, 24 ], [ 12, 27 ], [ 63, 27 ], [ 32, 27 ], [ 79, 29 ], [ 81, 30 ], [ 33, 32 ], [ 38, 35 ], [ 6, 36 ], [ 15, 37 ], [ 83, 44 ], [ 15, 45 ], [ 32, 48 ], [ 12, 48 ], [ 63, 48 ], [ 79, 50 ], [ 81, 51 ], [ 83, 56 ], [ 32, 59 ], [ 12, 59 ], [ 63, 59 ], [ 81, 61 ], [ 64, 63 ], [ 69, 66 ], [ 6, 67 ], [ 15, 68 ], [ 72, 71 ], [ 6, 71 ], [ 71, 75 ], [ 77, 77 ], [ 79, 79 ], [ 81, 81 ], [ 83, 83 ], [ 116, 85 ], [ 116, 94 ], [ 116, 95 ], [ 110, 97 ], [ 120, 101 ], [ 108, 102 ], [ 117, 103 ], [ 114, 104 ], [ 111, 105 ], [ 116, 108 ], [ 110, 111 ], [ 116, 114 ], [ 116, 117 ] ]
[ "def simulator(n, a, b, s):\n print()\n boolean_list = ['No'] * n\n count = 0\n for i in range(n):\n if s[i]=='a' and count < a+b:\n count += 1\n boolean_list[i] = 'Yes'\n if s[i]=='b' and count < a+b and s[:i].count('b') <b :\n count += 1\n boolean_list[i] = 'Yes'\n \n for _ in boolean_list:\n print(_)\n\nn, a, b = map(int,input().split())\ns = input()\nsimulator(n, a, b, s)", "def simulator(n, a, b, s):\n print()\n boolean_list = ['No'] * n\n count = 0\n for i in range(n):\n if s[i]=='a' and count < a+b:\n count += 1\n boolean_list[i] = 'Yes'\n if s[i]=='b' and count < a+b and s[:i].count('b') <b :\n count += 1\n boolean_list[i] = 'Yes'\n \n for _ in boolean_list:\n print(_)", "simulator", "print()", "print", "boolean_list = ['No'] * n", "boolean_list", "['No'] * n", "['No']", "'No'", "n", "count = 0", "count", "0", "for i in range(n):\n if s[i]=='a' and count < a+b:\n count += 1\n boolean_list[i] = 'Yes'\n if s[i]=='b' and count < a+b and s[:i].count('b') <b :\n count += 1\n boolean_list[i] = 'Yes'\n \n ", "i", "range(n)", "range", "n", "if s[i]=='a' and count < a+b:\n count += 1\n boolean_list[i] = 'Yes'\n ", "s[i]=='a' and count < a+b", "s[i]=='a'", "s[i]", "s", "i", "'a'", "count < a+b", "count", "a+b", "a", "b", "count += 1", "count", "1", "boolean_list[i] = 'Yes'", "boolean_list[i]", "boolean_list", "i", "'Yes'", "if s[i]=='b' and count < a+b and s[:i].count('b') <b :\n count += 1\n boolean_list[i] = 'Yes'\n \n ", "s[i]=='b' and count < a+b and s[:i].count('b') <b", "s[i]=='b' and count < a+b", "s[i]=='b'", "s[i]", "s", "i", "'b'", "count < a+b", "count", "a+b", "a", "b", "s[:i].count('b') <b", "s[:i].count('b')", "[:i].count", "[:i]", "s", ":i", "i", "count", "'b'", "b", "count += 1", "count", "1", "boolean_list[i] = 'Yes'", "boolean_list[i]", "boolean_list", "i", "'Yes'", "for _ in boolean_list:\n print(_)", "_", "boolean_list", "print(_)", "print", "_", "n", "n", "a", "a", "b", "b", "s", "s", "n, a, b = map(int,input().split())", "n", "map(int,input().split())", "map", "int", "input().split()", "().split", "()", "input", "split", "a", "b", "s = input()", "s", "input()", "input", "simulator(n, a, b, s)", "simulator", "n", "a", "b", "s", "n, a, b = map(int,input().split())", "map(int,input().split())", "n", "s = input()", "input()", "s", "b = map(int,input().split())", "map(int,input().split())", "b", "a, b = map(int,input().split())", "map(int,input().split())", "a", "def simulator(n, a, b, s):\n print()\n boolean_list = ['No'] * n\n count = 0\n for i in range(n):\n if s[i]=='a' and count < a+b:\n count += 1\n boolean_list[i] = 'Yes'\n if s[i]=='b' and count < a+b and s[:i].count('b') <b :\n count += 1\n boolean_list[i] = 'Yes'\n \n for _ in boolean_list:\n print(_)", "def simulator(n, a, b, s):\n print()\n boolean_list = ['No'] * n\n count = 0\n for i in range(n):\n if s[i]=='a' and count < a+b:\n count += 1\n boolean_list[i] = 'Yes'\n if s[i]=='b' and count < a+b and s[:i].count('b') <b :\n count += 1\n boolean_list[i] = 'Yes'\n \n for _ in boolean_list:\n print(_)", "simulator" ]
def simulator(n, a, b, s): print() boolean_list = ['No'] * n count = 0 for i in range(n): if s[i]=='a' and count < a+b: count += 1 boolean_list[i] = 'Yes' if s[i]=='b' and count < a+b and s[:i].count('b') <b : count += 1 boolean_list[i] = 'Yes' for _ in boolean_list: print(_) n, a, b = map(int,input().split()) s = input() simulator(n, a, b, s)
[ 7, 0, 13, 4, 13, 13, 4, 18, 4, 13, 13, 13, 13, 0, 13, 4, 13, 4, 13, 0, 13, 2, 13, 13, 0, 13, 17, 0, 13, 17, 28, 13, 4, 13, 13, 14, 2, 2, 18, 13, 13, 17, 2, 13, 13, 0, 13, 17, 4, 13, 17, 14, 2, 2, 2, 18, 13, 13, 17, 2, 13, 13, 2, 13, 13, 0, 13, 17, 0, 13, 17, 4, 13, 17, 4, 13, 17, 10, 17, 13, 10, 17, 13, 10, 2, 13, 10, 17, 13, 10, 4, 13, 10, 4, 13, 10, 4, 13, 10, 17, 13, 10, 4, 13, 10, 17, 13 ]
[ [ 96, 2 ], [ 96, 11 ], [ 96, 12 ], [ 102, 14 ], [ 84, 20 ], [ 94, 22 ], [ 97, 23 ], [ 99, 25 ], [ 105, 28 ], [ 32, 31 ], [ 91, 34 ], [ 103, 39 ], [ 31, 40 ], [ 100, 43 ], [ 88, 43 ], [ 82, 43 ], [ 85, 44 ], [ 81, 46 ], [ 103, 56 ], [ 31, 57 ], [ 106, 60 ], [ 79, 60 ], [ 97, 61 ], [ 100, 63 ], [ 88, 63 ], [ 82, 63 ], [ 85, 64 ], [ 87, 66 ], [ 78, 69 ], [ 78, 79 ], [ 81, 82 ], [ 84, 85 ], [ 87, 88 ], [ 96, 91 ], [ 96, 94 ], [ 96, 97 ], [ 99, 100 ], [ 102, 103 ], [ 105, 106 ] ]
[ "N, A, B = map(int, input().split())\nS = str(input())\n\nAB = A + B\n\ncount_all = 0\ncount_abroad = 0\nfor i in range(N):\n if S[i] == \"a\" and count_all < AB:\n count_all += 1\n print(\"Yes\")\n\n elif S[i] == \"b\" and count_abroad < B and count_all <AB:\n count_all += 1\n count_abroad += 1\n print(\"Yes\")\n\n else:\n print(\"No\")", "N, A, B = map(int, input().split())", "N", "map(int, input().split())", "map", "int", "input().split()", "().split", "()", "input", "split", "A", "B", "S = str(input())", "S", "str(input())", "str", "input()", "input", "AB = A + B", "AB", "A + B", "A", "B", "count_all = 0", "count_all", "0", "count_abroad = 0", "count_abroad", "0", "for i in range(N):\n if S[i] == \"a\" and count_all < AB:\n count_all += 1\n print(\"Yes\")\n\n elif S[i] == \"b\" and count_abroad < B and count_all <AB:\n count_all += 1\n count_abroad += 1\n print(\"Yes\")\n\n else:\n print(\"No\")", "i", "range(N)", "range", "N", "if S[i] == \"a\" and count_all < AB:\n count_all += 1\n print(\"Yes\")\n\n elif S[i] == \"b\" and count_abroad < B and count_all <AB:\n count_all += 1\n count_abroad += 1\n print(\"Yes\")\n\n else:\n print(\"No\")", "S[i] == \"a\" and count_all < AB", "S[i] == \"a\"", "S[i]", "S", "i", "\"a\"", "count_all < AB", "count_all", "AB", "count_all += 1", "count_all", "1", "print(\"Yes\")", "print", "\"Yes\"", "elif S[i] == \"b\" and count_abroad < B and count_all <AB:\n count_all += 1\n count_abroad += 1\n print(\"Yes\")\n\n ", "S[i] == \"b\" and count_abroad < B and count_all <AB", "S[i] == \"b\" and count_abroad < B", "S[i] == \"b\"", "S[i]", "S", "i", "\"b\"", "count_abroad < B", "count_abroad", "B", "count_all <AB", "count_all", "AB", "count_all += 1", "count_all", "1", "count_abroad += 1", "count_abroad", "1", "print(\"Yes\")", "print", "\"Yes\"", "print(\"No\")", "print", "\"No\"", "count_abroad += 1", "1", "count_abroad", "count_all += 1", "1", "count_all", "AB = A + B", "A + B", "AB", "count_all += 1", "1", "count_all", "N, A, B = map(int, input().split())", "map(int, input().split())", "N", "A, B = map(int, input().split())", "map(int, input().split())", "A", "B = map(int, input().split())", "map(int, input().split())", "B", "count_all = 0", "0", "count_all", "S = str(input())", "str(input())", "S", "count_abroad = 0", "0", "count_abroad" ]
N, A, B = map(int, input().split()) S = str(input()) AB = A + B count_all = 0 count_abroad = 0 for i in range(N): if S[i] == "a" and count_all < AB: count_all += 1 print("Yes") elif S[i] == "b" and count_abroad < B and count_all <AB: count_all += 1 count_abroad += 1 print("Yes") else: print("No")
[ 7, 0, 13, 4, 13, 13, 4, 18, 4, 13, 13, 13, 13, 0, 13, 4, 13, 4, 13, 0, 13, 2, 13, 13, 28, 13, 13, 14, 2, 2, 13, 17, 2, 13, 17, 4, 13, 17, 0, 13, 17, 14, 2, 2, 2, 13, 17, 2, 13, 17, 2, 13, 17, 4, 13, 17, 0, 13, 17, 0, 13, 17, 4, 13, 17, 10, 4, 13, 10, 4, 13, 10, 2, 13, 10, 4, 13, 10, 17, 13, 10, 17, 13, 10, 4, 13, 10, 17, 13 ]
[ [ 75, 2 ], [ 75, 11 ], [ 75, 12 ], [ 84, 14 ], [ 72, 20 ], [ 70, 22 ], [ 67, 23 ], [ 26, 25 ], [ 85, 25 ], [ 25, 30 ], [ 73, 33 ], [ 88, 33 ], [ 82, 33 ], [ 81, 39 ], [ 25, 45 ], [ 73, 48 ], [ 88, 48 ], [ 82, 48 ], [ 67, 51 ], [ 79, 51 ], [ 87, 57 ], [ 78, 60 ], [ 75, 67 ], [ 75, 70 ], [ 72, 73 ], [ 75, 76 ], [ 78, 79 ], [ 81, 82 ], [ 84, 85 ], [ 87, 88 ] ]
[ "n,a,b = map(int,input().split())\ns = list(input())\ncap = a+b\n\nfor i in s:\n if i == 'a' and cap > 0:\n print('Yes')\n cap -= 1\n elif i == 'b' and cap > 0 and b > 0:\n print('Yes')\n cap -= 1\n b -= 1\n else:\n print('No')\n ", "n,a,b = map(int,input().split())", "n", "map(int,input().split())", "map", "int", "input().split()", "().split", "()", "input", "split", "a", "b", "s = list(input())", "s", "list(input())", "list", "input()", "input", "cap = a+b", "cap", "a+b", "a", "b", "for i in s:\n if i == 'a' and cap > 0:\n print('Yes')\n cap -= 1\n elif i == 'b' and cap > 0 and b > 0:\n print('Yes')\n cap -= 1\n b -= 1\n else:\n print('No')\n ", "i", "s", "if i == 'a' and cap > 0:\n print('Yes')\n cap -= 1\n elif i == 'b' and cap > 0 and b > 0:\n print('Yes')\n cap -= 1\n b -= 1\n else:\n print('No')\n ", "i == 'a' and cap > 0", "i == 'a'", "i", "'a'", "cap > 0", "cap", "0", "print('Yes')", "print", "'Yes'", "cap -= 1", "cap", "1", "elif i == 'b' and cap > 0 and b > 0:\n print('Yes')\n cap -= 1\n b -= 1\n ", "i == 'b' and cap > 0 and b > 0", "i == 'b' and cap > 0", "i == 'b'", "i", "'b'", "cap > 0", "cap", "0", "b > 0", "b", "0", "print('Yes')", "print", "'Yes'", "cap -= 1", "cap", "1", "b -= 1", "b", "1", "print('No')", "print", "'No'", "b = map(int,input().split())", "map(int,input().split())", "b", "a,b = map(int,input().split())", "map(int,input().split())", "a", "cap = a+b", "a+b", "cap", "n,a,b = map(int,input().split())", "map(int,input().split())", "n", "b -= 1", "1", "b", "cap -= 1", "1", "cap", "s = list(input())", "list(input())", "s", "cap -= 1", "1", "cap" ]
n,a,b = map(int,input().split()) s = list(input()) cap = a+b for i in s: if i == 'a' and cap > 0: print('Yes') cap -= 1 elif i == 'b' and cap > 0 and b > 0: print('Yes') cap -= 1 b -= 1 else: print('No')
[ 7, 0, 13, 4, 13, 4, 13, 13, 4, 18, 4, 13, 13, 13, 13, 0, 13, 4, 13, 0, 13, 17, 0, 13, 17, 28, 13, 4, 13, 13, 14, 2, 18, 13, 13, 17, 4, 13, 17, 14, 2, 18, 13, 13, 17, 0, 13, 17, 14, 40, 2, 13, 13, 2, 13, 13, 4, 13, 17, 4, 13, 17, 0, 13, 17, 14, 2, 18, 13, 13, 17, 0, 13, 17, 14, 2, 40, 2, 13, 13, 2, 13, 13, 40, 13, 13, 4, 13, 17, 4, 13, 17, 0, 13, 17, 10, 17, 13, 10, 17, 13, 10, 17, 13, 10, 4, 13, 10, 4, 13, 10, 17, 13, 10, 4, 13, 10, 17, 13, 10, 4, 13, 10, 17, 13 ]
[ [ 120, 2 ], [ 120, 13 ], [ 120, 14 ], [ 108, 16 ], [ 111, 20 ], [ 117, 23 ], [ 27, 26 ], [ 106, 29 ], [ 109, 33 ], [ 26, 34 ], [ 109, 42 ], [ 26, 43 ], [ 99, 46 ], [ 100, 51 ], [ 112, 51 ], [ 97, 51 ], [ 118, 52 ], [ 124, 52 ], [ 103, 52 ], [ 121, 54 ], [ 115, 55 ], [ 96, 63 ], [ 109, 68 ], [ 26, 69 ], [ 102, 72 ], [ 112, 78 ], [ 97, 78 ], [ 100, 78 ], [ 103, 79 ], [ 118, 79 ], [ 124, 79 ], [ 121, 81 ], [ 115, 82 ], [ 103, 84 ], [ 118, 84 ], [ 124, 84 ], [ 115, 85 ], [ 123, 93 ], [ 96, 97 ], [ 99, 100 ], [ 102, 103 ], [ 120, 106 ], [ 108, 109 ], [ 111, 112 ], [ 120, 115 ], [ 117, 118 ], [ 120, 121 ], [ 123, 124 ] ]
[ "N, A, B = list(map(int, input().split()))\nS = input()\n\ncount_A = 0\ncount_B = 0\nfor i in range(N):\n if S[i] == 'c':\n print('No')\n elif S[i] == 'a':\n count_A += 1\n if count_A + count_B <= A + B:\n print('Yes')\n else:\n print('No')\n count_A -= 1\n elif S[i] == 'b':\n count_B += 1\n if count_A + count_B <= A + B and count_B <= B:\n print('Yes')\n else:\n print('No')\n count_B -= 1", "N, A, B = list(map(int, input().split()))", "N", "list(map(int, input().split()))", "list", "map(int, input().split())", "map", "int", "input().split()", "().split", "()", "input", "split", "A", "B", "S = input()", "S", "input()", "input", "count_A = 0", "count_A", "0", "count_B = 0", "count_B", "0", "for i in range(N):\n if S[i] == 'c':\n print('No')\n elif S[i] == 'a':\n count_A += 1\n if count_A + count_B <= A + B:\n print('Yes')\n else:\n print('No')\n count_A -= 1\n elif S[i] == 'b':\n count_B += 1\n if count_A + count_B <= A + B and count_B <= B:\n print('Yes')\n else:\n print('No')\n count_B -= 1", "i", "range(N)", "range", "N", "if S[i] == 'c':\n print('No')\n elif S[i] == 'a':\n count_A += 1\n if count_A + count_B <= A + B:\n print('Yes')\n else:\n print('No')\n count_A -= 1\n elif S[i] == 'b':\n count_B += 1\n if count_A + count_B <= A + B and count_B <= B:\n print('Yes')\n else:\n print('No')\n count_B -= 1", "S[i] == 'c'", "S[i]", "S", "i", "'c'", "print('No')", "print", "'No'", "elif S[i] == 'a':\n count_A += 1\n if count_A + count_B <= A + B:\n print('Yes')\n else:\n print('No')\n count_A -= 1\n ", "S[i] == 'a'", "S[i]", "S", "i", "'a'", "count_A += 1", "count_A", "1", "if count_A + count_B <= A + B:\n print('Yes')\n else:\n print('No')\n count_A -= 1\n ", "count_A + count_B <= A + B", "count_A + count_B", "count_A", "count_B", "A + B", "A", "B", "print('Yes')", "print", "'Yes'", "print('No')", "print", "'No'", "count_A -= 1", "count_A", "1", "elif S[i] == 'b':\n count_B += 1\n if count_A + count_B <= A + B and count_B <= B:\n print('Yes')\n else:\n print('No')\n count_B -= 1", "S[i] == 'b'", "S[i]", "S", "i", "'b'", "count_B += 1", "count_B", "1", "if count_A + count_B <= A + B and count_B <= B:\n print('Yes')\n else:\n print('No')\n count_B -= 1", "count_A + count_B <= A + B and count_B <= B", "count_A + count_B <= A + B", "count_A + count_B", "count_A", "count_B", "A + B", "A", "B", "count_B <= B", "count_B", "B", "print('Yes')", "print", "'Yes'", "print('No')", "print", "'No'", "count_B -= 1", "count_B", "1", "count_A -= 1", "1", "count_A", "count_A += 1", "1", "count_A", "count_B += 1", "1", "count_B", "N, A, B = list(map(int, input().split()))", "list(map(int, input().split()))", "N", "S = input()", "input()", "S", "count_A = 0", "0", "count_A", "B = list(map(int, input().split()))", "list(map(int, input().split()))", "B", "count_B = 0", "0", "count_B", "A, B = list(map(int, input().split()))", "list(map(int, input().split()))", "A", "count_B -= 1", "1", "count_B" ]
N, A, B = list(map(int, input().split())) S = input() count_A = 0 count_B = 0 for i in range(N): if S[i] == 'c': print('No') elif S[i] == 'a': count_A += 1 if count_A + count_B <= A + B: print('Yes') else: print('No') count_A -= 1 elif S[i] == 'b': count_B += 1 if count_A + count_B <= A + B and count_B <= B: print('Yes') else: print('No') count_B -= 1
[ 7, 0, 13, 4, 13, 13, 4, 18, 4, 13, 13, 13, 13, 0, 13, 17, 13, 17, 0, 13, 4, 13, 28, 13, 13, 14, 2, 2, 13, 17, 2, 2, 13, 13, 2, 13, 13, 0, 13, 17, 4, 13, 17, 14, 2, 2, 2, 13, 17, 2, 13, 13, 2, 2, 13, 13, 2, 13, 13, 0, 13, 17, 4, 13, 17, 4, 13, 17, 10, 17, 13, 10, 4, 13, 10, 17, 13, 10, 4, 13, 10, 4, 13, 10, 17, 13, 10, 17, 13, 10, 4, 13 ]
[ [ 90, 2 ], [ 90, 11 ], [ 90, 12 ], [ 75, 14 ], [ 84, 16 ], [ 72, 19 ], [ 24, 23 ], [ 73, 23 ], [ 23, 28 ], [ 76, 32 ], [ 88, 32 ], [ 85, 33 ], [ 70, 33 ], [ 79, 35 ], [ 82, 36 ], [ 87, 38 ], [ 23, 47 ], [ 85, 50 ], [ 70, 50 ], [ 82, 51 ], [ 76, 54 ], [ 88, 54 ], [ 85, 55 ], [ 70, 55 ], [ 79, 57 ], [ 82, 58 ], [ 69, 60 ], [ 69, 70 ], [ 72, 73 ], [ 75, 76 ], [ 90, 79 ], [ 90, 82 ], [ 84, 85 ], [ 87, 88 ], [ 90, 91 ] ]
[ "N, A, B = map(int, input().split())\ncount0, count1 = 0, 0\na = input()\nfor val in a:\n if val is 'a' and count0+count1 < A+B:\n count0 += 1\n print('Yes')\n elif val is 'b' and count1 < B and count0+count1 < A+B:\n count1 += 1\n print('Yes')\n else:\n print('No')\n ", "N, A, B = map(int, input().split())", "N", "map(int, input().split())", "map", "int", "input().split()", "().split", "()", "input", "split", "A", "B", "count0, count1 = 0, 0", "count0", "0", "count1", "0", "a = input()", "a", "input()", "input", "for val in a:\n if val is 'a' and count0+count1 < A+B:\n count0 += 1\n print('Yes')\n elif val is 'b' and count1 < B and count0+count1 < A+B:\n count1 += 1\n print('Yes')\n else:\n print('No')\n ", "val", "a", "if val is 'a' and count0+count1 < A+B:\n count0 += 1\n print('Yes')\n elif val is 'b' and count1 < B and count0+count1 < A+B:\n count1 += 1\n print('Yes')\n else:\n print('No')\n ", "val is 'a' and count0+count1 < A+B", "val is 'a'", "val", "'a'", "count0+count1 < A+B", "count0+count1", "count0", "count1", "A+B", "A", "B", "count0 += 1", "count0", "1", "print('Yes')", "print", "'Yes'", "elif val is 'b' and count1 < B and count0+count1 < A+B:\n count1 += 1\n print('Yes')\n ", "val is 'b' and count1 < B and count0+count1 < A+B", "val is 'b' and count1 < B", "val is 'b'", "val", "'b'", "count1 < B", "count1", "B", "count0+count1 < A+B", "count0+count1", "count0", "count1", "A+B", "A", "B", "count1 += 1", "count1", "1", "print('Yes')", "print", "'Yes'", "print('No')", "print", "'No'", "count1 += 1", "1", "count1", "a = input()", "input()", "a", "count0, count1 = 0, 0", "0", "count0", "A, B = map(int, input().split())", "map(int, input().split())", "A", "B = map(int, input().split())", "map(int, input().split())", "B", "count1 = 0, 0", "0", "count1", "count0 += 1", "1", "count0", "N, A, B = map(int, input().split())", "map(int, input().split())", "N" ]
N, A, B = map(int, input().split()) count0, count1 = 0, 0 a = input() for val in a: if val is 'a' and count0+count1 < A+B: count0 += 1 print('Yes') elif val is 'b' and count1 < B and count0+count1 < A+B: count1 += 1 print('Yes') else: print('No')
[ 7, 0, 13, 4, 13, 13, 4, 18, 4, 13, 13, 13, 13, 0, 13, 17, 13, 17, 0, 13, 4, 13, 28, 13, 4, 13, 13, 0, 13, 18, 13, 13, 14, 2, 13, 17, 14, 2, 2, 13, 13, 2, 13, 13, 0, 13, 17, 4, 13, 17, 4, 13, 17, 14, 2, 13, 17, 14, 2, 2, 2, 13, 13, 2, 13, 13, 2, 13, 13, 0, 13, 17, 4, 13, 17, 4, 13, 17, 4, 13, 17, 10, 4, 13, 10, 17, 13, 10, 17, 13, 10, 17, 13, 10, 4, 13, 10, 18, 13, 10, 4, 13, 10, 4, 13, 10, 17, 13 ]
[ [ 100, 2 ], [ 100, 11 ], [ 100, 12 ], [ 88, 14 ], [ 85, 16 ], [ 103, 19 ], [ 24, 23 ], [ 101, 26 ], [ 97, 28 ], [ 104, 30 ], [ 23, 31 ], [ 98, 34 ], [ 89, 39 ], [ 107, 39 ], [ 86, 40 ], [ 92, 40 ], [ 83, 42 ], [ 95, 43 ], [ 106, 45 ], [ 98, 55 ], [ 89, 61 ], [ 107, 61 ], [ 86, 62 ], [ 92, 62 ], [ 83, 64 ], [ 95, 65 ], [ 86, 67 ], [ 92, 67 ], [ 95, 68 ], [ 91, 70 ], [ 100, 83 ], [ 85, 86 ], [ 88, 89 ], [ 91, 92 ], [ 100, 95 ], [ 97, 98 ], [ 100, 101 ], [ 103, 104 ], [ 106, 107 ] ]
[ "n, A, B = map(int, input().split())\na, b = 0, 0\ns = input()\nfor i in range(n):\n s_i = s[i]\n if s_i == 'a':\n if (a + b) < (A + B):\n a += 1\n print('Yes')\n else:\n print('No')\n elif s_i == 'b':\n if ((a + b) < (A + B)) & (b < B):\n b += 1\n print('Yes')\n else:\n print('No')\n else:\n print('No')\n ", "n, A, B = map(int, input().split())", "n", "map(int, input().split())", "map", "int", "input().split()", "().split", "()", "input", "split", "A", "B", "a, b = 0, 0", "a", "0", "b", "0", "s = input()", "s", "input()", "input", "for i in range(n):\n s_i = s[i]\n if s_i == 'a':\n if (a + b) < (A + B):\n a += 1\n print('Yes')\n else:\n print('No')\n elif s_i == 'b':\n if ((a + b) < (A + B)) & (b < B):\n b += 1\n print('Yes')\n else:\n print('No')\n else:\n print('No')\n ", "i", "range(n)", "range", "n", "s_i = s[i]", "s_i", "s[i]", "s", "i", "if s_i == 'a':\n if (a + b) < (A + B):\n a += 1\n print('Yes')\n else:\n print('No')\n elif s_i == 'b':\n if ((a + b) < (A + B)) & (b < B):\n b += 1\n print('Yes')\n else:\n print('No')\n else:\n print('No')\n ", "s_i == 'a'", "s_i", "'a'", "if (a + b) < (A + B):\n a += 1\n print('Yes')\n else:\n print('No')\n ", "(a + b) < (A + B)", "a + b", "a", "b", "A + B", "A", "B", "a += 1", "a", "1", "print('Yes')", "print", "'Yes'", "print('No')", "print", "'No'", "elif s_i == 'b':\n if ((a + b) < (A + B)) & (b < B):\n b += 1\n print('Yes')\n else:\n print('No')\n ", "s_i == 'b'", "s_i", "'b'", "if ((a + b) < (A + B)) & (b < B):\n b += 1\n print('Yes')\n else:\n print('No')\n ", "((a + b) < (A + B)) & (b < B)", "(a + b) < (A + B)", "a + b", "a", "b", "A + B", "A", "B", "b < B", "b", "B", "b += 1", "b", "1", "print('Yes')", "print", "'Yes'", "print('No')", "print", "'No'", "print('No')", "print", "'No'", "A, B = map(int, input().split())", "map(int, input().split())", "A", "b = 0, 0", "0", "b", "a, b = 0, 0", "0", "a", "b += 1", "1", "b", "B = map(int, input().split())", "map(int, input().split())", "B", "s_i = s[i]", "s[i]", "s_i", "n, A, B = map(int, input().split())", "map(int, input().split())", "n", "s = input()", "input()", "s", "a += 1", "1", "a" ]
n, A, B = map(int, input().split()) a, b = 0, 0 s = input() for i in range(n): s_i = s[i] if s_i == 'a': if (a + b) < (A + B): a += 1 print('Yes') else: print('No') elif s_i == 'b': if ((a + b) < (A + B)) & (b < B): b += 1 print('Yes') else: print('No') else: print('No')
[ 7, 0, 13, 4, 13, 13, 4, 18, 4, 13, 13, 13, 13, 0, 13, 4, 13, 4, 13, 0, 13, 17, 0, 13, 17, 28, 13, 13, 14, 2, 2, 13, 17, 2, 13, 2, 13, 13, 0, 13, 17, 4, 13, 17, 14, 2, 2, 2, 13, 17, 2, 13, 2, 13, 13, 40, 13, 13, 0, 13, 17, 0, 13, 17, 4, 13, 17, 4, 13, 17, 10, 4, 13, 10, 4, 13, 10, 17, 13, 10, 17, 13, 10, 17, 13, 10, 17, 13, 10, 17, 13, 10, 4, 13, 10, 4, 13 ]
[ [ 95, 2 ], [ 95, 11 ], [ 95, 12 ], [ 74, 14 ], [ 77, 20 ], [ 86, 23 ], [ 27, 26 ], [ 75, 26 ], [ 26, 31 ], [ 78, 34 ], [ 84, 34 ], [ 81, 34 ], [ 96, 36 ], [ 72, 37 ], [ 80, 39 ], [ 26, 48 ], [ 78, 51 ], [ 84, 51 ], [ 81, 51 ], [ 96, 53 ], [ 72, 54 ], [ 87, 56 ], [ 90, 56 ], [ 72, 57 ], [ 89, 59 ], [ 83, 62 ], [ 95, 72 ], [ 74, 75 ], [ 77, 78 ], [ 80, 81 ], [ 83, 84 ], [ 86, 87 ], [ 89, 90 ], [ 95, 93 ], [ 95, 96 ] ]
[ "N, A, B = map(int, input().split())\nS = list(input())\n\nx = 0 # 予選の通過人数\nb = 1 # 海外勢の予選の通過人数\n\nfor S in S:\n if S == \"a\" and x < A + B:\n x += 1\n print(\"Yes\")\n elif S == \"b\" and x < A + B and b <= B:\n b += 1\n x += 1\n print(\"Yes\")\n else:\n print(\"No\")", "N, A, B = map(int, input().split())", "N", "map(int, input().split())", "map", "int", "input().split()", "().split", "()", "input", "split", "A", "B", "S = list(input())", "S", "list(input())", "list", "input()", "input", "x = 0", "x", "0", "b = 1", "b", "1", "for S in S:\n if S == \"a\" and x < A + B:\n x += 1\n print(\"Yes\")\n elif S == \"b\" and x < A + B and b <= B:\n b += 1\n x += 1\n print(\"Yes\")\n else:\n print(\"No\")", "S", "S", "if S == \"a\" and x < A + B:\n x += 1\n print(\"Yes\")\n elif S == \"b\" and x < A + B and b <= B:\n b += 1\n x += 1\n print(\"Yes\")\n else:\n print(\"No\")", "S == \"a\" and x < A + B", "S == \"a\"", "S", "\"a\"", "x < A + B", "x", "A + B", "A", "B", "x += 1", "x", "1", "print(\"Yes\")", "print", "\"Yes\"", "elif S == \"b\" and x < A + B and b <= B:\n b += 1\n x += 1\n print(\"Yes\")\n ", "S == \"b\" and x < A + B and b <= B", "S == \"b\" and x < A + B", "S == \"b\"", "S", "\"b\"", "x < A + B", "x", "A + B", "A", "B", "b <= B", "b", "B", "b += 1", "b", "1", "x += 1", "x", "1", "print(\"Yes\")", "print", "\"Yes\"", "print(\"No\")", "print", "\"No\"", "B = map(int, input().split())", "map(int, input().split())", "B", "S = list(input())", "list(input())", "S", "x = 0", "0", "x", "x += 1", "1", "x", "x += 1", "1", "x", "b = 1", "1", "b", "b += 1", "1", "b", "N, A, B = map(int, input().split())", "map(int, input().split())", "N", "A, B = map(int, input().split())", "map(int, input().split())", "A" ]
N, A, B = map(int, input().split()) S = list(input()) x = 0 # 予選の通過人数 b = 1 # 海外勢の予選の通過人数 for S in S: if S == "a" and x < A + B: x += 1 print("Yes") elif S == "b" and x < A + B and b <= B: b += 1 x += 1 print("Yes") else: print("No")
[ 7, 0, 13, 4, 13, 13, 4, 18, 4, 13, 13, 17, 13, 13, 0, 13, 4, 13, 0, 13, 17, 0, 13, 17, 0, 13, 39, 28, 13, 4, 13, 13, 14, 2, 18, 13, 13, 17, 14, 2, 2, 13, 13, 2, 13, 13, 4, 18, 13, 13, 17, 0, 13, 17, 4, 18, 13, 13, 17, 14, 2, 18, 13, 13, 17, 14, 2, 2, 2, 13, 13, 2, 13, 13, 2, 13, 13, 4, 18, 13, 13, 17, 0, 13, 17, 4, 18, 13, 13, 17, 14, 2, 18, 13, 13, 17, 4, 18, 13, 13, 17, 28, 13, 13, 4, 13, 13, 10, 4, 13, 10, 39, 13, 10, 4, 13, 10, 17, 13, 10, 17, 13, 10, 17, 13, 10, 4, 13, 10, 4, 13, 10, 17, 13 ]
[ [ 129, 2 ], [ 129, 12 ], [ 129, 13 ], [ 126, 15 ], [ 132, 19 ], [ 117, 22 ], [ 111, 25 ], [ 29, 28 ], [ 109, 31 ], [ 127, 35 ], [ 28, 36 ], [ 133, 41 ], [ 121, 41 ], [ 118, 42 ], [ 124, 42 ], [ 115, 44 ], [ 130, 45 ], [ 112, 48 ], [ 120, 52 ], [ 112, 56 ], [ 127, 62 ], [ 28, 63 ], [ 121, 69 ], [ 133, 69 ], [ 118, 70 ], [ 124, 70 ], [ 115, 72 ], [ 130, 73 ], [ 118, 75 ], [ 124, 75 ], [ 130, 76 ], [ 112, 79 ], [ 123, 83 ], [ 112, 87 ], [ 127, 93 ], [ 28, 94 ], [ 112, 98 ], [ 103, 102 ], [ 112, 102 ], [ 102, 106 ], [ 129, 109 ], [ 111, 112 ], [ 129, 115 ], [ 117, 118 ], [ 120, 121 ], [ 123, 124 ], [ 126, 127 ], [ 129, 130 ], [ 132, 133 ] ]
[ "N, A, B = map(int, input().split(' '))\nS = input()\n\npassed_a = 0\npassed_b = 0\nans = []\nfor i in range(N):\n if S[i] == 'a':\n if passed_a + passed_b < A + B:\n ans.append('Yes')\n passed_a += 1\n else:\n ans.append('No')\n\n if S[i] == 'b':\n if passed_a + passed_b < A + B and passed_b < B:\n ans.append('Yes')\n passed_b += 1\n else:\n ans.append('No')\n\n if S[i] == 'c':\n ans.append('No')\n\nfor _ in ans:\n print(_)", "N, A, B = map(int, input().split(' '))", "N", "map(int, input().split(' '))", "map", "int", "input().split(' ')", "().split", "()", "input", "split", "' '", "A", "B", "S = input()", "S", "input()", "input", "passed_a = 0", "passed_a", "0", "passed_b = 0", "passed_b", "0", "ans = []", "ans", "[]", "for i in range(N):\n if S[i] == 'a':\n if passed_a + passed_b < A + B:\n ans.append('Yes')\n passed_a += 1\n else:\n ans.append('No')\n\n if S[i] == 'b':\n if passed_a + passed_b < A + B and passed_b < B:\n ans.append('Yes')\n passed_b += 1\n else:\n ans.append('No')\n\n if S[i] == 'c':\n ans.append('No')", "i", "range(N)", "range", "N", "if S[i] == 'a':\n if passed_a + passed_b < A + B:\n ans.append('Yes')\n passed_a += 1\n else:\n ans.append('No')\n\n ", "S[i] == 'a'", "S[i]", "S", "i", "'a'", "if passed_a + passed_b < A + B:\n ans.append('Yes')\n passed_a += 1\n else:\n ans.append('No')\n\n ", "passed_a + passed_b < A + B", "passed_a + passed_b", "passed_a", "passed_b", "A + B", "A", "B", "ans.append('Yes')", "ans.append", "ans", "append", "'Yes'", "passed_a += 1", "passed_a", "1", "ans.append('No')", "ans.append", "ans", "append", "'No'", "if S[i] == 'b':\n if passed_a + passed_b < A + B and passed_b < B:\n ans.append('Yes')\n passed_b += 1\n else:\n ans.append('No')\n\n ", "S[i] == 'b'", "S[i]", "S", "i", "'b'", "if passed_a + passed_b < A + B and passed_b < B:\n ans.append('Yes')\n passed_b += 1\n else:\n ans.append('No')\n\n ", "passed_a + passed_b < A + B and passed_b < B", "passed_a + passed_b < A + B", "passed_a + passed_b", "passed_a", "passed_b", "A + B", "A", "B", "passed_b < B", "passed_b", "B", "ans.append('Yes')", "ans.append", "ans", "append", "'Yes'", "passed_b += 1", "passed_b", "1", "ans.append('No')", "ans.append", "ans", "append", "'No'", "if S[i] == 'c':\n ans.append('No')", "S[i] == 'c'", "S[i]", "S", "i", "'c'", "ans.append('No')", "ans.append", "ans", "append", "'No'", "for _ in ans:\n print(_)", "_", "ans", "print(_)", "print", "_", "N, A, B = map(int, input().split(' '))", "map(int, input().split(' '))", "N", "ans = []", "[]", "ans", "A, B = map(int, input().split(' '))", "map(int, input().split(' '))", "A", "passed_b = 0", "0", "passed_b", "passed_a += 1", "1", "passed_a", "passed_b += 1", "1", "passed_b", "S = input()", "input()", "S", "B = map(int, input().split(' '))", "map(int, input().split(' '))", "B", "passed_a = 0", "0", "passed_a" ]
N, A, B = map(int, input().split(' ')) S = input() passed_a = 0 passed_b = 0 ans = [] for i in range(N): if S[i] == 'a': if passed_a + passed_b < A + B: ans.append('Yes') passed_a += 1 else: ans.append('No') if S[i] == 'b': if passed_a + passed_b < A + B and passed_b < B: ans.append('Yes') passed_b += 1 else: ans.append('No') if S[i] == 'c': ans.append('No') for _ in ans: print(_)
[ 7, 0, 13, 4, 13, 13, 4, 18, 4, 13, 13, 13, 13, 0, 13, 4, 13, 0, 13, 17, 0, 13, 17, 28, 13, 4, 13, 13, 14, 2, 18, 13, 13, 17, 14, 2, 13, 2, 13, 13, 4, 13, 17, 0, 13, 17, 4, 13, 17, 14, 2, 18, 13, 13, 17, 0, 13, 17, 14, 2, 2, 13, 2, 13, 13, 40, 13, 13, 4, 13, 17, 0, 13, 17, 4, 13, 17, 4, 13, 17, 10, 4, 13, 10, 17, 13, 10, 17, 13, 10, 4, 13, 10, 4, 13, 10, 17, 13, 10, 4, 13, 10, 17, 13, 10, 17, 13 ]
[ [ 99, 2 ], [ 99, 11 ], [ 99, 12 ], [ 90, 14 ], [ 96, 18 ], [ 102, 21 ], [ 25, 24 ], [ 100, 27 ], [ 91, 31 ], [ 24, 32 ], [ 97, 36 ], [ 88, 36 ], [ 85, 36 ], [ 94, 38 ], [ 82, 39 ], [ 84, 44 ], [ 91, 52 ], [ 24, 53 ], [ 105, 56 ], [ 97, 61 ], [ 88, 61 ], [ 85, 61 ], [ 94, 63 ], [ 82, 64 ], [ 106, 66 ], [ 103, 66 ], [ 82, 67 ], [ 87, 72 ], [ 99, 82 ], [ 84, 85 ], [ 87, 88 ], [ 90, 91 ], [ 99, 94 ], [ 96, 97 ], [ 99, 100 ], [ 102, 103 ], [ 105, 106 ] ]
[ "n,a,b =map(int,input().split())\ns = input()\ncnt = 0\np = 0\nfor i in range(n):\n if s[i] == 'a':\n if cnt <a+b:\n print('Yes')\n cnt +=1\n else:\n print('No')\n elif s[i] == 'b':\n p +=1\n if cnt <a+b and p <=b:\n print('Yes')\n cnt +=1\n else:\n print('No')\n else:\n print('No')", "n,a,b =map(int,input().split())", "n", "map(int,input().split())", "map", "int", "input().split()", "().split", "()", "input", "split", "a", "b", "s = input()", "s", "input()", "input", "cnt = 0", "cnt", "0", "p = 0", "p", "0", "for i in range(n):\n if s[i] == 'a':\n if cnt <a+b:\n print('Yes')\n cnt +=1\n else:\n print('No')\n elif s[i] == 'b':\n p +=1\n if cnt <a+b and p <=b:\n print('Yes')\n cnt +=1\n else:\n print('No')\n else:\n print('No')", "i", "range(n)", "range", "n", "if s[i] == 'a':\n if cnt <a+b:\n print('Yes')\n cnt +=1\n else:\n print('No')\n elif s[i] == 'b':\n p +=1\n if cnt <a+b and p <=b:\n print('Yes')\n cnt +=1\n else:\n print('No')\n else:\n print('No')", "s[i] == 'a'", "s[i]", "s", "i", "'a'", "if cnt <a+b:\n print('Yes')\n cnt +=1\n else:\n print('No')\n ", "cnt <a+b", "cnt", "a+b", "a", "b", "print('Yes')", "print", "'Yes'", "cnt +=1", "cnt", "1", "print('No')", "print", "'No'", "elif s[i] == 'b':\n p +=1\n if cnt <a+b and p <=b:\n print('Yes')\n cnt +=1\n else:\n print('No')\n ", "s[i] == 'b'", "s[i]", "s", "i", "'b'", "p +=1", "p", "1", "if cnt <a+b and p <=b:\n print('Yes')\n cnt +=1\n else:\n print('No')\n ", "cnt <a+b and p <=b", "cnt <a+b", "cnt", "a+b", "a", "b", "p <=b", "p", "b", "print('Yes')", "print", "'Yes'", "cnt +=1", "cnt", "1", "print('No')", "print", "'No'", "print('No')", "print", "'No'", "b =map(int,input().split())", "map(int,input().split())", "b", "cnt +=1", "1", "cnt", "cnt +=1", "1", "cnt", "s = input()", "input()", "s", "a,b =map(int,input().split())", "map(int,input().split())", "a", "cnt = 0", "0", "cnt", "n,a,b =map(int,input().split())", "map(int,input().split())", "n", "p = 0", "0", "p", "p +=1", "1", "p" ]
n,a,b =map(int,input().split()) s = input() cnt = 0 p = 0 for i in range(n): if s[i] == 'a': if cnt <a+b: print('Yes') cnt +=1 else: print('No') elif s[i] == 'b': p +=1 if cnt <a+b and p <=b: print('Yes') cnt +=1 else: print('No') else: print('No')
[ 7, 15, 13, 15, 15, 13, 15, 15, 13, 15, 0, 13, 4, 13, 13, 4, 18, 4, 13, 13, 13, 13, 0, 13, 4, 13, 0, 13, 17, 0, 13, 17, 28, 13, 4, 13, 17, 13, 14, 2, 13, 2, 13, 13, 14, 2, 18, 13, 13, 17, 0, 13, 17, 4, 13, 17, 14, 2, 2, 18, 13, 13, 17, 2, 13, 13, 0, 13, 17, 0, 13, 17, 4, 13, 17, 4, 13, 17, 4, 13, 17, 10, 17, 13, 10, 4, 13, 10, 17, 13, 10, 4, 13, 10, 17, 13, 10, 17, 13, 10, 4, 13, 10, 4, 13, 10, 17, 13 ]
[ [ 100, 11 ], [ 100, 20 ], [ 100, 21 ], [ 103, 23 ], [ 94, 27 ], [ 97, 30 ], [ 34, 33 ], [ 101, 37 ], [ 95, 40 ], [ 107, 40 ], [ 89, 40 ], [ 92, 42 ], [ 86, 43 ], [ 104, 47 ], [ 33, 48 ], [ 88, 51 ], [ 104, 60 ], [ 33, 61 ], [ 98, 64 ], [ 83, 64 ], [ 86, 65 ], [ 106, 67 ], [ 82, 70 ], [ 82, 83 ], [ 100, 86 ], [ 88, 89 ], [ 100, 92 ], [ 94, 95 ], [ 97, 98 ], [ 100, 101 ], [ 103, 104 ], [ 106, 107 ] ]
[ "# -*- coding: utf-8 -*-\n\n## Library\n\nimport sys\nfrom fractions import gcd\nimport math\nfrom math import ceil,floor\nimport collections\nfrom collections import Counter\n\n## input\n\n# n=int(input())\n# A,B,C,D=map(int, input().split())\n# string = input()\n# yoko = list(map(int, input().split()))\n# tate = [int(input()) for _ in range(N)]\n# N, M = map(int,input().split()) \n# P = [list(map(int,input().split())) for i in range(M)]\n\nN,A,B=map(int, input().split())\nS = input()\ntmp1 = 0\ntmp2 = 0\n\nfor i in range(0,N):\n if tmp1 < A+B:\n if S[i] == \"a\":\n tmp1 += 1\n print(\"Yes\")\n elif (S[i] == \"b\") & (tmp2 < B):\n tmp1 += 1\n tmp2 += 1\n print(\"Yes\")\n else:\n print(\"No\")\n else:\n print(\"No\")", "import sys", "sys", "from fractions import gcd", "import math", "math", "from math import ceil,floor", "import collections", "collections", "from collections import Counter", "N,A,B=map(int, input().split())", "N", "map(int, input().split())", "map", "int", "input().split()", "().split", "()", "input", "split", "A", "B", "S = input()", "S", "input()", "input", "tmp1 = 0", "tmp1", "0", "tmp2 = 0", "tmp2", "0", "for i in range(0,N):\n if tmp1 < A+B:\n if S[i] == \"a\":\n tmp1 += 1\n print(\"Yes\")\n elif (S[i] == \"b\") & (tmp2 < B):\n tmp1 += 1\n tmp2 += 1\n print(\"Yes\")\n else:\n print(\"No\")\n else:\n print(\"No\")", "i", "range(0,N)", "range", "0", "N", "if tmp1 < A+B:\n if S[i] == \"a\":\n tmp1 += 1\n print(\"Yes\")\n elif (S[i] == \"b\") & (tmp2 < B):\n tmp1 += 1\n tmp2 += 1\n print(\"Yes\")\n else:\n print(\"No\")\n else:\n print(\"No\")", "tmp1 < A+B", "tmp1", "A+B", "A", "B", "if S[i] == \"a\":\n tmp1 += 1\n print(\"Yes\")\n elif (S[i] == \"b\") & (tmp2 < B):\n tmp1 += 1\n tmp2 += 1\n print(\"Yes\")\n else:\n print(\"No\")\n ", "S[i] == \"a\"", "S[i]", "S", "i", "\"a\"", "tmp1 += 1", "tmp1", "1", "print(\"Yes\")", "print", "\"Yes\"", "elif (S[i] == \"b\") & (tmp2 < B):\n tmp1 += 1\n tmp2 += 1\n print(\"Yes\")\n ", "(S[i] == \"b\") & (tmp2 < B)", "S[i] == \"b\"", "S[i]", "S", "i", "\"b\"", "tmp2 < B", "tmp2", "B", "tmp1 += 1", "tmp1", "1", "tmp2 += 1", "tmp2", "1", "print(\"Yes\")", "print", "\"Yes\"", "print(\"No\")", "print", "\"No\"", "print(\"No\")", "print", "\"No\"", "tmp2 += 1", "1", "tmp2", "B=map(int, input().split())", "map(int, input().split())", "B", "tmp1 += 1", "1", "tmp1", "A,B=map(int, input().split())", "map(int, input().split())", "A", "tmp1 = 0", "0", "tmp1", "tmp2 = 0", "0", "tmp2", "N,A,B=map(int, input().split())", "map(int, input().split())", "N", "S = input()", "input()", "S", "tmp1 += 1", "1", "tmp1" ]
# -*- coding: utf-8 -*- ## Library import sys from fractions import gcd import math from math import ceil,floor import collections from collections import Counter ## input # n=int(input()) # A,B,C,D=map(int, input().split()) # string = input() # yoko = list(map(int, input().split())) # tate = [int(input()) for _ in range(N)] # N, M = map(int,input().split()) # P = [list(map(int,input().split())) for i in range(M)] N,A,B=map(int, input().split()) S = input() tmp1 = 0 tmp2 = 0 for i in range(0,N): if tmp1 < A+B: if S[i] == "a": tmp1 += 1 print("Yes") elif (S[i] == "b") & (tmp2 < B): tmp1 += 1 tmp2 += 1 print("Yes") else: print("No") else: print("No")
[ 7, 0, 13, 4, 13, 13, 4, 18, 4, 13, 13, 13, 13, 0, 13, 4, 13, 0, 13, 17, 0, 13, 17, 28, 13, 4, 13, 13, 14, 2, 13, 17, 14, 2, 2, 13, 13, 2, 13, 13, 0, 13, 17, 4, 13, 17, 9, 14, 2, 13, 17, 14, 2, 2, 13, 13, 2, 13, 13, 14, 2, 13, 13, 0, 13, 17, 4, 13, 17, 9, 4, 13, 17, 10, 4, 13, 10, 17, 13, 10, 4, 13, 10, 17, 13, 10, 4, 13, 10, 17, 13, 10, 4, 13, 10, 17, 13 ]
[ [ 92, 2 ], [ 92, 11 ], [ 92, 12 ], [ 80, 14 ], [ 95, 18 ], [ 83, 21 ], [ 25, 24 ], [ 81, 27 ], [ 24, 30 ], [ 96, 35 ], [ 78, 35 ], [ 84, 36 ], [ 90, 36 ], [ 93, 38 ], [ 75, 39 ], [ 77, 41 ], [ 24, 49 ], [ 78, 54 ], [ 96, 54 ], [ 84, 55 ], [ 90, 55 ], [ 93, 57 ], [ 75, 58 ], [ 84, 61 ], [ 90, 61 ], [ 75, 62 ], [ 89, 64 ], [ 92, 75 ], [ 77, 78 ], [ 80, 81 ], [ 83, 84 ], [ 92, 87 ], [ 89, 90 ], [ 92, 93 ], [ 95, 96 ] ]
[ "n, a, b = map(int, input().split())\ns = input()\njap_c = 0\nab_c = 0\nfor i in list(s):\n if i == 'a':\n if jap_c + ab_c < a+b:\n jap_c += 1\n print('Yes')\n continue\n if i == 'b':\n if jap_c + ab_c < a+b:\n if ab_c < b:\n ab_c += 1\n print('Yes')\n continue\n print('No')", "n, a, b = map(int, input().split())", "n", "map(int, input().split())", "map", "int", "input().split()", "().split", "()", "input", "split", "a", "b", "s = input()", "s", "input()", "input", "jap_c = 0", "jap_c", "0", "ab_c = 0", "ab_c", "0", "for i in list(s):\n if i == 'a':\n if jap_c + ab_c < a+b:\n jap_c += 1\n print('Yes')\n continue\n if i == 'b':\n if jap_c + ab_c < a+b:\n if ab_c < b:\n ab_c += 1\n print('Yes')\n continue\n print('No')", "i", "list(s)", "list", "s", "if i == 'a':\n if jap_c + ab_c < a+b:\n jap_c += 1\n print('Yes')\n continue\n ", "i == 'a'", "i", "'a'", "if jap_c + ab_c < a+b:\n jap_c += 1\n print('Yes')\n continue\n ", "jap_c + ab_c < a+b", "jap_c + ab_c", "jap_c", "ab_c", "a+b", "a", "b", "jap_c += 1", "jap_c", "1", "print('Yes')", "print", "'Yes'", "continue", "if i == 'b':\n if jap_c + ab_c < a+b:\n if ab_c < b:\n ab_c += 1\n print('Yes')\n continue\n ", "i == 'b'", "i", "'b'", "if jap_c + ab_c < a+b:\n if ab_c < b:\n ab_c += 1\n print('Yes')\n continue\n ", "jap_c + ab_c < a+b", "jap_c + ab_c", "jap_c", "ab_c", "a+b", "a", "b", "if ab_c < b:\n ab_c += 1\n print('Yes')\n continue\n ", "ab_c < b", "ab_c", "b", "ab_c += 1", "ab_c", "1", "print('Yes')", "print", "'Yes'", "continue", "print('No')", "print", "'No'", "b = map(int, input().split())", "map(int, input().split())", "b", "jap_c += 1", "1", "jap_c", "s = input()", "input()", "s", "ab_c = 0", "0", "ab_c", "n, a, b = map(int, input().split())", "map(int, input().split())", "n", "ab_c += 1", "1", "ab_c", "a, b = map(int, input().split())", "map(int, input().split())", "a", "jap_c = 0", "0", "jap_c" ]
n, a, b = map(int, input().split()) s = input() jap_c = 0 ab_c = 0 for i in list(s): if i == 'a': if jap_c + ab_c < a+b: jap_c += 1 print('Yes') continue if i == 'b': if jap_c + ab_c < a+b: if ab_c < b: ab_c += 1 print('Yes') continue print('No')
[ 7, 0, 13, 4, 13, 13, 4, 18, 4, 13, 13, 13, 13, 0, 13, 4, 13, 0, 13, 2, 13, 13, 0, 13, 13, 0, 13, 39, 28, 13, 13, 14, 2, 13, 17, 14, 2, 13, 17, 4, 18, 13, 13, 17, 0, 13, 17, 4, 18, 13, 13, 17, 14, 2, 13, 17, 14, 2, 2, 13, 17, 2, 13, 17, 4, 18, 13, 13, 17, 0, 13, 17, 0, 13, 17, 4, 18, 13, 13, 17, 4, 18, 13, 13, 17, 28, 13, 13, 14, 13, 4, 13, 17, 4, 13, 17, 10, 4, 13, 10, 4, 13, 10, 2, 13, 10, 17, 13, 10, 39, 13, 10, 4, 13, 10, 4, 13, 10, 17, 13, 10, 13, 13, 10, 17, 13 ]
[ [ 112, 2 ], [ 112, 11 ], [ 112, 12 ], [ 115, 14 ], [ 103, 18 ], [ 98, 20 ], [ 101, 21 ], [ 121, 23 ], [ 101, 24 ], [ 109, 26 ], [ 30, 29 ], [ 116, 29 ], [ 29, 33 ], [ 104, 37 ], [ 107, 37 ], [ 125, 37 ], [ 110, 41 ], [ 124, 45 ], [ 110, 49 ], [ 29, 54 ], [ 104, 59 ], [ 107, 59 ], [ 125, 59 ], [ 122, 62 ], [ 119, 62 ], [ 110, 66 ], [ 106, 70 ], [ 118, 73 ], [ 110, 77 ], [ 110, 82 ], [ 87, 86 ], [ 110, 86 ], [ 112, 98 ], [ 112, 101 ], [ 103, 104 ], [ 106, 107 ], [ 109, 110 ], [ 112, 113 ], [ 115, 116 ], [ 118, 119 ], [ 101, 121 ], [ 121, 122 ], [ 124, 125 ] ]
[ "N,A,B=map(int,input().split())\nS=input()\n\nX=A+B\nY=B\n\nT=[]\nfor s in S:\n if s==\"a\":\n if X>0:\n T.append(True)\n X-=1\n else:\n T.append(False)\n elif s==\"b\":\n if X>0 and Y>0:\n T.append(True)\n X-=1\n Y-=1\n else:\n T.append(False)\n else:\n T.append(False)\n\nfor t in T:\n if t:\n print(\"Yes\")\n else:\n print(\"No\")", "N,A,B=map(int,input().split())", "N", "map(int,input().split())", "map", "int", "input().split()", "().split", "()", "input", "split", "A", "B", "S=input()", "S", "input()", "input", "X=A+B", "X", "A+B", "A", "B", "Y=B", "Y", "B", "T=[]", "T", "[]", "for s in S:\n if s==\"a\":\n if X>0:\n T.append(True)\n X-=1\n else:\n T.append(False)\n elif s==\"b\":\n if X>0 and Y>0:\n T.append(True)\n X-=1\n Y-=1\n else:\n T.append(False)\n else:\n T.append(False)", "s", "S", "if s==\"a\":\n if X>0:\n T.append(True)\n X-=1\n else:\n T.append(False)\n elif s==\"b\":\n if X>0 and Y>0:\n T.append(True)\n X-=1\n Y-=1\n else:\n T.append(False)\n else:\n T.append(False)", "s==\"a\"", "s", "\"a\"", "if X>0:\n T.append(True)\n X-=1\n else:\n T.append(False)\n ", "X>0", "X", "0", "T.append(True)", "T.append", "T", "append", "True", "X-=1", "X", "1", "T.append(False)", "T.append", "T", "append", "False", "elif s==\"b\":\n if X>0 and Y>0:\n T.append(True)\n X-=1\n Y-=1\n else:\n T.append(False)\n ", "s==\"b\"", "s", "\"b\"", "if X>0 and Y>0:\n T.append(True)\n X-=1\n Y-=1\n else:\n T.append(False)\n ", "X>0 and Y>0", "X>0", "X", "0", "Y>0", "Y", "0", "T.append(True)", "T.append", "T", "append", "True", "X-=1", "X", "1", "Y-=1", "Y", "1", "T.append(False)", "T.append", "T", "append", "False", "T.append(False)", "T.append", "T", "append", "False", "for t in T:\n if t:\n print(\"Yes\")\n else:\n print(\"No\")", "t", "T", "if t:\n print(\"Yes\")\n else:\n print(\"No\")", "t", "print(\"Yes\")", "print", "\"Yes\"", "print(\"No\")", "print", "\"No\"", "A,B=map(int,input().split())", "map(int,input().split())", "A", "B=map(int,input().split())", "map(int,input().split())", "B", "X=A+B", "A+B", "X", "X-=1", "1", "X", "T=[]", "[]", "T", "N,A,B=map(int,input().split())", "map(int,input().split())", "N", "S=input()", "input()", "S", "Y-=1", "1", "Y", "Y=B", "B", "Y", "X-=1", "1", "X" ]
N,A,B=map(int,input().split()) S=input() X=A+B Y=B T=[] for s in S: if s=="a": if X>0: T.append(True) X-=1 else: T.append(False) elif s=="b": if X>0 and Y>0: T.append(True) X-=1 Y-=1 else: T.append(False) else: T.append(False) for t in T: if t: print("Yes") else: print("No")
[ 7, 15, 13, 12, 13, 12, 13, 12, 13, 12, 13, 41, 28, 13, 4, 13, 13, 4, 4, 13, 12, 13, 23, 13, 41, 28, 13, 4, 13, 13, 4, 4, 13, 12, 13, 23, 13, 41, 28, 13, 4, 13, 13, 4, 4, 13, 12, 13, 23, 13, 41, 28, 13, 4, 13, 13, 4, 4, 13, 12, 13, 23, 13, 41, 28, 13, 4, 13, 13, 4, 4, 13, 4, 13, 12, 13, 23, 13, 41, 28, 13, 4, 13, 13, 4, 13, 12, 13, 23, 13, 0, 13, 2, 2, 17, 17, 17, 0, 13, 4, 13, 13, 13, 0, 13, 4, 13, 0, 13, 4, 13, 13, 0, 13, 39, 0, 13, 39, 0, 13, 2, 13, 13, 28, 13, 4, 13, 4, 13, 13, 14, 2, 18, 13, 13, 17, 14, 2, 2, 4, 13, 13, 4, 13, 13, 13, 0, 18, 13, 13, 17, 4, 18, 13, 13, 13, 0, 18, 13, 13, 17, 14, 2, 18, 13, 13, 17, 14, 2, 2, 2, 4, 13, 13, 4, 13, 13, 13, 2, 4, 13, 13, 13, 0, 18, 13, 13, 17, 4, 18, 13, 13, 13, 0, 18, 13, 13, 17, 14, 2, 18, 13, 13, 17, 0, 18, 13, 13, 17, 28, 13, 13, 4, 13, 13, 10, 12, 13, 10, 4, 13, 10, 12, 13, 10, 2, 13, 10, 12, 13, 10, 39, 13, 10, 12, 13, 10, 4, 13, 10, 12, 13, 10, 12, 13, 10, 12, 13, 10, 12, 13, 10, 39, 13, 10, 2, 13, 10, 12, 13, 10, 12, 13, 10, 4, 13, 10, 4, 13, 10, 4, 13 ]
[ [ 14, 13 ], [ 259, 19 ], [ 23, 23 ], [ 27, 26 ], [ 217, 32 ], [ 36, 36 ], [ 40, 39 ], [ 247, 45 ], [ 49, 49 ], [ 53, 52 ], [ 244, 58 ], [ 62, 62 ], [ 66, 65 ], [ 247, 73 ], [ 77, 77 ], [ 81, 80 ], [ 89, 89 ], [ 255, 91 ], [ 267, 98 ], [ 217, 100 ], [ 267, 101 ], [ 267, 102 ], [ 270, 104 ], [ 247, 106 ], [ 264, 108 ], [ 271, 111 ], [ 252, 113 ], [ 231, 116 ], [ 225, 119 ], [ 268, 121 ], [ 238, 122 ], [ 125, 124 ], [ 265, 129 ], [ 205, 132 ], [ 194, 132 ], [ 184, 132 ], [ 157, 132 ], [ 147, 132 ], [ 265, 133 ], [ 124, 134 ], [ 253, 141 ], [ 232, 144 ], [ 226, 145 ], [ 150, 147 ], [ 265, 148 ], [ 124, 149 ], [ 253, 153 ], [ 124, 155 ], [ 160, 157 ], [ 265, 158 ], [ 124, 159 ], [ 205, 163 ], [ 194, 163 ], [ 184, 163 ], [ 157, 163 ], [ 147, 163 ], [ 265, 164 ], [ 124, 165 ], [ 253, 173 ], [ 232, 176 ], [ 226, 177 ], [ 232, 181 ], [ 238, 182 ], [ 187, 184 ], [ 265, 185 ], [ 124, 186 ], [ 232, 190 ], [ 124, 192 ], [ 197, 194 ], [ 265, 195 ], [ 124, 196 ], [ 205, 200 ], [ 194, 200 ], [ 184, 200 ], [ 157, 200 ], [ 147, 200 ], [ 265, 201 ], [ 124, 202 ], [ 208, 205 ], [ 265, 206 ], [ 124, 207 ], [ 211, 210 ], [ 265, 210 ], [ 210, 214 ], [ 267, 220 ], [ 225, 226 ], [ 231, 232 ], [ 267, 238 ], [ 252, 253 ], [ 255, 256 ], [ 264, 265 ], [ 267, 268 ], [ 270, 271 ] ]
[ "import sys\ndef LI(): return list(map(int, sys.stdin.buffer.readline().split()))\ndef I(): return int(sys.stdin.buffer.readline())\ndef LS(): return sys.stdin.buffer.readline().rstrip().decode('utf-8').split()\ndef S(): return sys.stdin.buffer.readline().rstrip().decode('utf-8')\ndef IR(n): return [I() for i in range(n)]\ndef LIR(n): return [LI() for i in range(n)]\ndef SR(n): return [S() for i in range(n)]\ndef LSR(n): return [LS() for i in range(n)]\ndef SRL(n): return [list(S()) for i in range(n)]\ndef MSRL(n): return [[int(j) for j in list(S())] for i in range(n)]\nmod = 10 ** 9 + 7\n\nn, a, b = LI()\ns = S()\n\n# n人が参加するコンペに国内の学生か海外の学生かその他がいる。\n# 国内または海外の学生のみが予選通過でき、上位の学生から以下の条件を満たすとき通過\n# 国内の学生は通過確定した参加者がA+B人に満たなければ通過\n# 海外の学生は通過確定した参加者がA+B人に満たず、海外の学生中での順位がB位以内ならば予選通過\n\n# Sは参加者の情報を示す文字列。i番目の文字がaの時予選i位の参加者が国内の学生、bの時は海外の学生。\n# cの時はその他。\n# すべての参加者に対して予選通過に対しYes、Noを出力せよ\n\nsl = list(s)\nlist_a = []\nlist_b = []\nmax_pass = a + b\n\nfor i in range(len(sl)):\n if sl[i] == \"a\":\n if len(list_a) + len(list_b) < max_pass:\n sl[i] = \"Yes\"\n list_a.append(i)\n else:\n sl[i] = \"No\"\n elif sl[i] == \"b\":\n if len(list_a) + len(list_b) < max_pass and len(list_b) < b:\n sl[i] = \"Yes\"\n list_b.append(i)\n else:\n sl[i] = \"No\"\n elif sl[i] == \"c\":\n sl[i] = \"No\"\n\nfor x in sl:\n print(x)", "import sys", "sys", "def LI(): return list(map(int, sys.stdin.buffer.readline().split()))", "LI", "def I(): return int(sys.stdin.buffer.readline())", "I", "def LS(): return sys.stdin.buffer.readline().rstrip().decode('utf-8').split()", "LS", "def S(): return sys.stdin.buffer.readline().rstrip().decode('utf-8')", "S", "I() for i in range(n)", "for i in range(n)", "i", "range(n)", "range", "n", "for i in range(n)", "I()", "I", "def IR(n): return [I() for i in range(n)]", "IR", "n", "n", "LI() for i in range(n)", "for i in range(n)", "i", "range(n)", "range", "n", "for i in range(n)", "LI()", "LI", "def LIR(n): return [LI() for i in range(n)]", "LIR", "n", "n", "S() for i in range(n)", "for i in range(n)", "i", "range(n)", "range", "n", "for i in range(n)", "S()", "S", "def SR(n): return [S() for i in range(n)]", "SR", "n", "n", "LS() for i in range(n)", "for i in range(n)", "i", "range(n)", "range", "n", "for i in range(n)", "LS()", "LS", "def LSR(n): return [LS() for i in range(n)]", "LSR", "n", "n", "list(S()) for i in range(n)", "for i in range(n)", "i", "range(n)", "range", "n", "for i in range(n)", "list(S())", "list", "S()", "S", "def SRL(n): return [list(S()) for i in range(n)]", "SRL", "n", "n", "[int(j) for j in list(S())] for i in range(n)", "for i in range(n)", "i", "range(n)", "range", "n", "for i in range(n)", "[int(j) for j in list(S())]", "def MSRL(n): return [[int(j) for j in list(S())] for i in range(n)]", "MSRL", "n", "n", "mod = 10 ** 9 + 7", "mod", "10 ** 9 + 7", "10 ** 9", "10", "9", "7", "n, a, b = LI()", "n", "LI()", "LI", "a", "b", "s = S()", "s", "S()", "S", "sl = list(s)", "sl", "list(s)", "list", "s", "list_a = []", "list_a", "[]", "list_b = []", "list_b", "[]", "max_pass = a + b", "max_pass", "a + b", "a", "b", "for i in range(len(sl)):\n if sl[i] == \"a\":\n if len(list_a) + len(list_b) < max_pass:\n sl[i] = \"Yes\"\n list_a.append(i)\n else:\n sl[i] = \"No\"\n elif sl[i] == \"b\":\n if len(list_a) + len(list_b) < max_pass and len(list_b) < b:\n sl[i] = \"Yes\"\n list_b.append(i)\n else:\n sl[i] = \"No\"\n elif sl[i] == \"c\":\n sl[i] = \"No\"", "i", "range(len(sl))", "range", "len(sl)", "len", "sl", "if sl[i] == \"a\":\n if len(list_a) + len(list_b) < max_pass:\n sl[i] = \"Yes\"\n list_a.append(i)\n else:\n sl[i] = \"No\"\n elif sl[i] == \"b\":\n if len(list_a) + len(list_b) < max_pass and len(list_b) < b:\n sl[i] = \"Yes\"\n list_b.append(i)\n else:\n sl[i] = \"No\"\n elif sl[i] == \"c\":\n sl[i] = \"No\"", "sl[i] == \"a\"", "sl[i]", "sl", "i", "\"a\"", "if len(list_a) + len(list_b) < max_pass:\n sl[i] = \"Yes\"\n list_a.append(i)\n else:\n sl[i] = \"No\"\n ", "len(list_a) + len(list_b) < max_pass", "len(list_a) + len(list_b)", "len(list_a)", "len", "list_a", "len(list_b)", "len", "list_b", "max_pass", "sl[i] = \"Yes\"", "sl[i]", "sl", "i", "\"Yes\"", "list_a.append(i)", "list_a.append", "list_a", "append", "i", "sl[i] = \"No\"", "sl[i]", "sl", "i", "\"No\"", "elif sl[i] == \"b\":\n if len(list_a) + len(list_b) < max_pass and len(list_b) < b:\n sl[i] = \"Yes\"\n list_b.append(i)\n else:\n sl[i] = \"No\"\n ", "sl[i] == \"b\"", "sl[i]", "sl", "i", "\"b\"", "if len(list_a) + len(list_b) < max_pass and len(list_b) < b:\n sl[i] = \"Yes\"\n list_b.append(i)\n else:\n sl[i] = \"No\"\n ", "len(list_a) + len(list_b) < max_pass and len(list_b) < b", "len(list_a) + len(list_b) < max_pass", "len(list_a) + len(list_b)", "len(list_a)", "len", "list_a", "len(list_b)", "len", "list_b", "max_pass", "len(list_b) < b", "len(list_b)", "len", "list_b", "b", "sl[i] = \"Yes\"", "sl[i]", "sl", "i", "\"Yes\"", "list_b.append(i)", "list_b.append", "list_b", "append", "i", "sl[i] = \"No\"", "sl[i]", "sl", "i", "\"No\"", "elif sl[i] == \"c\":\n sl[i] = \"No\"", "sl[i] == \"c\"", "sl[i]", "sl", "i", "\"c\"", "sl[i] = \"No\"", "sl[i]", "sl", "i", "\"No\"", "for x in sl:\n print(x)", "x", "sl", "print(x)", "print", "x", "def LI(): return list(map(int, sys.stdin.buffer.readline().split()))", "def LI(): return list(map(int, sys.stdin.buffer.readline().split()))", "LI", "n, a, b = LI()", "LI()", "n", "def SRL(n): return [list(S()) for i in range(n)]", "def SRL(n): return [list(S()) for i in range(n)]", "SRL", "max_pass = a + b", "a + b", "max_pass", "def LSR(n): return [LS() for i in range(n)]", "def LSR(n): return [LS() for i in range(n)]", "LSR", "list_b = []", "[]", "list_b", "def MSRL(n): return [[int(j) for j in list(S())] for i in range(n)]", "def MSRL(n): return [[int(j) for j in list(S())] for i in range(n)]", "MSRL", "b = LI()", "LI()", "b", "def IR(n): return [I() for i in range(n)]", "def IR(n): return [I() for i in range(n)]", "IR", "def LS(): return sys.stdin.buffer.readline().rstrip().decode('utf-8').split()", "def LS(): return sys.stdin.buffer.readline().rstrip().decode('utf-8').split()", "LS", "def S(): return sys.stdin.buffer.readline().rstrip().decode('utf-8')", "def S(): return sys.stdin.buffer.readline().rstrip().decode('utf-8')", "S", "def LIR(n): return [LI() for i in range(n)]", "def LIR(n): return [LI() for i in range(n)]", "LIR", "list_a = []", "[]", "list_a", "mod = 10 ** 9 + 7", "10 ** 9 + 7", "mod", "def I(): return int(sys.stdin.buffer.readline())", "def I(): return int(sys.stdin.buffer.readline())", "I", "def SR(n): return [S() for i in range(n)]", "def SR(n): return [S() for i in range(n)]", "SR", "sl = list(s)", "list(s)", "sl", "a, b = LI()", "LI()", "a", "s = S()", "S()", "s" ]
import sys def LI(): return list(map(int, sys.stdin.buffer.readline().split())) def I(): return int(sys.stdin.buffer.readline()) def LS(): return sys.stdin.buffer.readline().rstrip().decode('utf-8').split() def S(): return sys.stdin.buffer.readline().rstrip().decode('utf-8') def IR(n): return [I() for i in range(n)] def LIR(n): return [LI() for i in range(n)] def SR(n): return [S() for i in range(n)] def LSR(n): return [LS() for i in range(n)] def SRL(n): return [list(S()) for i in range(n)] def MSRL(n): return [[int(j) for j in list(S())] for i in range(n)] mod = 10 ** 9 + 7 n, a, b = LI() s = S() # n人が参加するコンペに国内の学生か海外の学生かその他がいる。 # 国内または海外の学生のみが予選通過でき、上位の学生から以下の条件を満たすとき通過 # 国内の学生は通過確定した参加者がA+B人に満たなければ通過 # 海外の学生は通過確定した参加者がA+B人に満たず、海外の学生中での順位がB位以内ならば予選通過 # Sは参加者の情報を示す文字列。i番目の文字がaの時予選i位の参加者が国内の学生、bの時は海外の学生。 # cの時はその他。 # すべての参加者に対して予選通過に対しYes、Noを出力せよ sl = list(s) list_a = [] list_b = [] max_pass = a + b for i in range(len(sl)): if sl[i] == "a": if len(list_a) + len(list_b) < max_pass: sl[i] = "Yes" list_a.append(i) else: sl[i] = "No" elif sl[i] == "b": if len(list_a) + len(list_b) < max_pass and len(list_b) < b: sl[i] = "Yes" list_b.append(i) else: sl[i] = "No" elif sl[i] == "c": sl[i] = "No" for x in sl: print(x)
[ 7, 41, 28, 13, 4, 18, 4, 13, 13, 4, 4, 13, 13, 0, 13, 13, 13, 13, 0, 13, 4, 13, 4, 13, 0, 13, 17, 0, 13, 17, 28, 13, 4, 13, 13, 14, 2, 13, 2, 13, 13, 14, 2, 18, 13, 13, 17, 4, 13, 17, 0, 13, 17, 14, 2, 2, 18, 13, 13, 17, 2, 13, 13, 4, 13, 17, 0, 13, 17, 0, 13, 17, 4, 13, 17, 4, 13, 17, 10, 17, 13, 10, 13, 13, 10, 4, 13, 10, 17, 13, 10, 13, 13, 10, 17, 13, 10, 13, 13, 10, 17, 13, 10, 17, 13 ]
[ [ 4, 3 ], [ 3, 12 ], [ 97, 14 ], [ 97, 16 ], [ 97, 17 ], [ 85, 19 ], [ 79, 25 ], [ 88, 28 ], [ 32, 31 ], [ 83, 34 ], [ 80, 37 ], [ 101, 37 ], [ 95, 37 ], [ 92, 39 ], [ 98, 40 ], [ 86, 44 ], [ 31, 45 ], [ 94, 51 ], [ 86, 57 ], [ 31, 58 ], [ 89, 61 ], [ 104, 61 ], [ 98, 62 ], [ 100, 67 ], [ 103, 70 ], [ 79, 80 ], [ 97, 83 ], [ 85, 86 ], [ 88, 89 ], [ 97, 92 ], [ 94, 95 ], [ 97, 98 ], [ 100, 101 ], [ 103, 104 ] ]
[ "N, A, B = [int(x) for x in input().split()]\nS = list(input())\ngo = 0\ngo_abroad = 0\nfor i in range(N):\n if(go)<(A+B):\n if(S[i]=='a'):\n print('Yes')\n go += 1\n elif(S[i]=='b') and (go_abroad<B):\n print('Yes')\n go += 1\n go_abroad += 1\n else:\n print('No')\n else:\n print('No')", "int(x) for x in input().split()", "for x in input().split()", "x", "input().split()", "().split", "()", "input", "split", "for x in input().split()", "int(x)", "int", "x", "N, A, B = [int(x) for x in input().split()]", "N", "[int(x) for x in input().split()]", "A", "B", "S = list(input())", "S", "list(input())", "list", "input()", "input", "go = 0", "go", "0", "go_abroad = 0", "go_abroad", "0", "for i in range(N):\n if(go)<(A+B):\n if(S[i]=='a'):\n print('Yes')\n go += 1\n elif(S[i]=='b') and (go_abroad<B):\n print('Yes')\n go += 1\n go_abroad += 1\n else:\n print('No')\n else:\n print('No')", "i", "range(N)", "range", "N", "if(go)<(A+B):\n if(S[i]=='a'):\n print('Yes')\n go += 1\n elif(S[i]=='b') and (go_abroad<B):\n print('Yes')\n go += 1\n go_abroad += 1\n else:\n print('No')\n else:\n print('No')", "(go)<(A+B)", "go", "A+B", "A", "B", "if(S[i]=='a'):\n print('Yes')\n go += 1\n elif(S[i]=='b') and (go_abroad<B):\n print('Yes')\n go += 1\n go_abroad += 1\n else:\n print('No')\n ", "S[i]=='a'", "S[i]", "S", "i", "'a'", "print('Yes')", "print", "'Yes'", "go += 1", "go", "1", "elif(S[i]=='b') and (go_abroad<B):\n print('Yes')\n go += 1\n go_abroad += 1\n ", "(S[i]=='b') and (go_abroad<B)", "S[i]=='b'", "S[i]", "S", "i", "'b'", "go_abroad<B", "go_abroad", "B", "print('Yes')", "print", "'Yes'", "go += 1", "go", "1", "go_abroad += 1", "go_abroad", "1", "print('No')", "print", "'No'", "print('No')", "print", "'No'", "go = 0", "0", "go", "N, A, B = [int(x) for x in input().split()]", "[int(x) for x in input().split()]", "N", "S = list(input())", "list(input())", "S", "go_abroad = 0", "0", "go_abroad", "A, B = [int(x) for x in input().split()]", "[int(x) for x in input().split()]", "A", "go += 1", "1", "go", "B = [int(x) for x in input().split()]", "[int(x) for x in input().split()]", "B", "go += 1", "1", "go", "go_abroad += 1", "1", "go_abroad" ]
N, A, B = [int(x) for x in input().split()] S = list(input()) go = 0 go_abroad = 0 for i in range(N): if(go)<(A+B): if(S[i]=='a'): print('Yes') go += 1 elif(S[i]=='b') and (go_abroad<B): print('Yes') go += 1 go_abroad += 1 else: print('No') else: print('No')
[ 7, 0, 13, 4, 13, 0, 13, 4, 13, 0, 13, 4, 13, 13, 4, 18, 13, 13, 13, 13, 0, 13, 17, 0, 13, 17, 28, 13, 13, 14, 2, 2, 13, 17, 40, 13, 2, 13, 13, 4, 13, 17, 9, 14, 2, 13, 17, 0, 13, 17, 4, 13, 17, 9, 14, 2, 13, 13, 0, 13, 17, 0, 13, 17, 4, 13, 17, 4, 13, 17, 10, 17, 13, 10, 4, 13, 10, 4, 13, 10, 17, 13, 10, 4, 13, 10, 4, 13, 10, 17, 13, 10, 4, 13, 10, 17, 13, 10, 17, 13 ]
[ [ 83, 2 ], [ 74, 6 ], [ 92, 10 ], [ 84, 16 ], [ 92, 18 ], [ 92, 19 ], [ 71, 21 ], [ 80, 24 ], [ 28, 27 ], [ 75, 27 ], [ 27, 32 ], [ 72, 35 ], [ 99, 35 ], [ 90, 35 ], [ 87, 37 ], [ 93, 38 ], [ 27, 45 ], [ 89, 48 ], [ 81, 56 ], [ 96, 56 ], [ 93, 57 ], [ 98, 59 ], [ 95, 62 ], [ 71, 72 ], [ 74, 75 ], [ 92, 78 ], [ 80, 81 ], [ 83, 84 ], [ 92, 87 ], [ 89, 90 ], [ 92, 93 ], [ 95, 96 ], [ 98, 99 ] ]
[ "x = input()\ns = input()\n\nn, a, b = map(int, x.split())\n\np = 0\nwp = 0\n\nfor char in s:\n if char == 'c' or p >= a+b:\n print('No')\n continue\n if char == 'a':\n p += 1\n print('Yes')\n continue\n if wp < b:\n p += 1\n wp += 1\n print('Yes')\n else:\n print('No')", "x = input()", "x", "input()", "input", "s = input()", "s", "input()", "input", "n, a, b = map(int, x.split())", "n", "map(int, x.split())", "map", "int", "x.split()", "x.split", "x", "split", "a", "b", "p = 0", "p", "0", "wp = 0", "wp", "0", "for char in s:\n if char == 'c' or p >= a+b:\n print('No')\n continue\n if char == 'a':\n p += 1\n print('Yes')\n continue\n if wp < b:\n p += 1\n wp += 1\n print('Yes')\n else:\n print('No')", "char", "s", "if char == 'c' or p >= a+b:\n print('No')\n continue\n ", "char == 'c' or p >= a+b", "char == 'c'", "char", "'c'", "p >= a+b", "p", "a+b", "a", "b", "print('No')", "print", "'No'", "continue", "if char == 'a':\n p += 1\n print('Yes')\n continue\n ", "char == 'a'", "char", "'a'", "p += 1", "p", "1", "print('Yes')", "print", "'Yes'", "continue", "if wp < b:\n p += 1\n wp += 1\n print('Yes')\n else:\n print('No')", "wp < b", "wp", "b", "p += 1", "p", "1", "wp += 1", "wp", "1", "print('Yes')", "print", "'Yes'", "print('No')", "print", "'No'", "p = 0", "0", "p", "s = input()", "input()", "s", "n, a, b = map(int, x.split())", "map(int, x.split())", "n", "wp = 0", "0", "wp", "x = input()", "input()", "x", "a, b = map(int, x.split())", "map(int, x.split())", "a", "p += 1", "1", "p", "b = map(int, x.split())", "map(int, x.split())", "b", "wp += 1", "1", "wp", "p += 1", "1", "p" ]
x = input() s = input() n, a, b = map(int, x.split()) p = 0 wp = 0 for char in s: if char == 'c' or p >= a+b: print('No') continue if char == 'a': p += 1 print('Yes') continue if wp < b: p += 1 wp += 1 print('Yes') else: print('No')
[ 7, 0, 13, 4, 13, 13, 4, 18, 4, 13, 13, 13, 13, 0, 13, 4, 13, 0, 13, 17, 0, 13, 17, 28, 13, 13, 4, 13, 13, 14, 2, 13, 17, 14, 2, 13, 2, 13, 13, 0, 13, 17, 4, 13, 17, 4, 13, 17, 14, 2, 13, 17, 14, 2, 2, 13, 2, 13, 13, 2, 13, 13, 0, 13, 17, 0, 13, 17, 4, 13, 17, 4, 13, 17, 4, 13, 17, 10, 17, 13, 10, 17, 13, 10, 4, 13, 10, 4, 13, 10, 4, 13, 10, 17, 13, 10, 17, 13, 10, 4, 13, 10, 17, 13 ]
[ [ 99, 2 ], [ 99, 11 ], [ 99, 12 ], [ 87, 14 ], [ 96, 18 ], [ 102, 21 ], [ 88, 28 ], [ 97, 35 ], [ 94, 35 ], [ 79, 35 ], [ 100, 37 ], [ 91, 38 ], [ 78, 40 ], [ 97, 55 ], [ 94, 55 ], [ 79, 55 ], [ 100, 57 ], [ 91, 58 ], [ 103, 60 ], [ 82, 60 ], [ 91, 61 ], [ 93, 63 ], [ 81, 66 ], [ 78, 79 ], [ 81, 82 ], [ 99, 85 ], [ 87, 88 ], [ 99, 91 ], [ 93, 94 ], [ 96, 97 ], [ 99, 100 ], [ 102, 103 ] ]
[ "n, a, b = map(int, input().split()) \nsList = input()\ncnt = 0\ncnt_b = 0\nfor i, s in enumerate(sList):\n if s == 'a':\n #国内の学生は、現在予選の通過が確定した参加者がA+B人に満たなければ、予選を通過する\n if cnt < a+b:\n cnt += 1\n print('Yes')\n else:\n print('No')\n elif s == 'b':\n #さらに海外の学生の中での順位がB位以内なら、予選を通過する\n if (cnt < a+b) & (cnt_b < b):\n cnt += 1\n cnt_b += 1\n print('Yes')\n else:\n print('No')\n else:\n print('No')", "n, a, b = map(int, input().split())", "n", "map(int, input().split())", "map", "int", "input().split()", "().split", "()", "input", "split", "a", "b", "sList = input()", "sList", "input()", "input", "cnt = 0", "cnt", "0", "cnt_b = 0", "cnt_b", "0", "for i, s in enumerate(sList):\n if s == 'a':\n #国内の学生は、現在予選の通過が確定した参加者がA+B人に満たなければ、予選を通過する\n if cnt < a+b:\n cnt += 1\n print('Yes')\n else:\n print('No')\n elif s == 'b':\n #さらに海外の学生の中での順位がB位以内なら、予選を通過する\n if (cnt < a+b) & (cnt_b < b):\n cnt += 1\n cnt_b += 1\n print('Yes')\n else:\n print('No')\n else:\n print('No')", "i", "s", "enumerate(sList)", "enumerate", "sList", "if s == 'a':\n #国内の学生は、現在予選の通過が確定した参加者がA+B人に満たなければ、予選を通過する\n if cnt < a+b:\n cnt += 1\n print('Yes')\n else:\n print('No')\n elif s == 'b':\n #さらに海外の学生の中での順位がB位以内なら、予選を通過する\n if (cnt < a+b) & (cnt_b < b):\n cnt += 1\n cnt_b += 1\n print('Yes')\n else:\n print('No')\n else:\n print('No')", "s == 'a'", "s", "'a'", "if cnt < a+b:\n cnt += 1\n print('Yes')\n else:\n print('No')\n ", "cnt < a+b", "cnt", "a+b", "a", "b", "cnt += 1", "cnt", "1", "print('Yes')", "print", "'Yes'", "print('No')", "print", "'No'", "elif s == 'b':\n #さらに海外の学生の中での順位がB位以内なら、予選を通過する\n if (cnt < a+b) & (cnt_b < b):\n cnt += 1\n cnt_b += 1\n print('Yes')\n else:\n print('No')\n ", "s == 'b'", "s", "'b'", "if (cnt < a+b) & (cnt_b < b):\n cnt += 1\n cnt_b += 1\n print('Yes')\n else:\n print('No')\n ", "(cnt < a+b) & (cnt_b < b)", "cnt < a+b", "cnt", "a+b", "a", "b", "cnt_b < b", "cnt_b", "b", "cnt += 1", "cnt", "1", "cnt_b += 1", "cnt_b", "1", "print('Yes')", "print", "'Yes'", "print('No')", "print", "'No'", "print('No')", "print", "'No'", "cnt += 1", "1", "cnt", "cnt_b += 1", "1", "cnt_b", "n, a, b = map(int, input().split())", "map(int, input().split())", "n", "sList = input()", "input()", "sList", "b = map(int, input().split())", "map(int, input().split())", "b", "cnt += 1", "1", "cnt", "cnt = 0", "0", "cnt", "a, b = map(int, input().split())", "map(int, input().split())", "a", "cnt_b = 0", "0", "cnt_b" ]
n, a, b = map(int, input().split()) sList = input() cnt = 0 cnt_b = 0 for i, s in enumerate(sList): if s == 'a': #国内の学生は、現在予選の通過が確定した参加者がA+B人に満たなければ、予選を通過する if cnt < a+b: cnt += 1 print('Yes') else: print('No') elif s == 'b': #さらに海外の学生の中での順位がB位以内なら、予選を通過する if (cnt < a+b) & (cnt_b < b): cnt += 1 cnt_b += 1 print('Yes') else: print('No') else: print('No')
[ 7, 0, 13, 4, 13, 13, 4, 18, 4, 13, 13, 13, 13, 0, 13, 4, 13, 0, 13, 2, 13, 13, 28, 13, 4, 13, 13, 14, 2, 18, 13, 13, 17, 4, 13, 17, 14, 2, 13, 17, 14, 2, 18, 13, 13, 17, 4, 13, 17, 0, 13, 2, 13, 17, 14, 2, 2, 18, 13, 13, 17, 2, 13, 17, 4, 13, 17, 0, 13, 2, 13, 17, 0, 13, 2, 13, 17, 4, 13, 17, 4, 13, 17, 10, 2, 13, 10, 2, 13, 10, 4, 13, 10, 2, 13, 10, 2, 13, 10, 4, 13, 10, 4, 13, 10, 4, 13 ]
[ [ 102, 2 ], [ 102, 11 ], [ 102, 12 ], [ 105, 14 ], [ 93, 18 ], [ 100, 20 ], [ 91, 21 ], [ 24, 23 ], [ 103, 26 ], [ 106, 30 ], [ 23, 31 ], [ 94, 38 ], [ 85, 38 ], [ 88, 38 ], [ 106, 43 ], [ 23, 44 ], [ 87, 50 ], [ 94, 52 ], [ 85, 52 ], [ 88, 52 ], [ 106, 58 ], [ 23, 59 ], [ 91, 62 ], [ 97, 62 ], [ 84, 68 ], [ 94, 70 ], [ 85, 70 ], [ 88, 70 ], [ 96, 73 ], [ 91, 75 ], [ 97, 75 ], [ 84, 85 ], [ 87, 88 ], [ 102, 91 ], [ 93, 94 ], [ 96, 97 ], [ 102, 100 ], [ 102, 103 ], [ 105, 106 ] ]
[ "\nN,A,B = map(int,input().split())\nS = input()\ntotal = A+B\nfor i in range(N):\n if S[i]=='c':\n print('No')\n elif total>0:\n if S[i] == 'a':\n print('Yes')\n total = total-1\n elif S[i] =='b' and B>0:\n print('Yes')\n total = total-1\n B = B-1\n else:\n print('No')\n else:\n print('No')", "N,A,B = map(int,input().split())", "N", "map(int,input().split())", "map", "int", "input().split()", "().split", "()", "input", "split", "A", "B", "S = input()", "S", "input()", "input", "total = A+B", "total", "A+B", "A", "B", "for i in range(N):\n if S[i]=='c':\n print('No')\n elif total>0:\n if S[i] == 'a':\n print('Yes')\n total = total-1\n elif S[i] =='b' and B>0:\n print('Yes')\n total = total-1\n B = B-1\n else:\n print('No')\n else:\n print('No')", "i", "range(N)", "range", "N", "if S[i]=='c':\n print('No')\n elif total>0:\n if S[i] == 'a':\n print('Yes')\n total = total-1\n elif S[i] =='b' and B>0:\n print('Yes')\n total = total-1\n B = B-1\n else:\n print('No')\n else:\n print('No')", "S[i]=='c'", "S[i]", "S", "i", "'c'", "print('No')", "print", "'No'", "elif total>0:\n if S[i] == 'a':\n print('Yes')\n total = total-1\n elif S[i] =='b' and B>0:\n print('Yes')\n total = total-1\n B = B-1\n else:\n print('No')\n ", "total>0", "total", "0", "if S[i] == 'a':\n print('Yes')\n total = total-1\n elif S[i] =='b' and B>0:\n print('Yes')\n total = total-1\n B = B-1\n else:\n print('No')\n ", "S[i] == 'a'", "S[i]", "S", "i", "'a'", "print('Yes')", "print", "'Yes'", "total = total-1", "total", "total-1", "total", "1", "elif S[i] =='b' and B>0:\n print('Yes')\n total = total-1\n B = B-1\n ", "S[i] =='b' and B>0", "S[i] =='b'", "S[i]", "S", "i", "'b'", "B>0", "B", "0", "print('Yes')", "print", "'Yes'", "total = total-1", "total", "total-1", "total", "1", "B = B-1", "B", "B-1", "B", "1", "print('No')", "print", "'No'", "print('No')", "print", "'No'", "total = total-1", "total-1", "total", "total = total-1", "total-1", "total", "B = map(int,input().split())", "map(int,input().split())", "B", "total = A+B", "A+B", "total", "B = B-1", "B-1", "B", "A,B = map(int,input().split())", "map(int,input().split())", "A", "N,A,B = map(int,input().split())", "map(int,input().split())", "N", "S = input()", "input()", "S" ]
N,A,B = map(int,input().split()) S = input() total = A+B for i in range(N): if S[i]=='c': print('No') elif total>0: if S[i] == 'a': print('Yes') total = total-1 elif S[i] =='b' and B>0: print('Yes') total = total-1 B = B-1 else: print('No') else: print('No')
[ 7, 0, 13, 4, 13, 13, 4, 18, 4, 13, 13, 13, 13, 0, 13, 4, 13, 0, 13, 17, 0, 13, 17, 28, 13, 13, 4, 13, 4, 13, 13, 14, 2, 2, 13, 17, 2, 13, 2, 13, 13, 4, 13, 17, 0, 13, 17, 14, 2, 2, 2, 13, 17, 2, 13, 2, 13, 13, 40, 13, 13, 4, 13, 17, 0, 13, 17, 0, 13, 17, 4, 13, 17, 10, 17, 13, 10, 17, 13, 10, 17, 13, 10, 4, 13, 10, 4, 13, 10, 17, 13, 10, 4, 13, 10, 4, 13, 10, 17, 13 ]
[ [ 92, 2 ], [ 92, 11 ], [ 92, 12 ], [ 95, 14 ], [ 77, 18 ], [ 74, 21 ], [ 96, 30 ], [ 75, 37 ], [ 81, 37 ], [ 90, 37 ], [ 87, 39 ], [ 93, 40 ], [ 89, 45 ], [ 75, 54 ], [ 81, 54 ], [ 90, 54 ], [ 87, 56 ], [ 93, 57 ], [ 78, 59 ], [ 99, 59 ], [ 93, 60 ], [ 80, 65 ], [ 98, 68 ], [ 74, 75 ], [ 77, 78 ], [ 80, 81 ], [ 92, 84 ], [ 92, 87 ], [ 89, 90 ], [ 92, 93 ], [ 95, 96 ], [ 98, 99 ] ]
[ "N,A,B = map(int,input().split())\nS = input()\n\nFOR = 1\nCNT = 0\nfor i,s in enumerate(list(S)):\n if s==\"a\" and CNT < A+B:\n print(\"Yes\")\n CNT+=1\n elif s==\"b\" and CNT < A+B and FOR <=B:\n print(\"Yes\")\n CNT+=1\n FOR+=1\n else:\n print(\"No\")", "N,A,B = map(int,input().split())", "N", "map(int,input().split())", "map", "int", "input().split()", "().split", "()", "input", "split", "A", "B", "S = input()", "S", "input()", "input", "FOR = 1", "FOR", "1", "CNT = 0", "CNT", "0", "for i,s in enumerate(list(S)):\n if s==\"a\" and CNT < A+B:\n print(\"Yes\")\n CNT+=1\n elif s==\"b\" and CNT < A+B and FOR <=B:\n print(\"Yes\")\n CNT+=1\n FOR+=1\n else:\n print(\"No\")", "i", "s", "enumerate(list(S))", "enumerate", "list(S)", "list", "S", "if s==\"a\" and CNT < A+B:\n print(\"Yes\")\n CNT+=1\n elif s==\"b\" and CNT < A+B and FOR <=B:\n print(\"Yes\")\n CNT+=1\n FOR+=1\n else:\n print(\"No\")", "s==\"a\" and CNT < A+B", "s==\"a\"", "s", "\"a\"", "CNT < A+B", "CNT", "A+B", "A", "B", "print(\"Yes\")", "print", "\"Yes\"", "CNT+=1", "CNT", "1", "elif s==\"b\" and CNT < A+B and FOR <=B:\n print(\"Yes\")\n CNT+=1\n FOR+=1\n ", "s==\"b\" and CNT < A+B and FOR <=B", "s==\"b\" and CNT < A+B", "s==\"b\"", "s", "\"b\"", "CNT < A+B", "CNT", "A+B", "A", "B", "FOR <=B", "FOR", "B", "print(\"Yes\")", "print", "\"Yes\"", "CNT+=1", "CNT", "1", "FOR+=1", "FOR", "1", "print(\"No\")", "print", "\"No\"", "CNT = 0", "0", "CNT", "FOR = 1", "1", "FOR", "CNT+=1", "1", "CNT", "N,A,B = map(int,input().split())", "map(int,input().split())", "N", "A,B = map(int,input().split())", "map(int,input().split())", "A", "CNT+=1", "1", "CNT", "B = map(int,input().split())", "map(int,input().split())", "B", "S = input()", "input()", "S", "FOR+=1", "1", "FOR" ]
N,A,B = map(int,input().split()) S = input() FOR = 1 CNT = 0 for i,s in enumerate(list(S)): if s=="a" and CNT < A+B: print("Yes") CNT+=1 elif s=="b" and CNT < A+B and FOR <=B: print("Yes") CNT+=1 FOR+=1 else: print("No")
[ 7, 15, 13, 0, 13, 17, 0, 13, 17, 12, 13, 0, 13, 17, 0, 13, 17, 28, 13, 4, 13, 13, 14, 2, 13, 17, 4, 13, 13, 9, 14, 2, 2, 13, 13, 2, 13, 13, 14, 2, 13, 17, 4, 13, 13, 0, 13, 17, 14, 2, 2, 13, 17, 2, 13, 13, 4, 13, 13, 0, 13, 17, 4, 13, 13, 4, 13, 13, 29, 23, 13, 23, 13, 23, 13, 23, 13, 12, 13, 12, 13, 28, 13, 18, 13, 13, 28, 13, 4, 18, 13, 13, 27, 13, 0, 13, 4, 13, 0, 13, 4, 13, 4, 13, 13, 0, 13, 4, 13, 4, 13, 13, 0, 13, 4, 13, 4, 13, 13, 0, 13, 4, 13, 13, 4, 13, 13, 13, 13, 13, 14, 2, 13, 17, 4, 13, 10, 12, 13, 10, 17, 13, 10, 17, 13, 10, 12, 13 ]
[ [ 140, 4 ], [ 143, 7 ], [ 13, 12 ], [ 16, 15 ], [ 19, 18 ], [ 76, 21 ], [ 18, 24 ], [ 144, 28 ], [ 12, 33 ], [ 46, 33 ], [ 15, 34 ], [ 60, 34 ], [ 72, 36 ], [ 74, 37 ], [ 18, 40 ], [ 141, 44 ], [ 47, 46 ], [ 18, 51 ], [ 15, 54 ], [ 60, 54 ], [ 74, 55 ], [ 141, 58 ], [ 61, 60 ], [ 144, 64 ], [ 144, 67 ], [ 70, 70 ], [ 72, 72 ], [ 74, 74 ], [ 76, 76 ], [ 83, 82 ], [ 88, 87 ], [ 82, 90 ], [ 87, 93 ], [ 96, 95 ], [ 80, 97 ], [ 100, 99 ], [ 95, 104 ], [ 107, 106 ], [ 95, 111 ], [ 114, 113 ], [ 95, 118 ], [ 121, 120 ], [ 95, 123 ], [ 138, 125 ], [ 99, 126 ], [ 106, 127 ], [ 113, 128 ], [ 120, 129 ], [ 147, 135 ], [ 140, 141 ], [ 143, 144 ] ]
[ "#!/usr/bin/env python3\nimport sys\n\nYES = \"Yes\" # type: str\nNO = \"No\" # type: str\n\n\ndef solve(N: int, A: int, B: int, S: str):\n at = 0\n bt = 0\n for s in list(S):\n if s == \"c\":\n print(NO)\n continue\n if at + bt < A + B:\n if s == \"a\":\n print(YES)\n at += 1\n elif s == \"b\" and bt < B:\n print(YES)\n bt += 1\n else:\n print(NO)\n else:\n print(NO)\n\n return\n\n\n# Generated by 1.1.7.1 https://github.com/kyuridenamida/atcoder-tools (tips: You use the default template now. You can remove this line by using your custom template)\ndef main():\n def iterate_tokens():\n for line in sys.stdin:\n for word in line.split():\n yield word\n tokens = iterate_tokens()\n N = int(next(tokens)) # type: int\n A = int(next(tokens)) # type: int\n B = int(next(tokens)) # type: int\n S = next(tokens) # type: str\n solve(N, A, B, S)\n\nif __name__ == '__main__':\n main()", "import sys", "sys", "YES = \"Yes\"", "YES", "\"Yes\"", "NO = \"No\"", "NO", "\"No\"", "def solve(N: int, A: int, B: int, S: str):\n at = 0\n bt = 0\n for s in list(S):\n if s == \"c\":\n print(NO)\n continue\n if at + bt < A + B:\n if s == \"a\":\n print(YES)\n at += 1\n elif s == \"b\" and bt < B:\n print(YES)\n bt += 1\n else:\n print(NO)\n else:\n print(NO)\n\n return\n\n\n# Generated by 1.1.7.1 https://github.com/kyuridenamida/atcoder-tools (tips: You use the default template now. You can remove this line by using your custom template)", "solve", "at = 0", "at", "0", "bt = 0", "bt", "0", "for s in list(S):\n if s == \"c\":\n print(NO)\n continue\n if at + bt < A + B:\n if s == \"a\":\n print(YES)\n at += 1\n elif s == \"b\" and bt < B:\n print(YES)\n bt += 1\n else:\n print(NO)\n else:\n print(NO)\n\n ", "s", "list(S)", "list", "S", "if s == \"c\":\n print(NO)\n continue\n ", "s == \"c\"", "s", "\"c\"", "print(NO)", "print", "NO", "continue", "if at + bt < A + B:\n if s == \"a\":\n print(YES)\n at += 1\n elif s == \"b\" and bt < B:\n print(YES)\n bt += 1\n else:\n print(NO)\n else:\n print(NO)\n\n ", "at + bt < A + B", "at + bt", "at", "bt", "A + B", "A", "B", "if s == \"a\":\n print(YES)\n at += 1\n elif s == \"b\" and bt < B:\n print(YES)\n bt += 1\n else:\n print(NO)\n ", "s == \"a\"", "s", "\"a\"", "print(YES)", "print", "YES", "at += 1", "at", "1", "elif s == \"b\" and bt < B:\n print(YES)\n bt += 1\n ", "s == \"b\" and bt < B", "s == \"b\"", "s", "\"b\"", "bt < B", "bt", "B", "print(YES)", "print", "YES", "bt += 1", "bt", "1", "print(NO)", "print", "NO", "print(NO)", "print", "NO", "return", "N: int", "N", "A: int", "A", "B: int", "B", "S: str", "S", "def main():\n def iterate_tokens():\n for line in sys.stdin:\n for word in line.split():\n yield word\n tokens = iterate_tokens()\n N = int(next(tokens)) # type: int\n A = int(next(tokens)) # type: int\n B = int(next(tokens)) # type: int\n S = next(tokens) # type: str\n solve(N, A, B, S)", "main", "def iterate_tokens():\n for line in sys.stdin:\n for word in line.split():\n yield word\n ", "iterate_tokens", "for line in sys.stdin:\n for word in line.split():\n yield word\n ", "line", "sys.stdin", "sys", "stdin", "for word in line.split():\n yield word\n ", "word", "line.split()", "line.split", "line", "split", "yield word", "word", "tokens = iterate_tokens()", "tokens", "iterate_tokens()", "iterate_tokens", "N = int(next(tokens))", "N", "int(next(tokens))", "int", "next(tokens)", "next", "tokens", "A = int(next(tokens))", "A", "int(next(tokens))", "int", "next(tokens)", "next", "tokens", "B = int(next(tokens))", "B", "int(next(tokens))", "int", "next(tokens)", "next", "tokens", "S = next(tokens)", "S", "next(tokens)", "next", "tokens", "solve(N, A, B, S)", "solve", "N", "A", "B", "S", "if __name__ == '__main__':\n main()", "__name__ == '__main__'", "__name__", "'__main__'", "main()", "main", "def solve(N: int, A: int, B: int, S: str):\n at = 0\n bt = 0\n for s in list(S):\n if s == \"c\":\n print(NO)\n continue\n if at + bt < A + B:\n if s == \"a\":\n print(YES)\n at += 1\n elif s == \"b\" and bt < B:\n print(YES)\n bt += 1\n else:\n print(NO)\n else:\n print(NO)\n\n return\n\n\n# Generated by 1.1.7.1 https://github.com/kyuridenamida/atcoder-tools (tips: You use the default template now. You can remove this line by using your custom template)", "def solve(N: int, A: int, B: int, S: str):\n at = 0\n bt = 0\n for s in list(S):\n if s == \"c\":\n print(NO)\n continue\n if at + bt < A + B:\n if s == \"a\":\n print(YES)\n at += 1\n elif s == \"b\" and bt < B:\n print(YES)\n bt += 1\n else:\n print(NO)\n else:\n print(NO)\n\n return\n\n\n# Generated by 1.1.7.1 https://github.com/kyuridenamida/atcoder-tools (tips: You use the default template now. You can remove this line by using your custom template)", "solve", "YES = \"Yes\"", "\"Yes\"", "YES", "NO = \"No\"", "\"No\"", "NO", "def main():\n def iterate_tokens():\n for line in sys.stdin:\n for word in line.split():\n yield word\n tokens = iterate_tokens()\n N = int(next(tokens)) # type: int\n A = int(next(tokens)) # type: int\n B = int(next(tokens)) # type: int\n S = next(tokens) # type: str\n solve(N, A, B, S)", "def main():\n def iterate_tokens():\n for line in sys.stdin:\n for word in line.split():\n yield word\n tokens = iterate_tokens()\n N = int(next(tokens)) # type: int\n A = int(next(tokens)) # type: int\n B = int(next(tokens)) # type: int\n S = next(tokens) # type: str\n solve(N, A, B, S)", "main" ]
#!/usr/bin/env python3 import sys YES = "Yes" # type: str NO = "No" # type: str def solve(N: int, A: int, B: int, S: str): at = 0 bt = 0 for s in list(S): if s == "c": print(NO) continue if at + bt < A + B: if s == "a": print(YES) at += 1 elif s == "b" and bt < B: print(YES) bt += 1 else: print(NO) else: print(NO) return # Generated by 1.1.7.1 https://github.com/kyuridenamida/atcoder-tools (tips: You use the default template now. You can remove this line by using your custom template) def main(): def iterate_tokens(): for line in sys.stdin: for word in line.split(): yield word tokens = iterate_tokens() N = int(next(tokens)) # type: int A = int(next(tokens)) # type: int B = int(next(tokens)) # type: int S = next(tokens) # type: str solve(N, A, B, S) if __name__ == '__main__': main()
[ 7, 0, 13, 4, 13, 13, 4, 18, 4, 13, 13, 13, 13, 0, 13, 4, 13, 0, 13, 17, 0, 13, 17, 28, 13, 4, 13, 13, 14, 2, 2, 18, 13, 13, 17, 2, 13, 2, 13, 13, 4, 13, 17, 0, 13, 17, 14, 2, 2, 2, 18, 13, 13, 17, 2, 13, 2, 13, 13, 40, 13, 13, 4, 13, 17, 0, 13, 17, 0, 13, 17, 4, 13, 17, 10, 17, 13, 10, 4, 13, 10, 4, 13, 10, 17, 13, 10, 17, 13, 10, 4, 13, 10, 4, 13, 10, 17, 13, 10, 17, 13 ]
[ [ 93, 2 ], [ 93, 11 ], [ 93, 12 ], [ 81, 14 ], [ 87, 18 ], [ 96, 21 ], [ 25, 24 ], [ 79, 27 ], [ 82, 32 ], [ 24, 33 ], [ 88, 36 ], [ 100, 36 ], [ 76, 36 ], [ 94, 38 ], [ 91, 39 ], [ 75, 44 ], [ 82, 51 ], [ 24, 52 ], [ 88, 55 ], [ 100, 55 ], [ 76, 55 ], [ 94, 57 ], [ 91, 58 ], [ 97, 60 ], [ 85, 60 ], [ 91, 61 ], [ 99, 66 ], [ 84, 69 ], [ 75, 76 ], [ 93, 79 ], [ 81, 82 ], [ 84, 85 ], [ 87, 88 ], [ 93, 91 ], [ 93, 94 ], [ 96, 97 ], [ 99, 100 ] ]
[ "n,a,b = map(int,input().split())\ns = input()\ny = 0\nbn = 1\nfor i in range(n):\n if s[i] == \"a\" and y < a + b:\n print(\"Yes\")\n y += 1\n elif s[i] == \"b\" and y < a + b and bn <= b:\n print(\"Yes\")\n y += 1\n bn += 1\n else:\n print(\"No\")", "n,a,b = map(int,input().split())", "n", "map(int,input().split())", "map", "int", "input().split()", "().split", "()", "input", "split", "a", "b", "s = input()", "s", "input()", "input", "y = 0", "y", "0", "bn = 1", "bn", "1", "for i in range(n):\n if s[i] == \"a\" and y < a + b:\n print(\"Yes\")\n y += 1\n elif s[i] == \"b\" and y < a + b and bn <= b:\n print(\"Yes\")\n y += 1\n bn += 1\n else:\n print(\"No\")", "i", "range(n)", "range", "n", "if s[i] == \"a\" and y < a + b:\n print(\"Yes\")\n y += 1\n elif s[i] == \"b\" and y < a + b and bn <= b:\n print(\"Yes\")\n y += 1\n bn += 1\n else:\n print(\"No\")", "s[i] == \"a\" and y < a + b", "s[i] == \"a\"", "s[i]", "s", "i", "\"a\"", "y < a + b", "y", "a + b", "a", "b", "print(\"Yes\")", "print", "\"Yes\"", "y += 1", "y", "1", "elif s[i] == \"b\" and y < a + b and bn <= b:\n print(\"Yes\")\n y += 1\n bn += 1\n ", "s[i] == \"b\" and y < a + b and bn <= b", "s[i] == \"b\" and y < a + b", "s[i] == \"b\"", "s[i]", "s", "i", "\"b\"", "y < a + b", "y", "a + b", "a", "b", "bn <= b", "bn", "b", "print(\"Yes\")", "print", "\"Yes\"", "y += 1", "y", "1", "bn += 1", "bn", "1", "print(\"No\")", "print", "\"No\"", "y += 1", "1", "y", "n,a,b = map(int,input().split())", "map(int,input().split())", "n", "s = input()", "input()", "s", "bn += 1", "1", "bn", "y = 0", "0", "y", "b = map(int,input().split())", "map(int,input().split())", "b", "a,b = map(int,input().split())", "map(int,input().split())", "a", "bn = 1", "1", "bn", "y += 1", "1", "y" ]
n,a,b = map(int,input().split()) s = input() y = 0 bn = 1 for i in range(n): if s[i] == "a" and y < a + b: print("Yes") y += 1 elif s[i] == "b" and y < a + b and bn <= b: print("Yes") y += 1 bn += 1 else: print("No")
[ 7, 0, 13, 12, 4, 13, 0, 13, 12, 4, 13, 4, 13, 0, 13, 12, 4, 13, 4, 13, 13, 4, 18, 4, 13, 13, 0, 13, 12, 4, 13, 4, 13, 13, 4, 18, 4, 13, 13, 0, 13, 4, 13, 13, 13, 0, 13, 4, 13, 0, 13, 17, 0, 13, 17, 28, 13, 4, 13, 13, 14, 2, 18, 13, 13, 17, 0, 13, 17, 14, 2, 2, 18, 13, 13, 17, 2, 13, 2, 13, 13, 4, 13, 17, 0, 13, 17, 14, 2, 2, 2, 18, 13, 13, 17, 2, 13, 2, 13, 13, 40, 13, 13, 4, 13, 17, 0, 13, 17, 4, 13, 17, 10, 12, 13, 10, 4, 13, 10, 12, 13, 10, 17, 13, 10, 4, 13, 10, 4, 13, 10, 17, 13, 10, 17, 13, 10, 12, 13, 10, 17, 13, 10, 12, 13, 10, 4, 13, 10, 17, 13 ]
[ [ 137, 2 ], [ 119, 7 ], [ 143, 14 ], [ 113, 27 ], [ 146, 40 ], [ 144, 42 ], [ 146, 43 ], [ 146, 44 ], [ 128, 46 ], [ 138, 48 ], [ 131, 50 ], [ 140, 53 ], [ 57, 56 ], [ 117, 59 ], [ 129, 63 ], [ 56, 64 ], [ 122, 67 ], [ 129, 73 ], [ 56, 74 ], [ 132, 77 ], [ 150, 77 ], [ 135, 77 ], [ 147, 79 ], [ 126, 80 ], [ 134, 85 ], [ 129, 92 ], [ 56, 93 ], [ 132, 96 ], [ 150, 96 ], [ 135, 96 ], [ 147, 98 ], [ 126, 99 ], [ 123, 101 ], [ 141, 101 ], [ 126, 102 ], [ 149, 107 ], [ 113, 114 ], [ 146, 117 ], [ 119, 120 ], [ 122, 123 ], [ 146, 126 ], [ 128, 129 ], [ 131, 132 ], [ 134, 135 ], [ 137, 138 ], [ 140, 141 ], [ 143, 144 ], [ 146, 147 ], [ 149, 150 ] ]
[ "S=lambda:input()\nI=lambda:int(input())\nL=lambda:list(map(int,input().split()))\nLS=lambda:list(map(str,input().split()))\n\nn,a,b=L()\ns=S()\npassed=0\nrankbyb=0\nfor i in range(n):\n if s[i]=='b':\n rankbyb+=1\n \n if s[i]=='a' and passed<a+b:\n print('Yes')\n passed+=1\n elif s[i]=='b' and passed<a+b and rankbyb<=b:\n print('Yes')\n passed+=1\n else:\n print('No')", "S=lambda:input()", "S", "lambda:input()", "input()", "input", "I=lambda:int(input())", "I", "lambda:int(input())", "int(input())", "int", "input()", "input", "L=lambda:list(map(int,input().split()))", "L", "lambda:list(map(int,input().split()))", "list(map(int,input().split()))", "list", "map(int,input().split())", "map", "int", "input().split()", "().split", "()", "input", "split", "LS=lambda:list(map(str,input().split()))", "LS", "lambda:list(map(str,input().split()))", "list(map(str,input().split()))", "list", "map(str,input().split())", "map", "str", "input().split()", "().split", "()", "input", "split", "n,a,b=L()", "n", "L()", "L", "a", "b", "s=S()", "s", "S()", "S", "passed=0", "passed", "0", "rankbyb=0", "rankbyb", "0", "for i in range(n):\n if s[i]=='b':\n rankbyb+=1\n \n if s[i]=='a' and passed<a+b:\n print('Yes')\n passed+=1\n elif s[i]=='b' and passed<a+b and rankbyb<=b:\n print('Yes')\n passed+=1\n else:\n print('No')", "i", "range(n)", "range", "n", "if s[i]=='b':\n rankbyb+=1\n \n ", "s[i]=='b'", "s[i]", "s", "i", "'b'", "rankbyb+=1", "rankbyb", "1", "if s[i]=='a' and passed<a+b:\n print('Yes')\n passed+=1\n elif s[i]=='b' and passed<a+b and rankbyb<=b:\n print('Yes')\n passed+=1\n else:\n print('No')", "s[i]=='a' and passed<a+b", "s[i]=='a'", "s[i]", "s", "i", "'a'", "passed<a+b", "passed", "a+b", "a", "b", "print('Yes')", "print", "'Yes'", "passed+=1", "passed", "1", "elif s[i]=='b' and passed<a+b and rankbyb<=b:\n print('Yes')\n passed+=1\n ", "s[i]=='b' and passed<a+b and rankbyb<=b", "s[i]=='b' and passed<a+b", "s[i]=='b'", "s[i]", "s", "i", "'b'", "passed<a+b", "passed", "a+b", "a", "b", "rankbyb<=b", "rankbyb", "b", "print('Yes')", "print", "'Yes'", "passed+=1", "passed", "1", "print('No')", "print", "'No'", "LS=lambda:list(map(str,input().split()))", "lambda:list(map(str,input().split()))", "LS", "n,a,b=L()", "L()", "n", "I=lambda:int(input())", "lambda:int(input())", "I", "rankbyb+=1", "1", "rankbyb", "b=L()", "L()", "b", "s=S()", "S()", "s", "passed=0", "0", "passed", "passed+=1", "1", "passed", "S=lambda:input()", "lambda:input()", "S", "rankbyb=0", "0", "rankbyb", "L=lambda:list(map(int,input().split()))", "lambda:list(map(int,input().split()))", "L", "a,b=L()", "L()", "a", "passed+=1", "1", "passed" ]
S=lambda:input() I=lambda:int(input()) L=lambda:list(map(int,input().split())) LS=lambda:list(map(str,input().split())) n,a,b=L() s=S() passed=0 rankbyb=0 for i in range(n): if s[i]=='b': rankbyb+=1 if s[i]=='a' and passed<a+b: print('Yes') passed+=1 elif s[i]=='b' and passed<a+b and rankbyb<=b: print('Yes') passed+=1 else: print('No')
[ 7, 0, 13, 4, 13, 13, 4, 18, 4, 13, 13, 13, 13, 0, 13, 4, 13, 0, 13, 17, 0, 13, 17, 0, 13, 2, 13, 13, 28, 13, 4, 13, 13, 14, 2, 18, 13, 13, 17, 14, 2, 13, 2, 13, 13, 4, 13, 17, 0, 13, 17, 0, 13, 2, 13, 13, 4, 13, 17, 14, 2, 18, 13, 13, 17, 14, 2, 2, 13, 2, 13, 13, 2, 13, 13, 4, 13, 17, 0, 13, 17, 0, 13, 2, 13, 13, 4, 13, 17, 4, 13, 17, 10, 17, 13, 10, 2, 13, 10, 4, 13, 10, 4, 13, 10, 4, 13, 10, 2, 13, 10, 17, 13, 10, 2, 13, 10, 4, 13, 10, 17, 13, 10, 17, 13 ]
[ [ 117, 2 ], [ 117, 11 ], [ 117, 12 ], [ 99, 14 ], [ 111, 18 ], [ 93, 21 ], [ 108, 24 ], [ 112, 26 ], [ 94, 27 ], [ 30, 29 ], [ 118, 32 ], [ 100, 36 ], [ 29, 37 ], [ 109, 41 ], [ 115, 41 ], [ 97, 41 ], [ 103, 43 ], [ 106, 44 ], [ 120, 49 ], [ 96, 52 ], [ 121, 54 ], [ 112, 54 ], [ 94, 55 ], [ 124, 55 ], [ 100, 62 ], [ 29, 63 ], [ 109, 68 ], [ 115, 68 ], [ 97, 68 ], [ 103, 70 ], [ 106, 71 ], [ 94, 73 ], [ 124, 73 ], [ 106, 74 ], [ 123, 79 ], [ 114, 82 ], [ 112, 84 ], [ 121, 84 ], [ 124, 85 ], [ 94, 85 ], [ 93, 94 ], [ 96, 97 ], [ 99, 100 ], [ 117, 103 ], [ 117, 106 ], [ 108, 109 ], [ 111, 112 ], [ 114, 115 ], [ 117, 118 ], [ 120, 121 ], [ 123, 124 ] ]
[ "N, A, B = map(int,input().split())\nS = input()\nx = 0\ny = 0\nz = x + y\n\nfor i in range(N):\n if S[i] == 'a':\n if z < A + B:\n print('Yes')\n x += 1\n z = x + y\n else:\n print('No')\n elif S[i] == 'b':\n if z < A + B and y < B:\n print('Yes')\n y += 1\n z = x + y\n else:\n print('No')\n else:\n print('No')", "N, A, B = map(int,input().split())", "N", "map(int,input().split())", "map", "int", "input().split()", "().split", "()", "input", "split", "A", "B", "S = input()", "S", "input()", "input", "x = 0", "x", "0", "y = 0", "y", "0", "z = x + y", "z", "x + y", "x", "y", "for i in range(N):\n if S[i] == 'a':\n if z < A + B:\n print('Yes')\n x += 1\n z = x + y\n else:\n print('No')\n elif S[i] == 'b':\n if z < A + B and y < B:\n print('Yes')\n y += 1\n z = x + y\n else:\n print('No')\n else:\n print('No')", "i", "range(N)", "range", "N", "if S[i] == 'a':\n if z < A + B:\n print('Yes')\n x += 1\n z = x + y\n else:\n print('No')\n elif S[i] == 'b':\n if z < A + B and y < B:\n print('Yes')\n y += 1\n z = x + y\n else:\n print('No')\n else:\n print('No')", "S[i] == 'a'", "S[i]", "S", "i", "'a'", "if z < A + B:\n print('Yes')\n x += 1\n z = x + y\n else:\n print('No')\n ", "z < A + B", "z", "A + B", "A", "B", "print('Yes')", "print", "'Yes'", "x += 1", "x", "1", "z = x + y", "z", "x + y", "x", "y", "print('No')", "print", "'No'", "elif S[i] == 'b':\n if z < A + B and y < B:\n print('Yes')\n y += 1\n z = x + y\n else:\n print('No')\n ", "S[i] == 'b'", "S[i]", "S", "i", "'b'", "if z < A + B and y < B:\n print('Yes')\n y += 1\n z = x + y\n else:\n print('No')\n ", "z < A + B and y < B", "z < A + B", "z", "A + B", "A", "B", "y < B", "y", "B", "print('Yes')", "print", "'Yes'", "y += 1", "y", "1", "z = x + y", "z", "x + y", "x", "y", "print('No')", "print", "'No'", "print('No')", "print", "'No'", "y = 0", "0", "y", "z = x + y", "x + y", "z", "S = input()", "input()", "S", "A, B = map(int,input().split())", "map(int,input().split())", "A", "B = map(int,input().split())", "map(int,input().split())", "B", "z = x + y", "x + y", "z", "x = 0", "0", "x", "z = x + y", "x + y", "z", "N, A, B = map(int,input().split())", "map(int,input().split())", "N", "x += 1", "1", "x", "y += 1", "1", "y" ]
N, A, B = map(int,input().split()) S = input() x = 0 y = 0 z = x + y for i in range(N): if S[i] == 'a': if z < A + B: print('Yes') x += 1 z = x + y else: print('No') elif S[i] == 'b': if z < A + B and y < B: print('Yes') y += 1 z = x + y else: print('No') else: print('No')
[ 7, 15, 13, 0, 13, 12, 4, 13, 4, 18, 18, 13, 13, 13, 0, 13, 12, 4, 13, 13, 4, 18, 4, 18, 18, 13, 13, 13, 13, 0, 13, 12, 4, 13, 4, 13, 0, 13, 12, 4, 13, 13, 4, 18, 4, 18, 18, 13, 13, 13, 13, 0, 13, 12, 4, 13, 4, 13, 0, 13, 4, 13, 13, 13, 0, 13, 4, 13, 0, 13, 17, 0, 13, 17, 28, 13, 4, 13, 13, 14, 2, 18, 13, 13, 17, 14, 2, 13, 2, 13, 13, 4, 13, 17, 0, 13, 17, 9, 14, 2, 18, 13, 13, 17, 14, 2, 2, 13, 2, 13, 13, 40, 13, 13, 4, 13, 17, 0, 13, 17, 0, 13, 17, 9, 4, 13, 17, 10, 4, 13, 10, 12, 13, 10, 17, 13, 10, 12, 13, 10, 17, 13, 10, 17, 13, 10, 4, 13, 10, 12, 13, 10, 17, 13, 10, 12, 13, 10, 12, 13, 10, 17, 13, 10, 4, 13, 10, 4, 13 ]
[ [ 158, 4 ], [ 137, 15 ], [ 149, 30 ], [ 138, 35 ], [ 131, 37 ], [ 155, 52 ], [ 132, 57 ], [ 167, 59 ], [ 138, 61 ], [ 167, 62 ], [ 167, 63 ], [ 128, 65 ], [ 134, 69 ], [ 140, 72 ], [ 76, 75 ], [ 165, 78 ], [ 129, 82 ], [ 75, 83 ], [ 141, 87 ], [ 162, 87 ], [ 144, 87 ], [ 147, 89 ], [ 168, 90 ], [ 143, 95 ], [ 129, 101 ], [ 75, 102 ], [ 141, 107 ], [ 162, 107 ], [ 144, 107 ], [ 147, 109 ], [ 168, 110 ], [ 135, 112 ], [ 153, 112 ], [ 168, 113 ], [ 161, 118 ], [ 152, 121 ], [ 128, 129 ], [ 131, 132 ], [ 134, 135 ], [ 137, 138 ], [ 140, 141 ], [ 143, 144 ], [ 167, 147 ], [ 149, 150 ], [ 152, 153 ], [ 155, 156 ], [ 158, 159 ], [ 161, 162 ], [ 167, 165 ], [ 167, 168 ] ]
[ "import sys\n\n\ninint = lambda: int(sys.stdin.readline())\ninintm = lambda: map(int, sys.stdin.readline().split())\ninintl = lambda: list(inintm())\ninstrm = lambda: map(str, sys.stdin.readline().split())\ninstrl = lambda: list(instrm())\n\nn, a, b = inintm()\ns = input()\n\nrank = 1\ntuka = 0\n\nfor i in range(n):\n if s[i] == \"a\":\n if tuka < a+b:\n print(\"Yes\")\n tuka += 1\n continue\n elif s[i] == \"b\":\n if tuka < a+b and rank <= b:\n print(\"Yes\")\n tuka += 1\n rank += 1\n continue\n print(\"No\")", "import sys", "sys", "inint = lambda: int(sys.stdin.readline())", "inint", "lambda: int(sys.stdin.readline())", "int(sys.stdin.readline())", "int", "sys.stdin.readline()", "sys.stdin.readline", "sys.stdin", "sys", "stdin", "readline", "inintm = lambda: map(int, sys.stdin.readline().split())", "inintm", "lambda: map(int, sys.stdin.readline().split())", "map(int, sys.stdin.readline().split())", "map", "int", "sys.stdin.readline().split()", "sys.stdin.readline().split", "sys.stdin.readline()", "sys.stdin.readline", "sys.stdin", "sys", "stdin", "readline", "split", "inintl = lambda: list(inintm())", "inintl", "lambda: list(inintm())", "list(inintm())", "list", "inintm()", "inintm", "instrm = lambda: map(str, sys.stdin.readline().split())", "instrm", "lambda: map(str, sys.stdin.readline().split())", "map(str, sys.stdin.readline().split())", "map", "str", "sys.stdin.readline().split()", "sys.stdin.readline().split", "sys.stdin.readline()", "sys.stdin.readline", "sys.stdin", "sys", "stdin", "readline", "split", "instrl = lambda: list(instrm())", "instrl", "lambda: list(instrm())", "list(instrm())", "list", "instrm()", "instrm", "n, a, b = inintm()", "n", "inintm()", "inintm", "a", "b", "s = input()", "s", "input()", "input", "rank = 1", "rank", "1", "tuka = 0", "tuka", "0", "for i in range(n):\n if s[i] == \"a\":\n if tuka < a+b:\n print(\"Yes\")\n tuka += 1\n continue\n elif s[i] == \"b\":\n if tuka < a+b and rank <= b:\n print(\"Yes\")\n tuka += 1\n rank += 1\n continue\n print(\"No\")", "i", "range(n)", "range", "n", "if s[i] == \"a\":\n if tuka < a+b:\n print(\"Yes\")\n tuka += 1\n continue\n elif s[i] == \"b\":\n if tuka < a+b and rank <= b:\n print(\"Yes\")\n tuka += 1\n rank += 1\n continue\n ", "s[i] == \"a\"", "s[i]", "s", "i", "\"a\"", "if tuka < a+b:\n print(\"Yes\")\n tuka += 1\n continue\n ", "tuka < a+b", "tuka", "a+b", "a", "b", "print(\"Yes\")", "print", "\"Yes\"", "tuka += 1", "tuka", "1", "continue", "elif s[i] == \"b\":\n if tuka < a+b and rank <= b:\n print(\"Yes\")\n tuka += 1\n rank += 1\n continue\n ", "s[i] == \"b\"", "s[i]", "s", "i", "\"b\"", "if tuka < a+b and rank <= b:\n print(\"Yes\")\n tuka += 1\n rank += 1\n continue\n ", "tuka < a+b and rank <= b", "tuka < a+b", "tuka", "a+b", "a", "b", "rank <= b", "rank", "b", "print(\"Yes\")", "print", "\"Yes\"", "tuka += 1", "tuka", "1", "rank += 1", "rank", "1", "continue", "print(\"No\")", "print", "\"No\"", "s = input()", "input()", "s", "instrm = lambda: map(str, sys.stdin.readline().split())", "lambda: map(str, sys.stdin.readline().split())", "instrm", "rank = 1", "1", "rank", "inintm = lambda: map(int, sys.stdin.readline().split())", "lambda: map(int, sys.stdin.readline().split())", "inintm", "tuka = 0", "0", "tuka", "tuka += 1", "1", "tuka", "a, b = inintm()", "inintm()", "a", "inintl = lambda: list(inintm())", "lambda: list(inintm())", "inintl", "rank += 1", "1", "rank", "instrl = lambda: list(instrm())", "lambda: list(instrm())", "instrl", "inint = lambda: int(sys.stdin.readline())", "lambda: int(sys.stdin.readline())", "inint", "tuka += 1", "1", "tuka", "n, a, b = inintm()", "inintm()", "n", "b = inintm()", "inintm()", "b" ]
import sys inint = lambda: int(sys.stdin.readline()) inintm = lambda: map(int, sys.stdin.readline().split()) inintl = lambda: list(inintm()) instrm = lambda: map(str, sys.stdin.readline().split()) instrl = lambda: list(instrm()) n, a, b = inintm() s = input() rank = 1 tuka = 0 for i in range(n): if s[i] == "a": if tuka < a+b: print("Yes") tuka += 1 continue elif s[i] == "b": if tuka < a+b and rank <= b: print("Yes") tuka += 1 rank += 1 continue print("No")
[ 7, 0, 13, 4, 13, 13, 4, 18, 4, 13, 13, 13, 13, 28, 13, 4, 13, 14, 2, 13, 17, 14, 2, 2, 13, 17, 2, 13, 13, 14, 13, 4, 13, 17, 14, 13, 0, 13, 17, 4, 13, 17, 4, 13, 17, 10, 4, 13, 10, 4, 13, 10, 4, 13, 10, 17, 13 ]
[ [ 52, 2 ], [ 52, 11 ], [ 52, 12 ], [ 15, 14 ], [ 14, 19 ], [ 14, 24 ], [ 47, 27 ], [ 50, 28 ], [ 56, 28 ], [ 55, 37 ], [ 52, 47 ], [ 52, 50 ], [ 52, 53 ], [ 55, 56 ] ]
[ "n,a,b=map(int,input().split())\nfor c in input():\n if c<\"c\":\n if c<\"b\" and a+b:\n if a:a-=1\n else:b-=1\n print(\"Yes\")\n elif b:\n b-=1\n print(\"Yes\")\n else:\n print(\"No\")\n else:print(\"No\") ", "n,a,b=map(int,input().split())", "n", "map(int,input().split())", "map", "int", "input().split()", "().split", "()", "input", "split", "a", "b", "for c in input():\n if c<\"c\":\n if c<\"b\" and a+b:\n if a:a-=1\n else:b-=1\n print(\"Yes\")\n elif b:\n b-=1\n print(\"Yes\")\n else:\n print(\"No\")\n else:print(\"No\") ", "c", "input()", "input", "if c<\"c\":\n if c<\"b\" and a+b:\n if a:a-=1\n else:b-=1\n print(\"Yes\")\n elif b:\n b-=1\n print(\"Yes\")\n else:\n print(\"No\")\n else:print(\"No\") ", "c<\"c\"", "c", "\"c\"", "if c<\"b\" and a+b:\n if a:a-=1\n else:b-=1\n print(\"Yes\")\n elif b:\n b-=1\n print(\"Yes\")\n else:\n print(\"No\")\n ", "c<\"b\" and a+b", "c<\"b\"", "c", "\"b\"", "a+b", "a", "b", "if a:a-=1\n else:b-=1\n ", "a", "print(\"Yes\")", "print", "\"Yes\"", "elif b:\n b-=1\n print(\"Yes\")\n ", "b", "b-=1", "b", "1", "print(\"Yes\")", "print", "\"Yes\"", "print(\"No\")", "print", "\"No\"", "a,b=map(int,input().split())", "map(int,input().split())", "a", "b=map(int,input().split())", "map(int,input().split())", "b", "n,a,b=map(int,input().split())", "map(int,input().split())", "n", "b-=1", "1", "b" ]
n,a,b=map(int,input().split()) for c in input(): if c<"c": if c<"b" and a+b: if a:a-=1 else:b-=1 print("Yes") elif b: b-=1 print("Yes") else: print("No") else:print("No")
[ 7, 0, 13, 4, 13, 13, 4, 18, 4, 13, 13, 13, 13, 0, 13, 4, 13, 0, 13, 2, 13, 13, 0, 13, 17, 0, 13, 17, 28, 13, 13, 14, 2, 2, 13, 13, 13, 14, 2, 13, 17, 0, 13, 17, 4, 13, 17, 14, 2, 2, 13, 17, 2, 13, 13, 0, 13, 17, 4, 13, 17, 4, 13, 17, 4, 13, 17, 10, 17, 13, 10, 17, 13, 10, 17, 13, 10, 4, 13, 10, 2, 13, 10, 17, 13, 10, 4, 13, 10, 4, 13, 10, 4, 13 ]
[ [ 89, 2 ], [ 89, 11 ], [ 89, 12 ], [ 92, 14 ], [ 80, 18 ], [ 90, 20 ], [ 87, 21 ], [ 74, 23 ], [ 71, 26 ], [ 30, 29 ], [ 93, 29 ], [ 75, 34 ], [ 84, 34 ], [ 72, 35 ], [ 69, 35 ], [ 81, 36 ], [ 29, 39 ], [ 83, 42 ], [ 29, 50 ], [ 72, 53 ], [ 69, 53 ], [ 87, 54 ], [ 68, 56 ], [ 68, 69 ], [ 71, 72 ], [ 74, 75 ], [ 89, 78 ], [ 80, 81 ], [ 83, 84 ], [ 89, 87 ], [ 89, 90 ], [ 92, 93 ] ]
[ "n,a,b=map(int,input().split())\ns=input()\nc=a+b\nA=0\nB=0\nfor i in s:\n if A+B<c:\n if i==\"a\":\n A+=1\n print(\"Yes\")\n elif i==\"b\" and B<b:\n B+=1\n print(\"Yes\")\n else:\n print(\"No\")\n else:\n print(\"No\")", "n,a,b=map(int,input().split())", "n", "map(int,input().split())", "map", "int", "input().split()", "().split", "()", "input", "split", "a", "b", "s=input()", "s", "input()", "input", "c=a+b", "c", "a+b", "a", "b", "A=0", "A", "0", "B=0", "B", "0", "for i in s:\n if A+B<c:\n if i==\"a\":\n A+=1\n print(\"Yes\")\n elif i==\"b\" and B<b:\n B+=1\n print(\"Yes\")\n else:\n print(\"No\")\n else:\n print(\"No\")", "i", "s", "if A+B<c:\n if i==\"a\":\n A+=1\n print(\"Yes\")\n elif i==\"b\" and B<b:\n B+=1\n print(\"Yes\")\n else:\n print(\"No\")\n else:\n print(\"No\")", "A+B<c", "A+B", "A", "B", "c", "if i==\"a\":\n A+=1\n print(\"Yes\")\n elif i==\"b\" and B<b:\n B+=1\n print(\"Yes\")\n else:\n print(\"No\")\n ", "i==\"a\"", "i", "\"a\"", "A+=1", "A", "1", "print(\"Yes\")", "print", "\"Yes\"", "elif i==\"b\" and B<b:\n B+=1\n print(\"Yes\")\n ", "i==\"b\" and B<b", "i==\"b\"", "i", "\"b\"", "B<b", "B", "b", "B+=1", "B", "1", "print(\"Yes\")", "print", "\"Yes\"", "print(\"No\")", "print", "\"No\"", "print(\"No\")", "print", "\"No\"", "B+=1", "1", "B", "B=0", "0", "B", "A=0", "0", "A", "n,a,b=map(int,input().split())", "map(int,input().split())", "n", "c=a+b", "a+b", "c", "A+=1", "1", "A", "b=map(int,input().split())", "map(int,input().split())", "b", "a,b=map(int,input().split())", "map(int,input().split())", "a", "s=input()", "input()", "s" ]
n,a,b=map(int,input().split()) s=input() c=a+b A=0 B=0 for i in s: if A+B<c: if i=="a": A+=1 print("Yes") elif i=="b" and B<b: B+=1 print("Yes") else: print("No") else: print("No")
[ 7, 0, 13, 4, 13, 13, 4, 18, 4, 13, 13, 13, 13, 0, 13, 4, 13, 0, 13, 2, 13, 13, 0, 13, 17, 13, 17, 28, 13, 4, 13, 13, 14, 2, 2, 18, 13, 13, 17, 40, 13, 13, 4, 13, 17, 9, 14, 2, 18, 13, 13, 17, 0, 13, 17, 14, 2, 13, 13, 4, 13, 17, 9, 0, 13, 17, 4, 13, 17, 10, 17, 13, 10, 17, 13, 10, 4, 13, 10, 17, 13, 10, 4, 13, 10, 4, 13, 10, 2, 13, 10, 17, 13, 10, 4, 13 ]
[ [ 94, 2 ], [ 94, 11 ], [ 94, 12 ], [ 76, 14 ], [ 88, 18 ], [ 83, 20 ], [ 86, 21 ], [ 70, 23 ], [ 73, 25 ], [ 29, 28 ], [ 95, 31 ], [ 77, 36 ], [ 28, 37 ], [ 71, 40 ], [ 92, 40 ], [ 89, 41 ], [ 77, 49 ], [ 28, 50 ], [ 79, 53 ], [ 80, 57 ], [ 74, 57 ], [ 86, 58 ], [ 91, 64 ], [ 70, 71 ], [ 73, 74 ], [ 76, 77 ], [ 79, 80 ], [ 94, 83 ], [ 94, 86 ], [ 88, 89 ], [ 91, 92 ], [ 94, 95 ] ]
[ "N, A, B = map(int, input().split())\nS = input()\n\nps = A + B\na,b = 0,0\nfor i in range(N):\n if S[i] == \"c\" or a >= ps:\n print(\"No\")\n continue\n if S[i] == \"b\":\n b += 1\n if b > B:\n print(\"No\")\n continue\n a += 1\n print(\"Yes\")", "N, A, B = map(int, input().split())", "N", "map(int, input().split())", "map", "int", "input().split()", "().split", "()", "input", "split", "A", "B", "S = input()", "S", "input()", "input", "ps = A + B", "ps", "A + B", "A", "B", "a,b = 0,0", "a", "0", "b", "0", "for i in range(N):\n if S[i] == \"c\" or a >= ps:\n print(\"No\")\n continue\n if S[i] == \"b\":\n b += 1\n if b > B:\n print(\"No\")\n continue\n a += 1\n print(\"Yes\")", "i", "range(N)", "range", "N", "if S[i] == \"c\" or a >= ps:\n print(\"No\")\n continue\n ", "S[i] == \"c\" or a >= ps", "S[i] == \"c\"", "S[i]", "S", "i", "\"c\"", "a >= ps", "a", "ps", "print(\"No\")", "print", "\"No\"", "continue", "if S[i] == \"b\":\n b += 1\n if b > B:\n print(\"No\")\n continue\n ", "S[i] == \"b\"", "S[i]", "S", "i", "\"b\"", "b += 1", "b", "1", "if b > B:\n print(\"No\")\n continue\n ", "b > B", "b", "B", "print(\"No\")", "print", "\"No\"", "continue", "a += 1", "a", "1", "print(\"Yes\")", "print", "\"Yes\"", "a,b = 0,0", "0", "a", "b = 0,0", "0", "b", "S = input()", "input()", "S", "b += 1", "1", "b", "A, B = map(int, input().split())", "map(int, input().split())", "A", "B = map(int, input().split())", "map(int, input().split())", "B", "ps = A + B", "A + B", "ps", "a += 1", "1", "a", "N, A, B = map(int, input().split())", "map(int, input().split())", "N" ]
N, A, B = map(int, input().split()) S = input() ps = A + B a,b = 0,0 for i in range(N): if S[i] == "c" or a >= ps: print("No") continue if S[i] == "b": b += 1 if b > B: print("No") continue a += 1 print("Yes")
[ 7, 0, 13, 4, 13, 13, 4, 18, 4, 13, 13, 13, 13, 0, 13, 4, 13, 4, 13, 0, 13, 17, 13, 17, 28, 13, 4, 13, 13, 14, 2, 18, 13, 13, 17, 4, 13, 17, 14, 2, 18, 13, 13, 17, 14, 2, 2, 13, 13, 2, 13, 13, 4, 13, 17, 0, 13, 17, 4, 13, 17, 14, 2, 18, 13, 13, 17, 14, 2, 2, 2, 13, 13, 2, 13, 13, 2, 13, 13, 4, 13, 17, 0, 13, 17, 4, 13, 17, 10, 4, 13, 10, 17, 13, 10, 4, 13, 10, 4, 13, 10, 17, 13, 10, 17, 13, 10, 4, 13, 10, 17, 13 ]
[ [ 98, 2 ], [ 98, 11 ], [ 98, 12 ], [ 107, 14 ], [ 101, 20 ], [ 92, 22 ], [ 26, 25 ], [ 90, 28 ], [ 108, 32 ], [ 25, 33 ], [ 108, 41 ], [ 25, 42 ], [ 102, 47 ], [ 111, 47 ], [ 93, 48 ], [ 105, 48 ], [ 99, 50 ], [ 96, 51 ], [ 110, 56 ], [ 108, 64 ], [ 25, 65 ], [ 102, 71 ], [ 111, 71 ], [ 93, 72 ], [ 105, 72 ], [ 99, 74 ], [ 96, 75 ], [ 93, 77 ], [ 105, 77 ], [ 96, 78 ], [ 104, 83 ], [ 98, 90 ], [ 92, 93 ], [ 98, 96 ], [ 98, 99 ], [ 101, 102 ], [ 104, 105 ], [ 107, 108 ], [ 110, 111 ] ]
[ "n,a,b = map(int, input().split())\ns = str(input())\na_count,b_count = 0,0\nfor i in range(n):\n if s[i] == 'c':\n print('No')\n elif s[i] == 'a':\n if a_count+b_count < a+b:\n print('Yes')\n a_count += 1\n else:\n print('No')\n elif s[i] == 'b':\n if a_count+b_count < a+b and b_count < b:\n print('Yes')\n b_count += 1\n else:\n print('No')", "n,a,b = map(int, input().split())", "n", "map(int, input().split())", "map", "int", "input().split()", "().split", "()", "input", "split", "a", "b", "s = str(input())", "s", "str(input())", "str", "input()", "input", "a_count,b_count = 0,0", "a_count", "0", "b_count", "0", "for i in range(n):\n if s[i] == 'c':\n print('No')\n elif s[i] == 'a':\n if a_count+b_count < a+b:\n print('Yes')\n a_count += 1\n else:\n print('No')\n elif s[i] == 'b':\n if a_count+b_count < a+b and b_count < b:\n print('Yes')\n b_count += 1\n else:\n print('No')", "i", "range(n)", "range", "n", "if s[i] == 'c':\n print('No')\n elif s[i] == 'a':\n if a_count+b_count < a+b:\n print('Yes')\n a_count += 1\n else:\n print('No')\n elif s[i] == 'b':\n if a_count+b_count < a+b and b_count < b:\n print('Yes')\n b_count += 1\n else:\n print('No')", "s[i] == 'c'", "s[i]", "s", "i", "'c'", "print('No')", "print", "'No'", "elif s[i] == 'a':\n if a_count+b_count < a+b:\n print('Yes')\n a_count += 1\n else:\n print('No')\n ", "s[i] == 'a'", "s[i]", "s", "i", "'a'", "if a_count+b_count < a+b:\n print('Yes')\n a_count += 1\n else:\n print('No')\n ", "a_count+b_count < a+b", "a_count+b_count", "a_count", "b_count", "a+b", "a", "b", "print('Yes')", "print", "'Yes'", "a_count += 1", "a_count", "1", "print('No')", "print", "'No'", "elif s[i] == 'b':\n if a_count+b_count < a+b and b_count < b:\n print('Yes')\n b_count += 1\n else:\n print('No')", "s[i] == 'b'", "s[i]", "s", "i", "'b'", "if a_count+b_count < a+b and b_count < b:\n print('Yes')\n b_count += 1\n else:\n print('No')", "a_count+b_count < a+b and b_count < b", "a_count+b_count < a+b", "a_count+b_count", "a_count", "b_count", "a+b", "a", "b", "b_count < b", "b_count", "b", "print('Yes')", "print", "'Yes'", "b_count += 1", "b_count", "1", "print('No')", "print", "'No'", "n,a,b = map(int, input().split())", "map(int, input().split())", "n", "b_count = 0,0", "0", "b_count", "b = map(int, input().split())", "map(int, input().split())", "b", "a,b = map(int, input().split())", "map(int, input().split())", "a", "a_count,b_count = 0,0", "0", "a_count", "b_count += 1", "1", "b_count", "s = str(input())", "str(input())", "s", "a_count += 1", "1", "a_count" ]
n,a,b = map(int, input().split()) s = str(input()) a_count,b_count = 0,0 for i in range(n): if s[i] == 'c': print('No') elif s[i] == 'a': if a_count+b_count < a+b: print('Yes') a_count += 1 else: print('No') elif s[i] == 'b': if a_count+b_count < a+b and b_count < b: print('Yes') b_count += 1 else: print('No')
[ 7, 0, 13, 4, 13, 13, 4, 18, 4, 13, 13, 13, 13, 0, 13, 4, 13, 4, 13, 0, 13, 17, 0, 13, 17, 28, 13, 4, 13, 4, 13, 13, 14, 2, 18, 13, 13, 17, 14, 2, 13, 2, 13, 13, 4, 13, 17, 0, 13, 17, 4, 13, 17, 14, 2, 18, 13, 13, 17, 14, 2, 2, 13, 2, 13, 13, 40, 13, 13, 4, 13, 17, 0, 13, 17, 0, 13, 17, 4, 13, 17, 14, 2, 18, 13, 13, 17, 4, 13, 17, 10, 17, 13, 10, 4, 13, 10, 4, 13, 10, 4, 13, 10, 17, 13, 10, 4, 13, 10, 17, 13, 10, 17, 13, 10, 17, 13 ]
[ [ 106, 2 ], [ 106, 11 ], [ 106, 12 ], [ 94, 14 ], [ 112, 20 ], [ 115, 23 ], [ 27, 26 ], [ 95, 31 ], [ 95, 35 ], [ 26, 36 ], [ 113, 40 ], [ 104, 40 ], [ 92, 40 ], [ 107, 42 ], [ 101, 43 ], [ 91, 48 ], [ 95, 56 ], [ 26, 57 ], [ 92, 62 ], [ 113, 62 ], [ 104, 62 ], [ 107, 64 ], [ 101, 65 ], [ 116, 67 ], [ 110, 67 ], [ 101, 68 ], [ 103, 73 ], [ 109, 76 ], [ 95, 84 ], [ 26, 85 ], [ 91, 92 ], [ 94, 95 ], [ 106, 98 ], [ 106, 101 ], [ 103, 104 ], [ 106, 107 ], [ 109, 110 ], [ 112, 113 ], [ 115, 116 ] ]
[ "N, A, B = map(int, input().split())\nS = list(input())\ncount = 0\nb_rank = 1\nfor i in range(len(S)) :\n if S[i] == \"a\" :\n if count < A + B :\n print(\"Yes\")\n count += 1\n else :\n print(\"No\")\n if S[i] == \"b\" :\n if count < A + B and b_rank <= B :\n print(\"Yes\")\n count += 1\n b_rank += 1\n else :\n print(\"No\")\n if S[i] == \"c\" :\n print(\"No\")", "N, A, B = map(int, input().split())", "N", "map(int, input().split())", "map", "int", "input().split()", "().split", "()", "input", "split", "A", "B", "S = list(input())", "S", "list(input())", "list", "input()", "input", "count = 0", "count", "0", "b_rank = 1", "b_rank", "1", "for i in range(len(S)) :\n if S[i] == \"a\" :\n if count < A + B :\n print(\"Yes\")\n count += 1\n else :\n print(\"No\")\n if S[i] == \"b\" :\n if count < A + B and b_rank <= B :\n print(\"Yes\")\n count += 1\n b_rank += 1\n else :\n print(\"No\")\n if S[i] == \"c\" :\n print(\"No\")", "i", "range(len(S))", "range", "len(S)", "len", "S", "if S[i] == \"a\" :\n if count < A + B :\n print(\"Yes\")\n count += 1\n else :\n print(\"No\")\n ", "S[i] == \"a\"", "S[i]", "S", "i", "\"a\"", "if count < A + B :\n print(\"Yes\")\n count += 1\n else :\n print(\"No\")\n ", "count < A + B", "count", "A + B", "A", "B", "print(\"Yes\")", "print", "\"Yes\"", "count += 1", "count", "1", "print(\"No\")", "print", "\"No\"", "if S[i] == \"b\" :\n if count < A + B and b_rank <= B :\n print(\"Yes\")\n count += 1\n b_rank += 1\n else :\n print(\"No\")\n ", "S[i] == \"b\"", "S[i]", "S", "i", "\"b\"", "if count < A + B and b_rank <= B :\n print(\"Yes\")\n count += 1\n b_rank += 1\n else :\n print(\"No\")\n ", "count < A + B and b_rank <= B", "count < A + B", "count", "A + B", "A", "B", "b_rank <= B", "b_rank", "B", "print(\"Yes\")", "print", "\"Yes\"", "count += 1", "count", "1", "b_rank += 1", "b_rank", "1", "print(\"No\")", "print", "\"No\"", "if S[i] == \"c\" :\n print(\"No\")", "S[i] == \"c\"", "S[i]", "S", "i", "\"c\"", "print(\"No\")", "print", "\"No\"", "count += 1", "1", "count", "S = list(input())", "list(input())", "S", "N, A, B = map(int, input().split())", "map(int, input().split())", "N", "B = map(int, input().split())", "map(int, input().split())", "B", "count += 1", "1", "count", "A, B = map(int, input().split())", "map(int, input().split())", "A", "b_rank += 1", "1", "b_rank", "count = 0", "0", "count", "b_rank = 1", "1", "b_rank" ]
N, A, B = map(int, input().split()) S = list(input()) count = 0 b_rank = 1 for i in range(len(S)) : if S[i] == "a" : if count < A + B : print("Yes") count += 1 else : print("No") if S[i] == "b" : if count < A + B and b_rank <= B : print("Yes") count += 1 b_rank += 1 else : print("No") if S[i] == "c" : print("No")
[ 7, 0, 13, 4, 13, 13, 4, 18, 4, 13, 13, 17, 13, 13, 0, 13, 4, 13, 0, 13, 21, 22, 17, 17, 22, 17, 17, 22, 17, 17, 28, 13, 13, 14, 2, 13, 17, 14, 2, 2, 18, 13, 17, 18, 13, 17, 2, 13, 13, 0, 18, 13, 17, 17, 4, 13, 17, 4, 13, 17, 14, 2, 13, 17, 14, 2, 2, 2, 18, 13, 17, 18, 13, 17, 2, 13, 13, 2, 18, 13, 17, 13, 0, 18, 13, 17, 17, 4, 13, 17, 4, 13, 17, 4, 13, 17, 10, 21, 13, 10, 4, 13, 10, 4, 13, 10, 4, 13, 10, 4, 13 ]
[ [ 106, 2 ], [ 106, 12 ], [ 106, 13 ], [ 109, 15 ], [ 97, 19 ], [ 32, 31 ], [ 110, 31 ], [ 31, 35 ], [ 98, 41 ], [ 98, 44 ], [ 107, 47 ], [ 101, 48 ], [ 53, 50 ], [ 98, 51 ], [ 31, 62 ], [ 98, 69 ], [ 98, 72 ], [ 107, 75 ], [ 101, 76 ], [ 98, 79 ], [ 101, 81 ], [ 86, 83 ], [ 98, 84 ], [ 97, 98 ], [ 106, 101 ], [ 106, 104 ], [ 106, 107 ], [ 109, 110 ] ]
[ "n,a,b = map(int,input().split(\" \"))\ns = input()\nm_dict = {\"a\":0,\"b\":0,\"c\":0}\nfor i in s:\n if i == \"a\":\n if m_dict[\"a\"]+m_dict[\"b\"] < a+b:\n m_dict[\"a\"] += 1\n print(\"Yes\")\n else:\n print(\"No\")\n elif i == \"b\":\n if m_dict[\"a\"]+m_dict[\"b\"] < a+b and m_dict[\"b\"] < b:\n m_dict[\"b\"] += 1\n print(\"Yes\")\n else:\n print(\"No\")\n else:\n print(\"No\")", "n,a,b = map(int,input().split(\" \"))", "n", "map(int,input().split(\" \"))", "map", "int", "input().split(\" \")", "().split", "()", "input", "split", "\" \"", "a", "b", "s = input()", "s", "input()", "input", "m_dict = {\"a\":0,\"b\":0,\"c\":0}", "m_dict", "{\"a\":0,\"b\":0,\"c\":0}", "\"a\"", "\"a\"", "0", "\"b\"", "\"b\"", "0", "\"c\"", "\"c\"", "0", "for i in s:\n if i == \"a\":\n if m_dict[\"a\"]+m_dict[\"b\"] < a+b:\n m_dict[\"a\"] += 1\n print(\"Yes\")\n else:\n print(\"No\")\n elif i == \"b\":\n if m_dict[\"a\"]+m_dict[\"b\"] < a+b and m_dict[\"b\"] < b:\n m_dict[\"b\"] += 1\n print(\"Yes\")\n else:\n print(\"No\")\n else:\n print(\"No\")", "i", "s", "if i == \"a\":\n if m_dict[\"a\"]+m_dict[\"b\"] < a+b:\n m_dict[\"a\"] += 1\n print(\"Yes\")\n else:\n print(\"No\")\n elif i == \"b\":\n if m_dict[\"a\"]+m_dict[\"b\"] < a+b and m_dict[\"b\"] < b:\n m_dict[\"b\"] += 1\n print(\"Yes\")\n else:\n print(\"No\")\n else:\n print(\"No\")", "i == \"a\"", "i", "\"a\"", "if m_dict[\"a\"]+m_dict[\"b\"] < a+b:\n m_dict[\"a\"] += 1\n print(\"Yes\")\n else:\n print(\"No\")\n ", "m_dict[\"a\"]+m_dict[\"b\"] < a+b", "m_dict[\"a\"]+m_dict[\"b\"]", "m_dict[\"a\"]", "m_dict", "\"a\"", "m_dict[\"b\"]", "m_dict", "\"b\"", "a+b", "a", "b", "m_dict[\"a\"] += 1", "m_dict[\"a\"]", "m_dict", "\"a\"", "1", "print(\"Yes\")", "print", "\"Yes\"", "print(\"No\")", "print", "\"No\"", "elif i == \"b\":\n if m_dict[\"a\"]+m_dict[\"b\"] < a+b and m_dict[\"b\"] < b:\n m_dict[\"b\"] += 1\n print(\"Yes\")\n else:\n print(\"No\")\n ", "i == \"b\"", "i", "\"b\"", "if m_dict[\"a\"]+m_dict[\"b\"] < a+b and m_dict[\"b\"] < b:\n m_dict[\"b\"] += 1\n print(\"Yes\")\n else:\n print(\"No\")\n ", "m_dict[\"a\"]+m_dict[\"b\"] < a+b and m_dict[\"b\"] < b", "m_dict[\"a\"]+m_dict[\"b\"] < a+b", "m_dict[\"a\"]+m_dict[\"b\"]", "m_dict[\"a\"]", "m_dict", "\"a\"", "m_dict[\"b\"]", "m_dict", "\"b\"", "a+b", "a", "b", "m_dict[\"b\"] < b", "m_dict[\"b\"]", "m_dict", "\"b\"", "b", "m_dict[\"b\"] += 1", "m_dict[\"b\"]", "m_dict", "\"b\"", "1", "print(\"Yes\")", "print", "\"Yes\"", "print(\"No\")", "print", "\"No\"", "print(\"No\")", "print", "\"No\"", "m_dict = {\"a\":0,\"b\":0,\"c\":0}", "{\"a\":0,\"b\":0,\"c\":0}", "m_dict", "b = map(int,input().split(\" \"))", "map(int,input().split(\" \"))", "b", "n,a,b = map(int,input().split(\" \"))", "map(int,input().split(\" \"))", "n", "a,b = map(int,input().split(\" \"))", "map(int,input().split(\" \"))", "a", "s = input()", "input()", "s" ]
n,a,b = map(int,input().split(" ")) s = input() m_dict = {"a":0,"b":0,"c":0} for i in s: if i == "a": if m_dict["a"]+m_dict["b"] < a+b: m_dict["a"] += 1 print("Yes") else: print("No") elif i == "b": if m_dict["a"]+m_dict["b"] < a+b and m_dict["b"] < b: m_dict["b"] += 1 print("Yes") else: print("No") else: print("No")
[ 7, 0, 13, 4, 13, 13, 4, 18, 4, 13, 13, 13, 13, 0, 13, 4, 13, 4, 13, 0, 13, 17, 0, 13, 17, 28, 13, 13, 14, 2, 40, 13, 2, 13, 13, 2, 13, 17, 4, 13, 17, 0, 13, 17, 14, 2, 2, 40, 13, 2, 13, 13, 2, 13, 17, 40, 13, 13, 4, 13, 17, 0, 13, 17, 0, 13, 17, 4, 13, 17, 10, 4, 13, 10, 17, 13, 10, 4, 13, 10, 4, 13, 10, 17, 13, 10, 17, 13, 10, 17, 13, 10, 4, 13, 10, 17, 13 ]
[ [ 92, 2 ], [ 92, 11 ], [ 92, 12 ], [ 71, 14 ], [ 86, 20 ], [ 86, 23 ], [ 27, 26 ], [ 72, 26 ], [ 87, 31 ], [ 90, 31 ], [ 75, 31 ], [ 81, 33 ], [ 93, 34 ], [ 26, 36 ], [ 74, 42 ], [ 87, 48 ], [ 90, 48 ], [ 75, 48 ], [ 81, 50 ], [ 93, 51 ], [ 26, 53 ], [ 84, 56 ], [ 96, 56 ], [ 93, 57 ], [ 89, 62 ], [ 95, 65 ], [ 71, 72 ], [ 74, 75 ], [ 92, 78 ], [ 92, 81 ], [ 86, 84 ], [ 86, 87 ], [ 89, 90 ], [ 92, 93 ], [ 95, 96 ] ]
[ "n,a,b = map(int, input().split())\ns = str(input())\n\ncounter1 = counter2 = 1\nfor char in s:\n if (counter1 <= (a+b)) & (char == 'a'):\n print(\"Yes\")\n counter1 += 1\n elif (counter1 <= (a+b)) & (char == 'b') & (counter2 <= b):\n print(\"Yes\")\n counter1 += 1\n counter2 += 1\n else:\n print(\"No\")", "n,a,b = map(int, input().split())", "n", "map(int, input().split())", "map", "int", "input().split()", "().split", "()", "input", "split", "a", "b", "s = str(input())", "s", "str(input())", "str", "input()", "input", "counter1 = counter2 = 1", "counter1", "1", "= counter2 = 1", "counter2", "1", "for char in s:\n if (counter1 <= (a+b)) & (char == 'a'):\n print(\"Yes\")\n counter1 += 1\n elif (counter1 <= (a+b)) & (char == 'b') & (counter2 <= b):\n print(\"Yes\")\n counter1 += 1\n counter2 += 1\n else:\n print(\"No\")", "char", "s", "if (counter1 <= (a+b)) & (char == 'a'):\n print(\"Yes\")\n counter1 += 1\n elif (counter1 <= (a+b)) & (char == 'b') & (counter2 <= b):\n print(\"Yes\")\n counter1 += 1\n counter2 += 1\n else:\n print(\"No\")", "(counter1 <= (a+b)) & (char == 'a')", "counter1 <= (a+b)", "counter1", "a+b", "a", "b", "char == 'a'", "char", "'a'", "print(\"Yes\")", "print", "\"Yes\"", "counter1 += 1", "counter1", "1", "elif (counter1 <= (a+b)) & (char == 'b') & (counter2 <= b):\n print(\"Yes\")\n counter1 += 1\n counter2 += 1\n ", "(counter1 <= (a+b)) & (char == 'b') & (counter2 <= b)", "(counter1 <= (a+b)) & (char == 'b')", "counter1 <= (a+b)", "counter1", "a+b", "a", "b", "char == 'b'", "char", "'b'", "counter2 <= b", "counter2", "b", "print(\"Yes\")", "print", "\"Yes\"", "counter1 += 1", "counter1", "1", "counter2 += 1", "counter2", "1", "print(\"No\")", "print", "\"No\"", "s = str(input())", "str(input())", "s", "counter1 += 1", "1", "counter1", "n,a,b = map(int, input().split())", "map(int, input().split())", "n", "a,b = map(int, input().split())", "map(int, input().split())", "a", "counter2 = 1", "1", "counter2", "counter1 = counter2 = 1", "1", "counter1", "counter1 += 1", "1", "counter1", "b = map(int, input().split())", "map(int, input().split())", "b", "counter2 += 1", "1", "counter2" ]
n,a,b = map(int, input().split()) s = str(input()) counter1 = counter2 = 1 for char in s: if (counter1 <= (a+b)) & (char == 'a'): print("Yes") counter1 += 1 elif (counter1 <= (a+b)) & (char == 'b') & (counter2 <= b): print("Yes") counter1 += 1 counter2 += 1 else: print("No")
[ 7, 41, 28, 13, 4, 18, 4, 13, 13, 17, 4, 4, 13, 13, 0, 13, 13, 13, 13, 0, 13, 4, 13, 0, 13, 17, 0, 13, 17, 28, 13, 13, 14, 40, 2, 13, 13, 13, 4, 13, 17, 9, 14, 2, 13, 17, 4, 13, 17, 9, 14, 2, 13, 17, 0, 13, 17, 4, 13, 17, 9, 14, 2, 13, 17, 14, 40, 13, 13, 4, 13, 17, 9, 0, 13, 17, 0, 13, 17, 4, 13, 17, 9, 10, 4, 13, 10, 17, 13, 10, 17, 13, 10, 13, 13, 10, 13, 13, 10, 17, 13, 10, 13, 13, 10, 17, 13, 10, 17, 13 ]
[ [ 4, 3 ], [ 3, 13 ], [ 102, 15 ], [ 102, 17 ], [ 102, 18 ], [ 84, 20 ], [ 87, 24 ], [ 105, 27 ], [ 31, 30 ], [ 85, 30 ], [ 103, 35 ], [ 94, 36 ], [ 88, 37 ], [ 100, 37 ], [ 91, 37 ], [ 30, 44 ], [ 30, 52 ], [ 90, 55 ], [ 30, 63 ], [ 94, 67 ], [ 106, 68 ], [ 109, 68 ], [ 99, 74 ], [ 108, 77 ], [ 84, 85 ], [ 87, 88 ], [ 90, 91 ], [ 102, 94 ], [ 102, 97 ], [ 99, 100 ], [ 102, 103 ], [ 105, 106 ], [ 108, 109 ] ]
[ "N, A, B = [int(i) for i in input().split(\" \")]\nS = input()\n\ncnt = 0\ncnt_abroad = 0\n\nfor s in S:\n if A + B <= cnt:\n print(\"No\")\n continue\n if s == \"c\":\n print(\"No\")\n continue\n if s == \"a\":\n cnt += 1\n print(\"Yes\")\n continue\n if s == \"b\":\n if B <= cnt_abroad:\n print(\"No\")\n continue\n cnt += 1\n cnt_abroad += 1\n print(\"Yes\")\n continue", "int(i) for i in input().split(\" \")", "for i in input().split(\" \")", "i", "input().split(\" \")", "().split", "()", "input", "split", "\" \"", "for i in input().split(\" \")", "int(i)", "int", "i", "N, A, B = [int(i) for i in input().split(\" \")]", "N", "[int(i) for i in input().split(\" \")]", "A", "B", "S = input()", "S", "input()", "input", "cnt = 0", "cnt", "0", "cnt_abroad = 0", "cnt_abroad", "0", "for s in S:\n if A + B <= cnt:\n print(\"No\")\n continue\n if s == \"c\":\n print(\"No\")\n continue\n if s == \"a\":\n cnt += 1\n print(\"Yes\")\n continue\n if s == \"b\":\n if B <= cnt_abroad:\n print(\"No\")\n continue\n cnt += 1\n cnt_abroad += 1\n print(\"Yes\")\n continue", "s", "S", "if A + B <= cnt:\n print(\"No\")\n continue\n ", "A + B <= cnt", "A + B", "A", "B", "cnt", "print(\"No\")", "print", "\"No\"", "continue", "if s == \"c\":\n print(\"No\")\n continue\n ", "s == \"c\"", "s", "\"c\"", "print(\"No\")", "print", "\"No\"", "continue", "if s == \"a\":\n cnt += 1\n print(\"Yes\")\n continue\n ", "s == \"a\"", "s", "\"a\"", "cnt += 1", "cnt", "1", "print(\"Yes\")", "print", "\"Yes\"", "continue", "if s == \"b\":\n if B <= cnt_abroad:\n print(\"No\")\n continue\n cnt += 1\n cnt_abroad += 1\n print(\"Yes\")\n continue", "s == \"b\"", "s", "\"b\"", "if B <= cnt_abroad:\n print(\"No\")\n continue\n ", "B <= cnt_abroad", "B", "cnt_abroad", "print(\"No\")", "print", "\"No\"", "continue", "cnt += 1", "cnt", "1", "cnt_abroad += 1", "cnt_abroad", "1", "print(\"Yes\")", "print", "\"Yes\"", "continue", "S = input()", "input()", "S", "cnt = 0", "0", "cnt", "cnt += 1", "1", "cnt", "B = [int(i) for i in input().split(\" \")]", "[int(i) for i in input().split(\" \")]", "B", "N, A, B = [int(i) for i in input().split(\" \")]", "[int(i) for i in input().split(\" \")]", "N", "cnt += 1", "1", "cnt", "A, B = [int(i) for i in input().split(\" \")]", "[int(i) for i in input().split(\" \")]", "A", "cnt_abroad = 0", "0", "cnt_abroad", "cnt_abroad += 1", "1", "cnt_abroad" ]
N, A, B = [int(i) for i in input().split(" ")] S = input() cnt = 0 cnt_abroad = 0 for s in S: if A + B <= cnt: print("No") continue if s == "c": print("No") continue if s == "a": cnt += 1 print("Yes") continue if s == "b": if B <= cnt_abroad: print("No") continue cnt += 1 cnt_abroad += 1 print("Yes") continue
[ 7, 0, 13, 4, 13, 13, 4, 18, 4, 13, 13, 13, 13, 0, 13, 17, 13, 17, 13, 17, 0, 13, 4, 13, 0, 13, 2, 13, 13, 28, 13, 4, 13, 13, 14, 2, 18, 13, 13, 17, 14, 2, 2, 13, 13, 13, 0, 13, 17, 4, 13, 17, 4, 13, 17, 14, 2, 18, 13, 13, 17, 14, 2, 2, 2, 13, 13, 13, 2, 13, 13, 0, 13, 17, 4, 13, 17, 4, 13, 17, 14, 2, 18, 13, 13, 17, 4, 13, 17, 10, 4, 13, 10, 4, 13, 10, 17, 13, 10, 17, 13, 10, 4, 13, 10, 2, 13, 10, 4, 13, 10, 17, 13, 10, 17, 13, 10, 17, 13 ]
[ [ 102, 2 ], [ 102, 11 ], [ 102, 12 ], [ 96, 14 ], [ 111, 16 ], [ 117, 18 ], [ 108, 21 ], [ 105, 25 ], [ 91, 27 ], [ 103, 28 ], [ 31, 30 ], [ 94, 33 ], [ 109, 37 ], [ 30, 38 ], [ 97, 43 ], [ 115, 43 ], [ 112, 44 ], [ 100, 44 ], [ 106, 45 ], [ 118, 45 ], [ 114, 47 ], [ 109, 58 ], [ 30, 59 ], [ 97, 65 ], [ 115, 65 ], [ 112, 66 ], [ 100, 66 ], [ 106, 67 ], [ 118, 67 ], [ 112, 69 ], [ 100, 69 ], [ 103, 70 ], [ 99, 72 ], [ 109, 83 ], [ 30, 84 ], [ 102, 91 ], [ 102, 94 ], [ 96, 97 ], [ 99, 100 ], [ 102, 103 ], [ 105, 106 ], [ 108, 109 ], [ 111, 112 ], [ 114, 115 ], [ 117, 118 ] ]
[ "n,a,b = map(int,input().split())\n\na_cnt,b_cnt,cnt = 0,0,0\ns = input()\ncnt = a+b\nfor i in range(n):\n if s[i] == \"a\":\n if a_cnt + b_cnt < cnt:\n a_cnt +=1#print(a_cnt + b_cnt)\n print(\"Yes\")\n else:\n print(\"No\")\n \n elif s[i] == \"b\":\n if a_cnt + b_cnt < cnt and b_cnt < b:\n b_cnt +=1\n print(\"Yes\")\n else:\n print(\"No\")\n \n elif s[i] == \"c\":\n print(\"No\")", "n,a,b = map(int,input().split())", "n", "map(int,input().split())", "map", "int", "input().split()", "().split", "()", "input", "split", "a", "b", "a_cnt,b_cnt,cnt = 0,0,0", "a_cnt", "0", "b_cnt", "0", "cnt", "0", "s = input()", "s", "input()", "input", "cnt = a+b", "cnt", "a+b", "a", "b", "for i in range(n):\n if s[i] == \"a\":\n if a_cnt + b_cnt < cnt:\n a_cnt +=1#print(a_cnt + b_cnt)\n print(\"Yes\")\n else:\n print(\"No\")\n \n elif s[i] == \"b\":\n if a_cnt + b_cnt < cnt and b_cnt < b:\n b_cnt +=1\n print(\"Yes\")\n else:\n print(\"No\")\n \n elif s[i] == \"c\":\n print(\"No\")", "i", "range(n)", "range", "n", "if s[i] == \"a\":\n if a_cnt + b_cnt < cnt:\n a_cnt +=1#print(a_cnt + b_cnt)\n print(\"Yes\")\n else:\n print(\"No\")\n \n elif s[i] == \"b\":\n if a_cnt + b_cnt < cnt and b_cnt < b:\n b_cnt +=1\n print(\"Yes\")\n else:\n print(\"No\")\n \n elif s[i] == \"c\":\n print(\"No\")", "s[i] == \"a\"", "s[i]", "s", "i", "\"a\"", "if a_cnt + b_cnt < cnt:\n a_cnt +=1#print(a_cnt + b_cnt)\n print(\"Yes\")\n else:\n print(\"No\")\n \n ", "a_cnt + b_cnt < cnt", "a_cnt + b_cnt", "a_cnt", "b_cnt", "cnt", "a_cnt +=1", "a_cnt", "1", "print(\"Yes\")", "print", "\"Yes\"", "print(\"No\")", "print", "\"No\"", "elif s[i] == \"b\":\n if a_cnt + b_cnt < cnt and b_cnt < b:\n b_cnt +=1\n print(\"Yes\")\n else:\n print(\"No\")\n \n ", "s[i] == \"b\"", "s[i]", "s", "i", "\"b\"", "if a_cnt + b_cnt < cnt and b_cnt < b:\n b_cnt +=1\n print(\"Yes\")\n else:\n print(\"No\")\n \n ", "a_cnt + b_cnt < cnt and b_cnt < b", "a_cnt + b_cnt < cnt", "a_cnt + b_cnt", "a_cnt", "b_cnt", "cnt", "b_cnt < b", "b_cnt", "b", "b_cnt +=1", "b_cnt", "1", "print(\"Yes\")", "print", "\"Yes\"", "print(\"No\")", "print", "\"No\"", "elif s[i] == \"c\":\n print(\"No\")", "s[i] == \"c\"", "s[i]", "s", "i", "\"c\"", "print(\"No\")", "print", "\"No\"", "a,b = map(int,input().split())", "map(int,input().split())", "a", "n,a,b = map(int,input().split())", "map(int,input().split())", "n", "a_cnt,b_cnt,cnt = 0,0,0", "0", "a_cnt", "b_cnt +=1", "1", "b_cnt", "b = map(int,input().split())", "map(int,input().split())", "b", "cnt = a+b", "a+b", "cnt", "s = input()", "input()", "s", "b_cnt,cnt = 0,0,0", "0", "b_cnt", "a_cnt +=1", "1", "a_cnt", "cnt = 0,0,0", "0", "cnt" ]
n,a,b = map(int,input().split()) a_cnt,b_cnt,cnt = 0,0,0 s = input() cnt = a+b for i in range(n): if s[i] == "a": if a_cnt + b_cnt < cnt: a_cnt +=1#print(a_cnt + b_cnt) print("Yes") else: print("No") elif s[i] == "b": if a_cnt + b_cnt < cnt and b_cnt < b: b_cnt +=1 print("Yes") else: print("No") elif s[i] == "c": print("No")
[ 7, 0, 13, 4, 13, 13, 4, 18, 4, 13, 13, 13, 13, 0, 13, 4, 13, 0, 13, 2, 13, 13, 0, 13, 17, 0, 13, 17, 28, 13, 4, 13, 13, 14, 2, 18, 13, 13, 17, 14, 40, 13, 13, 4, 13, 17, 0, 13, 17, 4, 13, 17, 14, 2, 18, 13, 13, 17, 14, 2, 40, 13, 13, 40, 13, 13, 4, 13, 17, 0, 13, 17, 0, 13, 17, 4, 13, 17, 4, 13, 17, 10, 2, 13, 10, 4, 13, 10, 17, 13, 10, 4, 13, 10, 17, 13, 10, 4, 13, 10, 17, 13, 10, 17, 13, 10, 4, 13, 10, 17, 13 ]
[ [ 97, 2 ], [ 97, 11 ], [ 97, 12 ], [ 106, 14 ], [ 82, 18 ], [ 98, 20 ], [ 86, 21 ], [ 94, 23 ], [ 88, 26 ], [ 30, 29 ], [ 92, 32 ], [ 107, 36 ], [ 29, 37 ], [ 95, 41 ], [ 110, 41 ], [ 101, 41 ], [ 83, 42 ], [ 100, 47 ], [ 107, 55 ], [ 29, 56 ], [ 95, 61 ], [ 110, 61 ], [ 101, 61 ], [ 83, 62 ], [ 89, 64 ], [ 104, 64 ], [ 86, 65 ], [ 109, 70 ], [ 103, 73 ], [ 82, 83 ], [ 97, 86 ], [ 88, 89 ], [ 97, 92 ], [ 94, 95 ], [ 97, 98 ], [ 100, 101 ], [ 103, 104 ], [ 106, 107 ], [ 109, 110 ] ]
[ "n,a,b = map(int,input().split())\ns = input()\nx = a + b\ny = 1\nz = 1\nfor i in range(n):\n if s[i] == 'a':\n if y <= x:\n print('Yes')\n y += 1\n else:\n print('No')\n elif s[i] == 'b':\n if y <= x and z <= b:\n print('Yes')\n y += 1\n z += 1\n else:\n print('No')\n else:\n print('No')", "n,a,b = map(int,input().split())", "n", "map(int,input().split())", "map", "int", "input().split()", "().split", "()", "input", "split", "a", "b", "s = input()", "s", "input()", "input", "x = a + b", "x", "a + b", "a", "b", "y = 1", "y", "1", "z = 1", "z", "1", "for i in range(n):\n if s[i] == 'a':\n if y <= x:\n print('Yes')\n y += 1\n else:\n print('No')\n elif s[i] == 'b':\n if y <= x and z <= b:\n print('Yes')\n y += 1\n z += 1\n else:\n print('No')\n else:\n print('No')", "i", "range(n)", "range", "n", "if s[i] == 'a':\n if y <= x:\n print('Yes')\n y += 1\n else:\n print('No')\n elif s[i] == 'b':\n if y <= x and z <= b:\n print('Yes')\n y += 1\n z += 1\n else:\n print('No')\n else:\n print('No')", "s[i] == 'a'", "s[i]", "s", "i", "'a'", "if y <= x:\n print('Yes')\n y += 1\n else:\n print('No')\n ", "y <= x", "y", "x", "print('Yes')", "print", "'Yes'", "y += 1", "y", "1", "print('No')", "print", "'No'", "elif s[i] == 'b':\n if y <= x and z <= b:\n print('Yes')\n y += 1\n z += 1\n else:\n print('No')\n ", "s[i] == 'b'", "s[i]", "s", "i", "'b'", "if y <= x and z <= b:\n print('Yes')\n y += 1\n z += 1\n else:\n print('No')\n ", "y <= x and z <= b", "y <= x", "y", "x", "z <= b", "z", "b", "print('Yes')", "print", "'Yes'", "y += 1", "y", "1", "z += 1", "z", "1", "print('No')", "print", "'No'", "print('No')", "print", "'No'", "x = a + b", "a + b", "x", "b = map(int,input().split())", "map(int,input().split())", "b", "z = 1", "1", "z", "n,a,b = map(int,input().split())", "map(int,input().split())", "n", "y = 1", "1", "y", "a,b = map(int,input().split())", "map(int,input().split())", "a", "y += 1", "1", "y", "z += 1", "1", "z", "s = input()", "input()", "s", "y += 1", "1", "y" ]
n,a,b = map(int,input().split()) s = input() x = a + b y = 1 z = 1 for i in range(n): if s[i] == 'a': if y <= x: print('Yes') y += 1 else: print('No') elif s[i] == 'b': if y <= x and z <= b: print('Yes') y += 1 z += 1 else: print('No') else: print('No')
[ 7, 0, 13, 4, 18, 4, 13, 13, 17, 13, 13, 0, 13, 4, 13, 13, 0, 13, 4, 13, 13, 0, 13, 4, 13, 13, 0, 13, 4, 13, 0, 13, 17, 0, 13, 17, 28, 13, 4, 13, 13, 14, 2, 18, 13, 13, 17, 14, 2, 13, 2, 13, 13, 4, 13, 17, 0, 13, 17, 4, 13, 17, 14, 2, 18, 13, 13, 17, 14, 2, 2, 13, 2, 13, 13, 2, 13, 13, 4, 13, 17, 0, 13, 17, 0, 13, 17, 4, 13, 17, 4, 13, 17, 10, 4, 13, 10, 17, 13, 10, 17, 13, 10, 4, 13, 10, 17, 13, 10, 4, 13, 10, 4, 13, 10, 4, 13, 10, 4, 13, 10, 17, 13, 10, 4, 13, 10, 17, 13 ]
[ [ 124, 2 ], [ 124, 9 ], [ 124, 10 ], [ 112, 12 ], [ 104, 15 ], [ 109, 17 ], [ 95, 20 ], [ 118, 22 ], [ 125, 25 ], [ 115, 27 ], [ 97, 31 ], [ 100, 34 ], [ 38, 37 ], [ 113, 40 ], [ 104, 40 ], [ 116, 44 ], [ 37, 45 ], [ 98, 49 ], [ 122, 49 ], [ 107, 49 ], [ 110, 51 ], [ 95, 51 ], [ 119, 52 ], [ 125, 52 ], [ 106, 57 ], [ 116, 65 ], [ 37, 66 ], [ 98, 71 ], [ 122, 71 ], [ 107, 71 ], [ 110, 73 ], [ 95, 73 ], [ 119, 74 ], [ 125, 74 ], [ 101, 76 ], [ 128, 76 ], [ 119, 77 ], [ 125, 77 ], [ 121, 82 ], [ 127, 85 ], [ 124, 95 ], [ 97, 98 ], [ 100, 101 ], [ 124, 104 ], [ 106, 107 ], [ 109, 110 ], [ 112, 113 ], [ 115, 116 ], [ 118, 119 ], [ 121, 122 ], [ 124, 125 ], [ 127, 128 ] ]
[ "n,a,b=input().split(\" \")\nn=int(n)\na=int(a)\nb=int(b)\nlst=input()\ncnt=0\ncnt2=0\nfor i in range(n):\n if lst[i]==\"a\":\n if cnt<a+b:\n print(\"Yes\")\n cnt+=1\n else:\n print(\"No\")\n elif lst[i]==\"b\":\n if cnt<a+b and cnt2<b:\n print(\"Yes\")\n cnt+=1\n cnt2+=1\n else:\n print(\"No\")\n else:\n print(\"No\")", "n,a,b=input().split(\" \")", "n", "input().split(\" \")", "().split", "()", "input", "split", "\" \"", "a", "b", "n=int(n)", "n", "int(n)", "int", "n", "a=int(a)", "a", "int(a)", "int", "a", "b=int(b)", "b", "int(b)", "int", "b", "lst=input()", "lst", "input()", "input", "cnt=0", "cnt", "0", "cnt2=0", "cnt2", "0", "for i in range(n):\n if lst[i]==\"a\":\n if cnt<a+b:\n print(\"Yes\")\n cnt+=1\n else:\n print(\"No\")\n elif lst[i]==\"b\":\n if cnt<a+b and cnt2<b:\n print(\"Yes\")\n cnt+=1\n cnt2+=1\n else:\n print(\"No\")\n else:\n print(\"No\")", "i", "range(n)", "range", "n", "if lst[i]==\"a\":\n if cnt<a+b:\n print(\"Yes\")\n cnt+=1\n else:\n print(\"No\")\n elif lst[i]==\"b\":\n if cnt<a+b and cnt2<b:\n print(\"Yes\")\n cnt+=1\n cnt2+=1\n else:\n print(\"No\")\n else:\n print(\"No\")", "lst[i]==\"a\"", "lst[i]", "lst", "i", "\"a\"", "if cnt<a+b:\n print(\"Yes\")\n cnt+=1\n else:\n print(\"No\")\n ", "cnt<a+b", "cnt", "a+b", "a", "b", "print(\"Yes\")", "print", "\"Yes\"", "cnt+=1", "cnt", "1", "print(\"No\")", "print", "\"No\"", "elif lst[i]==\"b\":\n if cnt<a+b and cnt2<b:\n print(\"Yes\")\n cnt+=1\n cnt2+=1\n else:\n print(\"No\")\n ", "lst[i]==\"b\"", "lst[i]", "lst", "i", "\"b\"", "if cnt<a+b and cnt2<b:\n print(\"Yes\")\n cnt+=1\n cnt2+=1\n else:\n print(\"No\")\n ", "cnt<a+b and cnt2<b", "cnt<a+b", "cnt", "a+b", "a", "b", "cnt2<b", "cnt2", "b", "print(\"Yes\")", "print", "\"Yes\"", "cnt+=1", "cnt", "1", "cnt2+=1", "cnt2", "1", "print(\"No\")", "print", "\"No\"", "print(\"No\")", "print", "\"No\"", "a,b=input().split(\" \")", "input().split(\" \")", "a", "cnt=0", "0", "cnt", "cnt2=0", "0", "cnt2", "n,a,b=input().split(\" \")", "input().split(\" \")", "n", "cnt+=1", "1", "cnt", "a=int(a)", "int(a)", "a", "n=int(n)", "int(n)", "n", "lst=input()", "input()", "lst", "b=int(b)", "int(b)", "b", "cnt+=1", "1", "cnt", "b=input().split(\" \")", "input().split(\" \")", "b", "cnt2+=1", "1", "cnt2" ]
n,a,b=input().split(" ") n=int(n) a=int(a) b=int(b) lst=input() cnt=0 cnt2=0 for i in range(n): if lst[i]=="a": if cnt<a+b: print("Yes") cnt+=1 else: print("No") elif lst[i]=="b": if cnt<a+b and cnt2<b: print("Yes") cnt+=1 cnt2+=1 else: print("No") else: print("No")
[ 7, 15, 13, 12, 13, 12, 13, 4, 18, 13, 13, 2, 17, 17, 0, 13, 4, 13, 13, 13, 0, 13, 4, 13, 4, 13, 0, 13, 17, 13, 17, 28, 13, 13, 14, 2, 13, 17, 4, 13, 17, 9, 14, 2, 13, 17, 14, 2, 2, 13, 13, 2, 13, 13, 4, 13, 17, 0, 13, 17, 4, 13, 17, 14, 2, 2, 2, 13, 13, 2, 13, 13, 2, 13, 13, 4, 13, 17, 0, 13, 17, 4, 13, 17, 10, 4, 13, 10, 17, 13, 10, 4, 13, 10, 17, 13, 10, 12, 13, 10, 17, 13, 10, 4, 13, 10, 4, 13, 10, 17, 13, 10, 12, 13 ]
[ [ 103, 15 ], [ 113, 17 ], [ 103, 18 ], [ 103, 19 ], [ 106, 21 ], [ 98, 25 ], [ 109, 27 ], [ 88, 29 ], [ 33, 32 ], [ 107, 32 ], [ 32, 36 ], [ 32, 44 ], [ 110, 49 ], [ 95, 49 ], [ 89, 50 ], [ 101, 50 ], [ 92, 52 ], [ 104, 53 ], [ 94, 58 ], [ 110, 67 ], [ 95, 67 ], [ 89, 68 ], [ 101, 68 ], [ 92, 70 ], [ 104, 71 ], [ 89, 73 ], [ 101, 73 ], [ 104, 74 ], [ 100, 79 ], [ 103, 86 ], [ 88, 89 ], [ 103, 92 ], [ 94, 95 ], [ 100, 101 ], [ 103, 104 ], [ 106, 107 ], [ 109, 110 ] ]
[ "import sys\ndef input(): return sys.stdin.readline().strip()\ndef mapint(): return map(int, input().split())\nsys.setrecursionlimit(10**9)\n\nN, A, B = mapint()\nS = list(input())\na, b = 0, 0\nfor s in S:\n if s=='c':\n print('No')\n continue\n if s=='a':\n if a+b<A+B:\n print('Yes')\n a += 1\n else:\n print('No')\n else:\n if a+b<A+B and b<B:\n print('Yes')\n b += 1\n else:\n print('No')", "import sys", "sys", "def input(): return sys.stdin.readline().strip()", "input", "def mapint(): return map(int, input().split())", "mapint", "sys.setrecursionlimit(10**9)", "sys.setrecursionlimit", "sys", "setrecursionlimit", "10**9", "10", "9", "N, A, B = mapint()", "N", "mapint()", "mapint", "A", "B", "S = list(input())", "S", "list(input())", "list", "input()", "input", "a, b = 0, 0", "a", "0", "b", "0", "for s in S:\n if s=='c':\n print('No')\n continue\n if s=='a':\n if a+b<A+B:\n print('Yes')\n a += 1\n else:\n print('No')\n else:\n if a+b<A+B and b<B:\n print('Yes')\n b += 1\n else:\n print('No')", "s", "S", "if s=='c':\n print('No')\n continue\n ", "s=='c'", "s", "'c'", "print('No')", "print", "'No'", "continue", "if s=='a':\n if a+b<A+B:\n print('Yes')\n a += 1\n else:\n print('No')\n else:\n if a+b<A+B and b<B:\n print('Yes')\n b += 1\n else:\n print('No')", "s=='a'", "s", "'a'", "if a+b<A+B:\n print('Yes')\n a += 1\n else:\n print('No')\n ", "a+b<A+B", "a+b", "a", "b", "A+B", "A", "B", "print('Yes')", "print", "'Yes'", "a += 1", "a", "1", "print('No')", "print", "'No'", "if a+b<A+B and b<B:\n print('Yes')\n b += 1\n else:\n print('No')", "a+b<A+B and b<B", "a+b<A+B", "a+b", "a", "b", "A+B", "A", "B", "b<B", "b", "B", "print('Yes')", "print", "'Yes'", "b += 1", "b", "1", "print('No')", "print", "'No'", "N, A, B = mapint()", "mapint()", "N", "b = 0, 0", "0", "b", "A, B = mapint()", "mapint()", "A", "a += 1", "1", "a", "def input(): return sys.stdin.readline().strip()", "def input(): return sys.stdin.readline().strip()", "input", "b += 1", "1", "b", "B = mapint()", "mapint()", "B", "S = list(input())", "list(input())", "S", "a, b = 0, 0", "0", "a", "def mapint(): return map(int, input().split())", "def mapint(): return map(int, input().split())", "mapint" ]
import sys def input(): return sys.stdin.readline().strip() def mapint(): return map(int, input().split()) sys.setrecursionlimit(10**9) N, A, B = mapint() S = list(input()) a, b = 0, 0 for s in S: if s=='c': print('No') continue if s=='a': if a+b<A+B: print('Yes') a += 1 else: print('No') else: if a+b<A+B and b<B: print('Yes') b += 1 else: print('No')
[ 7, 0, 13, 4, 13, 13, 4, 18, 4, 13, 13, 13, 13, 0, 13, 4, 13, 4, 13, 0, 13, 17, 0, 13, 17, 28, 13, 4, 13, 13, 0, 13, 18, 13, 13, 14, 2, 2, 13, 17, 2, 13, 2, 13, 13, 4, 13, 17, 0, 13, 17, 14, 2, 2, 2, 13, 17, 2, 13, 2, 13, 13, 2, 13, 13, 4, 13, 17, 0, 13, 17, 0, 13, 17, 4, 13, 17, 10, 17, 13, 10, 4, 13, 10, 18, 13, 10, 17, 13, 10, 4, 13, 10, 4, 13, 10, 17, 13, 10, 17, 13, 10, 4, 13, 10, 17, 13 ]
[ [ 102, 2 ], [ 102, 11 ], [ 102, 12 ], [ 81, 14 ], [ 99, 20 ], [ 96, 23 ], [ 27, 26 ], [ 91, 29 ], [ 84, 31 ], [ 82, 33 ], [ 26, 34 ], [ 85, 38 ], [ 100, 41 ], [ 106, 41 ], [ 79, 41 ], [ 94, 43 ], [ 103, 44 ], [ 78, 49 ], [ 85, 55 ], [ 100, 58 ], [ 106, 58 ], [ 79, 58 ], [ 94, 60 ], [ 103, 61 ], [ 97, 63 ], [ 88, 63 ], [ 103, 64 ], [ 87, 69 ], [ 105, 72 ], [ 78, 79 ], [ 81, 82 ], [ 84, 85 ], [ 87, 88 ], [ 102, 91 ], [ 102, 94 ], [ 96, 97 ], [ 99, 100 ], [ 102, 103 ], [ 105, 106 ] ]
[ "N,A,B = map(int,input().split())\nS = str(input())\nnow = 0\nkaigai = 0\nfor i in range(N):\n temp = S[i]\n if temp == \"a\" and now < A+B:\n print(\"Yes\")\n now +=1\n elif temp == \"b\" and now < A+B and kaigai < B:\n print(\"Yes\")\n kaigai += 1\n now += 1\n else:\n print(\"No\")", "N,A,B = map(int,input().split())", "N", "map(int,input().split())", "map", "int", "input().split()", "().split", "()", "input", "split", "A", "B", "S = str(input())", "S", "str(input())", "str", "input()", "input", "now = 0", "now", "0", "kaigai = 0", "kaigai", "0", "for i in range(N):\n temp = S[i]\n if temp == \"a\" and now < A+B:\n print(\"Yes\")\n now +=1\n elif temp == \"b\" and now < A+B and kaigai < B:\n print(\"Yes\")\n kaigai += 1\n now += 1\n else:\n print(\"No\")", "i", "range(N)", "range", "N", "temp = S[i]", "temp", "S[i]", "S", "i", "if temp == \"a\" and now < A+B:\n print(\"Yes\")\n now +=1\n elif temp == \"b\" and now < A+B and kaigai < B:\n print(\"Yes\")\n kaigai += 1\n now += 1\n else:\n print(\"No\")", "temp == \"a\" and now < A+B", "temp == \"a\"", "temp", "\"a\"", "now < A+B", "now", "A+B", "A", "B", "print(\"Yes\")", "print", "\"Yes\"", "now +=1", "now", "1", "elif temp == \"b\" and now < A+B and kaigai < B:\n print(\"Yes\")\n kaigai += 1\n now += 1\n ", "temp == \"b\" and now < A+B and kaigai < B", "temp == \"b\" and now < A+B", "temp == \"b\"", "temp", "\"b\"", "now < A+B", "now", "A+B", "A", "B", "kaigai < B", "kaigai", "B", "print(\"Yes\")", "print", "\"Yes\"", "kaigai += 1", "kaigai", "1", "now += 1", "now", "1", "print(\"No\")", "print", "\"No\"", "now +=1", "1", "now", "S = str(input())", "str(input())", "S", "temp = S[i]", "S[i]", "temp", "kaigai += 1", "1", "kaigai", "N,A,B = map(int,input().split())", "map(int,input().split())", "N", "A,B = map(int,input().split())", "map(int,input().split())", "A", "kaigai = 0", "0", "kaigai", "now = 0", "0", "now", "B = map(int,input().split())", "map(int,input().split())", "B", "now += 1", "1", "now" ]
N,A,B = map(int,input().split()) S = str(input()) now = 0 kaigai = 0 for i in range(N): temp = S[i] if temp == "a" and now < A+B: print("Yes") now +=1 elif temp == "b" and now < A+B and kaigai < B: print("Yes") kaigai += 1 now += 1 else: print("No")
[ 7, 0, 13, 4, 13, 13, 4, 18, 4, 13, 13, 13, 13, 0, 13, 4, 13, 0, 13, 17, 0, 13, 17, 28, 13, 13, 14, 2, 2, 13, 17, 2, 2, 13, 13, 2, 13, 13, 4, 13, 17, 0, 13, 17, 14, 2, 2, 2, 13, 17, 2, 2, 13, 13, 2, 13, 13, 2, 13, 13, 4, 13, 17, 0, 13, 17, 4, 13, 17, 10, 17, 13, 10, 4, 13, 10, 4, 13, 10, 17, 13, 10, 17, 13, 10, 17, 13, 10, 4, 13, 10, 4, 13 ]
[ [ 91, 2 ], [ 91, 11 ], [ 91, 12 ], [ 88, 14 ], [ 79, 18 ], [ 85, 21 ], [ 25, 24 ], [ 89, 24 ], [ 24, 29 ], [ 80, 33 ], [ 83, 33 ], [ 86, 34 ], [ 71, 34 ], [ 74, 36 ], [ 77, 37 ], [ 82, 42 ], [ 24, 48 ], [ 80, 52 ], [ 83, 52 ], [ 86, 53 ], [ 71, 53 ], [ 74, 55 ], [ 77, 56 ], [ 86, 58 ], [ 71, 58 ], [ 77, 59 ], [ 70, 64 ], [ 70, 71 ], [ 91, 74 ], [ 91, 77 ], [ 79, 80 ], [ 82, 83 ], [ 85, 86 ], [ 88, 89 ], [ 91, 92 ] ]
[ "n, a, b = map(int,input().split())\ns = input()\na_p = 0\nb_p = 0\n \nfor i in s:\n if i == 'a' and a_p + b_p < a + b:\n print('Yes')\n a_p += 1\n elif i == 'b' and a_p + b_p < a + b and b_p < b:\n print('Yes')\n b_p += 1\n else:\n print('No')", "n, a, b = map(int,input().split())", "n", "map(int,input().split())", "map", "int", "input().split()", "().split", "()", "input", "split", "a", "b", "s = input()", "s", "input()", "input", "a_p = 0", "a_p", "0", "b_p = 0", "b_p", "0", "for i in s:\n if i == 'a' and a_p + b_p < a + b:\n print('Yes')\n a_p += 1\n elif i == 'b' and a_p + b_p < a + b and b_p < b:\n print('Yes')\n b_p += 1\n else:\n print('No')", "i", "s", "if i == 'a' and a_p + b_p < a + b:\n print('Yes')\n a_p += 1\n elif i == 'b' and a_p + b_p < a + b and b_p < b:\n print('Yes')\n b_p += 1\n else:\n print('No')", "i == 'a' and a_p + b_p < a + b", "i == 'a'", "i", "'a'", "a_p + b_p < a + b", "a_p + b_p", "a_p", "b_p", "a + b", "a", "b", "print('Yes')", "print", "'Yes'", "a_p += 1", "a_p", "1", "elif i == 'b' and a_p + b_p < a + b and b_p < b:\n print('Yes')\n b_p += 1\n ", "i == 'b' and a_p + b_p < a + b and b_p < b", "i == 'b' and a_p + b_p < a + b", "i == 'b'", "i", "'b'", "a_p + b_p < a + b", "a_p + b_p", "a_p", "b_p", "a + b", "a", "b", "b_p < b", "b_p", "b", "print('Yes')", "print", "'Yes'", "b_p += 1", "b_p", "1", "print('No')", "print", "'No'", "b_p += 1", "1", "b_p", "a, b = map(int,input().split())", "map(int,input().split())", "a", "b = map(int,input().split())", "map(int,input().split())", "b", "a_p = 0", "0", "a_p", "a_p += 1", "1", "a_p", "b_p = 0", "0", "b_p", "s = input()", "input()", "s", "n, a, b = map(int,input().split())", "map(int,input().split())", "n" ]
n, a, b = map(int,input().split()) s = input() a_p = 0 b_p = 0 for i in s: if i == 'a' and a_p + b_p < a + b: print('Yes') a_p += 1 elif i == 'b' and a_p + b_p < a + b and b_p < b: print('Yes') b_p += 1 else: print('No')
[ 7, 0, 13, 4, 13, 13, 4, 18, 4, 13, 13, 13, 13, 0, 13, 17, 13, 17, 0, 13, 4, 13, 28, 13, 13, 0, 13, 17, 14, 2, 13, 17, 14, 2, 13, 2, 13, 13, 0, 13, 17, 4, 13, 17, 0, 13, 17, 14, 2, 13, 17, 14, 2, 2, 13, 2, 13, 13, 2, 13, 13, 0, 13, 17, 0, 13, 17, 4, 13, 17, 0, 13, 17, 14, 2, 13, 17, 4, 13, 17, 10, 17, 13, 10, 17, 13, 10, 17, 13, 10, 17, 13, 10, 17, 13, 10, 4, 13, 10, 17, 13, 10, 4, 13, 10, 4, 13, 10, 17, 13, 10, 4, 13, 10, 17, 13 ]
[ [ 111, 2 ], [ 111, 11 ], [ 111, 12 ], [ 114, 14 ], [ 87, 16 ], [ 105, 19 ], [ 24, 23 ], [ 106, 23 ], [ 90, 26 ], [ 23, 30 ], [ 115, 34 ], [ 94, 34 ], [ 100, 34 ], [ 97, 36 ], [ 103, 37 ], [ 99, 39 ], [ 108, 45 ], [ 23, 49 ], [ 115, 54 ], [ 94, 54 ], [ 100, 54 ], [ 97, 56 ], [ 103, 57 ], [ 88, 59 ], [ 85, 59 ], [ 103, 60 ], [ 93, 62 ], [ 84, 65 ], [ 81, 71 ], [ 82, 75 ], [ 109, 75 ], [ 91, 75 ], [ 81, 82 ], [ 84, 85 ], [ 87, 88 ], [ 90, 91 ], [ 93, 94 ], [ 111, 97 ], [ 99, 100 ], [ 111, 103 ], [ 105, 106 ], [ 108, 109 ], [ 111, 112 ], [ 114, 115 ] ]
[ "n,a,b=map(int,input().split())\nc,d=0,0\ns=input()\nfor i in s:\n f=0\n if i=='a':\n if c<a+b:\n c+=1\n print('Yes')\n f=1\n elif i=='b':\n if c<a+b and d<b:\n c+=1\n d+=1\n print('Yes')\n f=1\n if f==0:\n print('No')", "n,a,b=map(int,input().split())", "n", "map(int,input().split())", "map", "int", "input().split()", "().split", "()", "input", "split", "a", "b", "c,d=0,0", "c", "0", "d", "0", "s=input()", "s", "input()", "input", "for i in s:\n f=0\n if i=='a':\n if c<a+b:\n c+=1\n print('Yes')\n f=1\n elif i=='b':\n if c<a+b and d<b:\n c+=1\n d+=1\n print('Yes')\n f=1\n if f==0:\n print('No')", "i", "s", "f=0", "f", "0", "if i=='a':\n if c<a+b:\n c+=1\n print('Yes')\n f=1\n elif i=='b':\n if c<a+b and d<b:\n c+=1\n d+=1\n print('Yes')\n f=1\n ", "i=='a'", "i", "'a'", "if c<a+b:\n c+=1\n print('Yes')\n f=1\n ", "c<a+b", "c", "a+b", "a", "b", "c+=1", "c", "1", "print('Yes')", "print", "'Yes'", "f=1", "f", "1", "elif i=='b':\n if c<a+b and d<b:\n c+=1\n d+=1\n print('Yes')\n f=1\n ", "i=='b'", "i", "'b'", "if c<a+b and d<b:\n c+=1\n d+=1\n print('Yes')\n f=1\n ", "c<a+b and d<b", "c<a+b", "c", "a+b", "a", "b", "d<b", "d", "b", "c+=1", "c", "1", "d+=1", "d", "1", "print('Yes')", "print", "'Yes'", "f=1", "f", "1", "if f==0:\n print('No')", "f==0", "f", "0", "print('No')", "print", "'No'", "f=1", "1", "f", "d+=1", "1", "d", "d=0,0", "0", "d", "f=0", "0", "f", "c+=1", "1", "c", "a,b=map(int,input().split())", "map(int,input().split())", "a", "c+=1", "1", "c", "b=map(int,input().split())", "map(int,input().split())", "b", "s=input()", "input()", "s", "f=1", "1", "f", "n,a,b=map(int,input().split())", "map(int,input().split())", "n", "c,d=0,0", "0", "c" ]
n,a,b=map(int,input().split()) c,d=0,0 s=input() for i in s: f=0 if i=='a': if c<a+b: c+=1 print('Yes') f=1 elif i=='b': if c<a+b and d<b: c+=1 d+=1 print('Yes') f=1 if f==0: print('No')
[ 7, 0, 13, 4, 13, 13, 4, 18, 4, 13, 13, 13, 13, 0, 13, 4, 13, 0, 13, 17, 13, 17, 28, 13, 4, 13, 13, 0, 13, 18, 13, 13, 14, 2, 13, 17, 14, 2, 2, 13, 13, 2, 13, 13, 4, 13, 17, 0, 13, 17, 4, 13, 17, 14, 2, 13, 17, 14, 2, 2, 2, 13, 13, 2, 13, 13, 2, 13, 13, 4, 13, 17, 0, 13, 17, 4, 13, 17, 4, 13, 17, 10, 4, 13, 10, 18, 13, 10, 4, 13, 10, 17, 13, 10, 17, 13, 10, 4, 13, 10, 4, 13, 10, 17, 13, 10, 17, 13 ]
[ [ 100, 2 ], [ 100, 11 ], [ 100, 12 ], [ 88, 14 ], [ 106, 18 ], [ 91, 20 ], [ 24, 23 ], [ 83, 26 ], [ 85, 28 ], [ 89, 30 ], [ 23, 31 ], [ 86, 34 ], [ 107, 39 ], [ 95, 39 ], [ 92, 40 ], [ 104, 40 ], [ 101, 42 ], [ 98, 43 ], [ 94, 48 ], [ 86, 55 ], [ 107, 61 ], [ 95, 61 ], [ 92, 62 ], [ 104, 62 ], [ 101, 64 ], [ 98, 65 ], [ 92, 67 ], [ 104, 67 ], [ 98, 68 ], [ 103, 73 ], [ 100, 83 ], [ 85, 86 ], [ 88, 89 ], [ 91, 92 ], [ 94, 95 ], [ 100, 98 ], [ 100, 101 ], [ 103, 104 ], [ 106, 107 ] ]
[ "# B - Qualification simulator\nN,A,B = map(int,input().split())\nS = input()\ndomestic,foreign = 0,0\n\nfor i in range(N):\n s = S[i]\n if s=='a':\n if domestic+foreign<A+B:\n print('Yes')\n domestic += 1\n else:\n print('No')\n elif s=='b':\n if domestic+foreign<A+B and foreign<B:\n print('Yes')\n foreign += 1\n else:\n print('No')\n else:\n print('No')", "N,A,B = map(int,input().split())", "N", "map(int,input().split())", "map", "int", "input().split()", "().split", "()", "input", "split", "A", "B", "S = input()", "S", "input()", "input", "domestic,foreign = 0,0", "domestic", "0", "foreign", "0", "for i in range(N):\n s = S[i]\n if s=='a':\n if domestic+foreign<A+B:\n print('Yes')\n domestic += 1\n else:\n print('No')\n elif s=='b':\n if domestic+foreign<A+B and foreign<B:\n print('Yes')\n foreign += 1\n else:\n print('No')\n else:\n print('No')", "i", "range(N)", "range", "N", "s = S[i]", "s", "S[i]", "S", "i", "if s=='a':\n if domestic+foreign<A+B:\n print('Yes')\n domestic += 1\n else:\n print('No')\n elif s=='b':\n if domestic+foreign<A+B and foreign<B:\n print('Yes')\n foreign += 1\n else:\n print('No')\n else:\n print('No')", "s=='a'", "s", "'a'", "if domestic+foreign<A+B:\n print('Yes')\n domestic += 1\n else:\n print('No')\n ", "domestic+foreign<A+B", "domestic+foreign", "domestic", "foreign", "A+B", "A", "B", "print('Yes')", "print", "'Yes'", "domestic += 1", "domestic", "1", "print('No')", "print", "'No'", "elif s=='b':\n if domestic+foreign<A+B and foreign<B:\n print('Yes')\n foreign += 1\n else:\n print('No')\n ", "s=='b'", "s", "'b'", "if domestic+foreign<A+B and foreign<B:\n print('Yes')\n foreign += 1\n else:\n print('No')\n ", "domestic+foreign<A+B and foreign<B", "domestic+foreign<A+B", "domestic+foreign", "domestic", "foreign", "A+B", "A", "B", "foreign<B", "foreign", "B", "print('Yes')", "print", "'Yes'", "foreign += 1", "foreign", "1", "print('No')", "print", "'No'", "print('No')", "print", "'No'", "N,A,B = map(int,input().split())", "map(int,input().split())", "N", "s = S[i]", "S[i]", "s", "S = input()", "input()", "S", "foreign = 0,0", "0", "foreign", "domestic += 1", "1", "domestic", "B = map(int,input().split())", "map(int,input().split())", "B", "A,B = map(int,input().split())", "map(int,input().split())", "A", "foreign += 1", "1", "foreign", "domestic,foreign = 0,0", "0", "domestic" ]
# B - Qualification simulator N,A,B = map(int,input().split()) S = input() domestic,foreign = 0,0 for i in range(N): s = S[i] if s=='a': if domestic+foreign<A+B: print('Yes') domestic += 1 else: print('No') elif s=='b': if domestic+foreign<A+B and foreign<B: print('Yes') foreign += 1 else: print('No') else: print('No')
[ 7, 12, 13, 0, 13, 4, 13, 13, 4, 18, 4, 13, 13, 13, 13, 0, 13, 4, 13, 0, 13, 17, 0, 13, 17, 0, 13, 17, 28, 13, 13, 14, 2, 13, 2, 13, 13, 14, 2, 13, 17, 0, 13, 17, 4, 13, 17, 14, 2, 13, 17, 14, 40, 13, 13, 0, 13, 17, 0, 13, 17, 4, 13, 17, 0, 13, 17, 4, 13, 17, 14, 2, 13, 17, 4, 13, 17, 4, 13, 17, 14, 2, 13, 17, 4, 13, 10, 12, 13 ]
[ [ 5, 4 ], [ 5, 13 ], [ 5, 14 ], [ 17, 16 ], [ 21, 20 ], [ 24, 23 ], [ 27, 26 ], [ 30, 29 ], [ 16, 29 ], [ 20, 33 ], [ 59, 33 ], [ 42, 33 ], [ 13, 35 ], [ 14, 36 ], [ 29, 39 ], [ 43, 42 ], [ 29, 49 ], [ 23, 53 ], [ 56, 53 ], [ 14, 54 ], [ 57, 56 ], [ 60, 59 ], [ 66, 65 ], [ 29, 72 ], [ 88, 85 ] ]
[ "# -*- coding: utf-8 -*-\ndef main():\n N, A, B = map(int, input().split())\n S = input()\n kakutei = 0\n kaigai_rank = 1\n check = False\n for s in S:\n if kakutei < A+B:\n if s == 'a':\n kakutei += 1\n print('Yes')\n elif s == 'b':\n if kaigai_rank <= B:\n kaigai_rank += 1\n kakutei += 1\n print('Yes')\n else:\n check = True\n print('No')\n elif s == 'c':\n print('No')\n # print('kakutei: ' + str(kakutei))\n # print('rank: ' + str(kaigai_rank))\n else:\n print('No')\n \nif __name__ == '__main__':\n main()\n\n# No\n# Yes\n# Yes\n# Yes\n# Yes\n# No\n# Yes\n# Yes\n# No\n# Yes\n# No\n# No", "def main():\n N, A, B = map(int, input().split())\n S = input()\n kakutei = 0\n kaigai_rank = 1\n check = False\n for s in S:\n if kakutei < A+B:\n if s == 'a':\n kakutei += 1\n print('Yes')\n elif s == 'b':\n if kaigai_rank <= B:\n kaigai_rank += 1\n kakutei += 1\n print('Yes')\n else:\n check = True\n print('No')\n elif s == 'c':\n print('No')\n # print('kakutei: ' + str(kakutei))\n # print('rank: ' + str(kaigai_rank))\n else:\n print('No')\n ", "main", "N, A, B = map(int, input().split())", "N", "map(int, input().split())", "map", "int", "input().split()", "().split", "()", "input", "split", "A", "B", "S = input()", "S", "input()", "input", "kakutei = 0", "kakutei", "0", "kaigai_rank = 1", "kaigai_rank", "1", "check = False", "check", "False", "for s in S:\n if kakutei < A+B:\n if s == 'a':\n kakutei += 1\n print('Yes')\n elif s == 'b':\n if kaigai_rank <= B:\n kaigai_rank += 1\n kakutei += 1\n print('Yes')\n else:\n check = True\n print('No')\n elif s == 'c':\n print('No')\n # print('kakutei: ' + str(kakutei))\n # print('rank: ' + str(kaigai_rank))\n else:\n print('No')\n ", "s", "S", "if kakutei < A+B:\n if s == 'a':\n kakutei += 1\n print('Yes')\n elif s == 'b':\n if kaigai_rank <= B:\n kaigai_rank += 1\n kakutei += 1\n print('Yes')\n else:\n check = True\n print('No')\n elif s == 'c':\n print('No')\n # print('kakutei: ' + str(kakutei))\n # print('rank: ' + str(kaigai_rank))\n else:\n print('No')\n ", "kakutei < A+B", "kakutei", "A+B", "A", "B", "if s == 'a':\n kakutei += 1\n print('Yes')\n elif s == 'b':\n if kaigai_rank <= B:\n kaigai_rank += 1\n kakutei += 1\n print('Yes')\n else:\n check = True\n print('No')\n elif s == 'c':\n print('No')\n # print('kakutei: ' + str(kakutei))\n # print('rank: ' + str(kaigai_rank))\n ", "s == 'a'", "s", "'a'", "kakutei += 1", "kakutei", "1", "print('Yes')", "print", "'Yes'", "elif s == 'b':\n if kaigai_rank <= B:\n kaigai_rank += 1\n kakutei += 1\n print('Yes')\n else:\n check = True\n print('No')\n ", "s == 'b'", "s", "'b'", "if kaigai_rank <= B:\n kaigai_rank += 1\n kakutei += 1\n print('Yes')\n else:\n check = True\n print('No')\n ", "kaigai_rank <= B", "kaigai_rank", "B", "kaigai_rank += 1", "kaigai_rank", "1", "kakutei += 1", "kakutei", "1", "print('Yes')", "print", "'Yes'", "check = True", "check", "True", "print('No')", "print", "'No'", "elif s == 'c':\n print('No')\n # print('kakutei: ' + str(kakutei))\n # print('rank: ' + str(kaigai_rank))\n ", "s == 'c'", "s", "'c'", "print('No')", "print", "'No'", "print('No')", "print", "'No'", "if __name__ == '__main__':\n main()\n\n# No\n# Yes\n# Yes\n# Yes\n# Yes\n# No\n# Yes\n# Yes\n# No\n# Yes\n# No\n# No", "__name__ == '__main__'", "__name__", "'__main__'", "main()", "main", "def main():\n N, A, B = map(int, input().split())\n S = input()\n kakutei = 0\n kaigai_rank = 1\n check = False\n for s in S:\n if kakutei < A+B:\n if s == 'a':\n kakutei += 1\n print('Yes')\n elif s == 'b':\n if kaigai_rank <= B:\n kaigai_rank += 1\n kakutei += 1\n print('Yes')\n else:\n check = True\n print('No')\n elif s == 'c':\n print('No')\n # print('kakutei: ' + str(kakutei))\n # print('rank: ' + str(kaigai_rank))\n else:\n print('No')\n ", "def main():\n N, A, B = map(int, input().split())\n S = input()\n kakutei = 0\n kaigai_rank = 1\n check = False\n for s in S:\n if kakutei < A+B:\n if s == 'a':\n kakutei += 1\n print('Yes')\n elif s == 'b':\n if kaigai_rank <= B:\n kaigai_rank += 1\n kakutei += 1\n print('Yes')\n else:\n check = True\n print('No')\n elif s == 'c':\n print('No')\n # print('kakutei: ' + str(kakutei))\n # print('rank: ' + str(kaigai_rank))\n else:\n print('No')\n ", "main" ]
# -*- coding: utf-8 -*- def main(): N, A, B = map(int, input().split()) S = input() kakutei = 0 kaigai_rank = 1 check = False for s in S: if kakutei < A+B: if s == 'a': kakutei += 1 print('Yes') elif s == 'b': if kaigai_rank <= B: kaigai_rank += 1 kakutei += 1 print('Yes') else: check = True print('No') elif s == 'c': print('No') # print('kakutei: ' + str(kakutei)) # print('rank: ' + str(kaigai_rank)) else: print('No') if __name__ == '__main__': main() # No # Yes # Yes # Yes # Yes # No # Yes # Yes # No # Yes # No # No
[ 7, 15, 13, 0, 13, 18, 18, 13, 13, 13, 0, 13, 2, 2, 17, 17, 17, 0, 13, 4, 13, 17, 4, 18, 13, 13, 2, 17, 17, 12, 13, 0, 13, 4, 13, 13, 4, 18, 4, 13, 13, 13, 13, 0, 13, 4, 13, 0, 13, 17, 0, 13, 17, 28, 13, 13, 0, 13, 17, 14, 2, 13, 17, 14, 2, 2, 13, 13, 2, 13, 13, 0, 13, 17, 0, 13, 17, 14, 2, 13, 17, 14, 2, 2, 13, 13, 2, 13, 13, 14, 2, 13, 13, 0, 13, 17, 0, 13, 17, 4, 13, 8, 13, 17, 17, 14, 2, 13, 17, 4, 13, 10, 18, 13, 10, 2, 13, 10, 4, 13, 10, 12, 13 ]
[ [ 112, 4 ], [ 115, 11 ], [ 118, 18 ], [ 33, 32 ], [ 113, 39 ], [ 33, 41 ], [ 33, 42 ], [ 45, 44 ], [ 49, 48 ], [ 52, 51 ], [ 55, 54 ], [ 44, 54 ], [ 58, 57 ], [ 54, 61 ], [ 48, 66 ], [ 72, 66 ], [ 51, 67 ], [ 94, 67 ], [ 41, 69 ], [ 42, 70 ], [ 73, 72 ], [ 76, 75 ], [ 54, 79 ], [ 48, 84 ], [ 72, 84 ], [ 51, 85 ], [ 94, 85 ], [ 41, 87 ], [ 42, 88 ], [ 51, 91 ], [ 94, 91 ], [ 42, 92 ], [ 95, 94 ], [ 98, 97 ], [ 97, 102 ], [ 75, 102 ], [ 57, 102 ], [ 122, 110 ], [ 112, 113 ], [ 115, 116 ], [ 118, 119 ] ]
[ "import sys\n\nreadline = sys.stdin.readline\nMOD = 10 ** 9 + 7\nINF = float('INF')\nsys.setrecursionlimit(10 ** 5)\n\n\ndef main():\n N, A, B = map(int, readline().split())\n S = input()\n cnt_a = 0\n cnt_b = 0\n\n for char in S:\n flag = False\n if char == \"a\":\n if cnt_a + cnt_b < A + B:\n cnt_a += 1\n flag = True\n elif char == \"b\":\n if cnt_a + cnt_b < A + B:\n if cnt_b < B:\n cnt_b += 1\n flag = True\n print(\"Yes\" if flag else \"No\")\n\n\nif __name__ == '__main__':\n main()", "import sys", "sys", "readline = sys.stdin.readline", "readline", "sys.stdin.readline", "sys.stdin", "sys", "stdin", "readline", "MOD = 10 ** 9 + 7", "MOD", "10 ** 9 + 7", "10 ** 9", "10", "9", "7", "INF = float('INF')", "INF", "float('INF')", "float", "'INF'", "sys.setrecursionlimit(10 ** 5)", "sys.setrecursionlimit", "sys", "setrecursionlimit", "10 ** 5", "10", "5", "def main():\n N, A, B = map(int, readline().split())\n S = input()\n cnt_a = 0\n cnt_b = 0\n\n for char in S:\n flag = False\n if char == \"a\":\n if cnt_a + cnt_b < A + B:\n cnt_a += 1\n flag = True\n elif char == \"b\":\n if cnt_a + cnt_b < A + B:\n if cnt_b < B:\n cnt_b += 1\n flag = True\n print(\"Yes\" if flag else \"No\")", "main", "N, A, B = map(int, readline().split())", "N", "map(int, readline().split())", "map", "int", "readline().split()", "().split", "()", "readline", "split", "A", "B", "S = input()", "S", "input()", "input", "cnt_a = 0", "cnt_a", "0", "cnt_b = 0", "cnt_b", "0", "for char in S:\n flag = False\n if char == \"a\":\n if cnt_a + cnt_b < A + B:\n cnt_a += 1\n flag = True\n elif char == \"b\":\n if cnt_a + cnt_b < A + B:\n if cnt_b < B:\n cnt_b += 1\n flag = True\n print(\"Yes\" if flag else \"No\")", "char", "S", "flag = False", "flag", "False", "if char == \"a\":\n if cnt_a + cnt_b < A + B:\n cnt_a += 1\n flag = True\n elif char == \"b\":\n if cnt_a + cnt_b < A + B:\n if cnt_b < B:\n cnt_b += 1\n flag = True\n ", "char == \"a\"", "char", "\"a\"", "if cnt_a + cnt_b < A + B:\n cnt_a += 1\n flag = True\n ", "cnt_a + cnt_b < A + B", "cnt_a + cnt_b", "cnt_a", "cnt_b", "A + B", "A", "B", "cnt_a += 1", "cnt_a", "1", "flag = True", "flag", "True", "elif char == \"b\":\n if cnt_a + cnt_b < A + B:\n if cnt_b < B:\n cnt_b += 1\n flag = True\n ", "char == \"b\"", "char", "\"b\"", "if cnt_a + cnt_b < A + B:\n if cnt_b < B:\n cnt_b += 1\n flag = True\n ", "cnt_a + cnt_b < A + B", "cnt_a + cnt_b", "cnt_a", "cnt_b", "A + B", "A", "B", "if cnt_b < B:\n cnt_b += 1\n flag = True\n ", "cnt_b < B", "cnt_b", "B", "cnt_b += 1", "cnt_b", "1", "flag = True", "flag", "True", "print(\"Yes\" if flag else \"No\")", "print", "\"Yes\" if flag else \"No\"", "flag", "\"Yes\"", "\"No\"", "if __name__ == '__main__':\n main()", "__name__ == '__main__'", "__name__", "'__main__'", "main()", "main", "readline = sys.stdin.readline", "sys.stdin.readline", "readline", "MOD = 10 ** 9 + 7", "10 ** 9 + 7", "MOD", "INF = float('INF')", "float('INF')", "INF", "def main():\n N, A, B = map(int, readline().split())\n S = input()\n cnt_a = 0\n cnt_b = 0\n\n for char in S:\n flag = False\n if char == \"a\":\n if cnt_a + cnt_b < A + B:\n cnt_a += 1\n flag = True\n elif char == \"b\":\n if cnt_a + cnt_b < A + B:\n if cnt_b < B:\n cnt_b += 1\n flag = True\n print(\"Yes\" if flag else \"No\")", "def main():\n N, A, B = map(int, readline().split())\n S = input()\n cnt_a = 0\n cnt_b = 0\n\n for char in S:\n flag = False\n if char == \"a\":\n if cnt_a + cnt_b < A + B:\n cnt_a += 1\n flag = True\n elif char == \"b\":\n if cnt_a + cnt_b < A + B:\n if cnt_b < B:\n cnt_b += 1\n flag = True\n print(\"Yes\" if flag else \"No\")", "main" ]
import sys readline = sys.stdin.readline MOD = 10 ** 9 + 7 INF = float('INF') sys.setrecursionlimit(10 ** 5) def main(): N, A, B = map(int, readline().split()) S = input() cnt_a = 0 cnt_b = 0 for char in S: flag = False if char == "a": if cnt_a + cnt_b < A + B: cnt_a += 1 flag = True elif char == "b": if cnt_a + cnt_b < A + B: if cnt_b < B: cnt_b += 1 flag = True print("Yes" if flag else "No") if __name__ == '__main__': main()
[ 7, 0, 13, 4, 13, 13, 4, 18, 4, 13, 13, 13, 13, 0, 13, 4, 13, 0, 13, 17, 0, 13, 17, 28, 13, 13, 14, 2, 13, 39, 17, 17, 14, 2, 13, 2, 13, 13, 14, 2, 13, 17, 4, 13, 17, 0, 13, 17, 9, 14, 40, 13, 13, 4, 13, 17, 0, 13, 17, 0, 13, 17, 9, 4, 13, 17, 10, 4, 13, 10, 17, 13, 10, 17, 13, 10, 4, 13, 10, 17, 13, 10, 17, 13, 10, 4, 13, 10, 4, 13, 10, 17, 13 ]
[ [ 85, 2 ], [ 85, 11 ], [ 85, 12 ], [ 88, 14 ], [ 70, 18 ], [ 82, 21 ], [ 25, 24 ], [ 89, 24 ], [ 24, 28 ], [ 71, 34 ], [ 92, 34 ], [ 74, 34 ], [ 86, 36 ], [ 77, 37 ], [ 24, 40 ], [ 73, 46 ], [ 83, 51 ], [ 80, 51 ], [ 77, 52 ], [ 91, 57 ], [ 79, 60 ], [ 85, 68 ], [ 70, 71 ], [ 73, 74 ], [ 85, 77 ], [ 79, 80 ], [ 82, 83 ], [ 85, 86 ], [ 88, 89 ], [ 91, 92 ] ]
[ "N, A, B = map(int, input().split())\nS = input()\n\npassing_count = 0\nrank = 1\nfor s in S:\n if s in [\"a\", \"b\"]:\n if passing_count < A + B:\n if s == \"a\":\n print(\"Yes\")\n passing_count += 1\n continue\n else:\n if rank <= B:\n print(\"Yes\")\n passing_count += 1\n rank += 1\n continue\n print(\"No\")", "N, A, B = map(int, input().split())", "N", "map(int, input().split())", "map", "int", "input().split()", "().split", "()", "input", "split", "A", "B", "S = input()", "S", "input()", "input", "passing_count = 0", "passing_count", "0", "rank = 1", "rank", "1", "for s in S:\n if s in [\"a\", \"b\"]:\n if passing_count < A + B:\n if s == \"a\":\n print(\"Yes\")\n passing_count += 1\n continue\n else:\n if rank <= B:\n print(\"Yes\")\n passing_count += 1\n rank += 1\n continue\n print(\"No\")", "s", "S", "if s in [\"a\", \"b\"]:\n if passing_count < A + B:\n if s == \"a\":\n print(\"Yes\")\n passing_count += 1\n continue\n else:\n if rank <= B:\n print(\"Yes\")\n passing_count += 1\n rank += 1\n continue\n ", "s in [\"a\", \"b\"]", "s", "[\"a\", \"b\"]", "\"a\"", "\"b\"", "if passing_count < A + B:\n if s == \"a\":\n print(\"Yes\")\n passing_count += 1\n continue\n else:\n if rank <= B:\n print(\"Yes\")\n passing_count += 1\n rank += 1\n continue\n ", "passing_count < A + B", "passing_count", "A + B", "A", "B", "if s == \"a\":\n print(\"Yes\")\n passing_count += 1\n continue\n else:\n if rank <= B:\n print(\"Yes\")\n passing_count += 1\n rank += 1\n continue\n ", "s == \"a\"", "s", "\"a\"", "print(\"Yes\")", "print", "\"Yes\"", "passing_count += 1", "passing_count", "1", "continue", "if rank <= B:\n print(\"Yes\")\n passing_count += 1\n rank += 1\n continue\n ", "rank <= B", "rank", "B", "print(\"Yes\")", "print", "\"Yes\"", "passing_count += 1", "passing_count", "1", "rank += 1", "rank", "1", "continue", "print(\"No\")", "print", "\"No\"", "N, A, B = map(int, input().split())", "map(int, input().split())", "N", "passing_count = 0", "0", "passing_count", "passing_count += 1", "1", "passing_count", "B = map(int, input().split())", "map(int, input().split())", "B", "rank += 1", "1", "rank", "rank = 1", "1", "rank", "A, B = map(int, input().split())", "map(int, input().split())", "A", "S = input()", "input()", "S", "passing_count += 1", "1", "passing_count" ]
N, A, B = map(int, input().split()) S = input() passing_count = 0 rank = 1 for s in S: if s in ["a", "b"]: if passing_count < A + B: if s == "a": print("Yes") passing_count += 1 continue else: if rank <= B: print("Yes") passing_count += 1 rank += 1 continue print("No")
[ 7, 15, 13, 12, 13, 0, 13, 4, 13, 4, 13, 13, 4, 18, 4, 13, 13, 13, 13, 0, 13, 4, 13, 0, 13, 17, 0, 13, 17, 28, 13, 4, 13, 13, 0, 13, 18, 13, 13, 14, 2, 2, 13, 13, 2, 13, 13, 14, 2, 18, 13, 13, 17, 4, 13, 17, 0, 13, 17, 14, 2, 18, 13, 13, 17, 14, 2, 13, 13, 4, 13, 17, 0, 13, 17, 4, 13, 17, 14, 2, 18, 13, 13, 17, 4, 13, 17, 4, 13, 17, 14, 2, 13, 17, 4, 13, 10, 12, 13 ]
[ [ 7, 6 ], [ 7, 17 ], [ 7, 18 ], [ 21, 20 ], [ 25, 24 ], [ 28, 27 ], [ 31, 30 ], [ 6, 33 ], [ 36, 35 ], [ 20, 37 ], [ 30, 38 ], [ 24, 42 ], [ 57, 42 ], [ 27, 43 ], [ 73, 43 ], [ 17, 45 ], [ 18, 46 ], [ 20, 50 ], [ 30, 51 ], [ 58, 57 ], [ 20, 62 ], [ 30, 63 ], [ 27, 67 ], [ 73, 67 ], [ 18, 68 ], [ 74, 73 ], [ 20, 81 ], [ 30, 82 ], [ 98, 95 ] ]
[ "import sys\n\ndef main():\n\n n,a,b = list(map(int, input().split()))\n s = input()\n yes_a = 0\n yes_b = 0\n \n for i in range(n):\n s_i = s[i]\n if (yes_a+yes_b) < (a+b):\n if s[i] == \"a\":\n print(\"Yes\")\n yes_a += 1\n if s[i] == \"b\":\n if yes_b < b:\n print(\"Yes\")\n yes_b += 1\n else:\n print(\"No\")\n if s[i] == \"c\":\n print(\"No\")\n else:\n print(\"No\")\n \n \nif __name__ == \"__main__\":\n main()", "import sys", "sys", "def main():\n\n n,a,b = list(map(int, input().split()))\n s = input()\n yes_a = 0\n yes_b = 0\n \n for i in range(n):\n s_i = s[i]\n if (yes_a+yes_b) < (a+b):\n if s[i] == \"a\":\n print(\"Yes\")\n yes_a += 1\n if s[i] == \"b\":\n if yes_b < b:\n print(\"Yes\")\n yes_b += 1\n else:\n print(\"No\")\n if s[i] == \"c\":\n print(\"No\")\n else:\n print(\"No\")\n \n ", "main", "n,a,b = list(map(int, input().split()))", "n", "list(map(int, input().split()))", "list", "map(int, input().split())", "map", "int", "input().split()", "().split", "()", "input", "split", "a", "b", "s = input()", "s", "input()", "input", "yes_a = 0", "yes_a", "0", "yes_b = 0", "yes_b", "0", "for i in range(n):\n s_i = s[i]\n if (yes_a+yes_b) < (a+b):\n if s[i] == \"a\":\n print(\"Yes\")\n yes_a += 1\n if s[i] == \"b\":\n if yes_b < b:\n print(\"Yes\")\n yes_b += 1\n else:\n print(\"No\")\n if s[i] == \"c\":\n print(\"No\")\n else:\n print(\"No\")\n \n ", "i", "range(n)", "range", "n", "s_i = s[i]", "s_i", "s[i]", "s", "i", "if (yes_a+yes_b) < (a+b):\n if s[i] == \"a\":\n print(\"Yes\")\n yes_a += 1\n if s[i] == \"b\":\n if yes_b < b:\n print(\"Yes\")\n yes_b += 1\n else:\n print(\"No\")\n if s[i] == \"c\":\n print(\"No\")\n else:\n print(\"No\")\n \n ", "(yes_a+yes_b) < (a+b)", "yes_a+yes_b", "yes_a", "yes_b", "a+b", "a", "b", "if s[i] == \"a\":\n print(\"Yes\")\n yes_a += 1\n ", "s[i] == \"a\"", "s[i]", "s", "i", "\"a\"", "print(\"Yes\")", "print", "\"Yes\"", "yes_a += 1", "yes_a", "1", "if s[i] == \"b\":\n if yes_b < b:\n print(\"Yes\")\n yes_b += 1\n else:\n print(\"No\")\n ", "s[i] == \"b\"", "s[i]", "s", "i", "\"b\"", "if yes_b < b:\n print(\"Yes\")\n yes_b += 1\n else:\n print(\"No\")\n ", "yes_b < b", "yes_b", "b", "print(\"Yes\")", "print", "\"Yes\"", "yes_b += 1", "yes_b", "1", "print(\"No\")", "print", "\"No\"", "if s[i] == \"c\":\n print(\"No\")\n ", "s[i] == \"c\"", "s[i]", "s", "i", "\"c\"", "print(\"No\")", "print", "\"No\"", "print(\"No\")", "print", "\"No\"", "if __name__ == \"__main__\":\n main()", "__name__ == \"__main__\"", "__name__", "\"__main__\"", "main()", "main", "def main():\n\n n,a,b = list(map(int, input().split()))\n s = input()\n yes_a = 0\n yes_b = 0\n \n for i in range(n):\n s_i = s[i]\n if (yes_a+yes_b) < (a+b):\n if s[i] == \"a\":\n print(\"Yes\")\n yes_a += 1\n if s[i] == \"b\":\n if yes_b < b:\n print(\"Yes\")\n yes_b += 1\n else:\n print(\"No\")\n if s[i] == \"c\":\n print(\"No\")\n else:\n print(\"No\")\n \n ", "def main():\n\n n,a,b = list(map(int, input().split()))\n s = input()\n yes_a = 0\n yes_b = 0\n \n for i in range(n):\n s_i = s[i]\n if (yes_a+yes_b) < (a+b):\n if s[i] == \"a\":\n print(\"Yes\")\n yes_a += 1\n if s[i] == \"b\":\n if yes_b < b:\n print(\"Yes\")\n yes_b += 1\n else:\n print(\"No\")\n if s[i] == \"c\":\n print(\"No\")\n else:\n print(\"No\")\n \n ", "main" ]
import sys def main(): n,a,b = list(map(int, input().split())) s = input() yes_a = 0 yes_b = 0 for i in range(n): s_i = s[i] if (yes_a+yes_b) < (a+b): if s[i] == "a": print("Yes") yes_a += 1 if s[i] == "b": if yes_b < b: print("Yes") yes_b += 1 else: print("No") if s[i] == "c": print("No") else: print("No") if __name__ == "__main__": main()
[ 7, 17, 0, 13, 4, 13, 13, 4, 18, 4, 13, 13, 13, 13, 0, 13, 4, 13, 0, 13, 17, 0, 13, 17, 28, 13, 13, 14, 2, 13, 17, 14, 2, 2, 13, 13, 2, 13, 13, 4, 13, 17, 0, 13, 17, 4, 13, 17, 14, 2, 13, 17, 14, 2, 2, 2, 13, 13, 2, 13, 13, 2, 13, 13, 4, 13, 17, 0, 13, 17, 4, 13, 17, 4, 13, 17, 10, 17, 13, 10, 4, 13, 10, 4, 13, 10, 17, 13, 10, 4, 13, 10, 17, 13, 10, 4, 13, 10, 17, 13 ]
[ [ 95, 3 ], [ 95, 12 ], [ 95, 13 ], [ 80, 15 ], [ 92, 19 ], [ 98, 22 ], [ 26, 25 ], [ 81, 25 ], [ 25, 29 ], [ 93, 34 ], [ 78, 34 ], [ 99, 35 ], [ 87, 35 ], [ 96, 37 ], [ 90, 38 ], [ 77, 43 ], [ 25, 50 ], [ 93, 56 ], [ 78, 56 ], [ 99, 57 ], [ 87, 57 ], [ 96, 59 ], [ 90, 60 ], [ 99, 62 ], [ 87, 62 ], [ 90, 63 ], [ 86, 68 ], [ 77, 78 ], [ 80, 81 ], [ 95, 84 ], [ 86, 87 ], [ 95, 90 ], [ 92, 93 ], [ 95, 96 ], [ 98, 99 ] ]
[ "\"\"\"\nCODE FESTIVAL 2016\n\"\"\"\nN,A,B = map(int,input().split())\nS = input()\nsum_a = 0\nsum_b = 0\nfor i in S:\n if(i == 'a'):\n if((sum_a + sum_b) < (A+B)):\n print('Yes')\n sum_a +=1\n else:\n print('No')\n elif(i == 'b'):\n if((sum_a + sum_b) < (A+B) and sum_b < B):\n print('Yes')\n sum_b +=1\n else:\n print('No')\n else:\n print('No')", "\"\"\"\nCODE FESTIVAL 2016\n\"\"\"", "N,A,B = map(int,input().split())", "N", "map(int,input().split())", "map", "int", "input().split()", "().split", "()", "input", "split", "A", "B", "S = input()", "S", "input()", "input", "sum_a = 0", "sum_a", "0", "sum_b = 0", "sum_b", "0", "for i in S:\n if(i == 'a'):\n if((sum_a + sum_b) < (A+B)):\n print('Yes')\n sum_a +=1\n else:\n print('No')\n elif(i == 'b'):\n if((sum_a + sum_b) < (A+B) and sum_b < B):\n print('Yes')\n sum_b +=1\n else:\n print('No')\n else:\n print('No')", "i", "S", "if(i == 'a'):\n if((sum_a + sum_b) < (A+B)):\n print('Yes')\n sum_a +=1\n else:\n print('No')\n elif(i == 'b'):\n if((sum_a + sum_b) < (A+B) and sum_b < B):\n print('Yes')\n sum_b +=1\n else:\n print('No')\n else:\n print('No')", "i == 'a'", "i", "'a'", "if((sum_a + sum_b) < (A+B)):\n print('Yes')\n sum_a +=1\n else:\n print('No')\n ", "(sum_a + sum_b) < (A+B)", "sum_a + sum_b", "sum_a", "sum_b", "A+B", "A", "B", "print('Yes')", "print", "'Yes'", "sum_a +=1", "sum_a", "1", "print('No')", "print", "'No'", "elif(i == 'b'):\n if((sum_a + sum_b) < (A+B) and sum_b < B):\n print('Yes')\n sum_b +=1\n else:\n print('No')\n ", "i == 'b'", "i", "'b'", "if((sum_a + sum_b) < (A+B) and sum_b < B):\n print('Yes')\n sum_b +=1\n else:\n print('No')\n ", "(sum_a + sum_b) < (A+B) and sum_b < B", "(sum_a + sum_b) < (A+B)", "sum_a + sum_b", "sum_a", "sum_b", "A+B", "A", "B", "sum_b < B", "sum_b", "B", "print('Yes')", "print", "'Yes'", "sum_b +=1", "sum_b", "1", "print('No')", "print", "'No'", "print('No')", "print", "'No'", "sum_a +=1", "1", "sum_a", "S = input()", "input()", "S", "N,A,B = map(int,input().split())", "map(int,input().split())", "N", "sum_b +=1", "1", "sum_b", "B = map(int,input().split())", "map(int,input().split())", "B", "sum_a = 0", "0", "sum_a", "A,B = map(int,input().split())", "map(int,input().split())", "A", "sum_b = 0", "0", "sum_b" ]
""" CODE FESTIVAL 2016 """ N,A,B = map(int,input().split()) S = input() sum_a = 0 sum_b = 0 for i in S: if(i == 'a'): if((sum_a + sum_b) < (A+B)): print('Yes') sum_a +=1 else: print('No') elif(i == 'b'): if((sum_a + sum_b) < (A+B) and sum_b < B): print('Yes') sum_b +=1 else: print('No') else: print('No')
[ 7, 0, 13, 4, 13, 13, 4, 18, 4, 13, 13, 13, 13, 0, 13, 4, 13, 0, 13, 17, 0, 13, 17, 0, 13, 2, 13, 13, 28, 13, 13, 14, 2, 2, 13, 17, 2, 13, 13, 4, 13, 17, 0, 13, 17, 14, 2, 2, 2, 13, 17, 2, 13, 13, 2, 13, 13, 4, 13, 17, 0, 13, 17, 0, 13, 17, 4, 13, 17, 10, 4, 13, 10, 17, 13, 10, 17, 13, 10, 17, 13, 10, 17, 13, 10, 4, 13, 10, 17, 13, 10, 4, 13, 10, 4, 13, 10, 2, 13 ]
[ [ 94, 2 ], [ 94, 11 ], [ 94, 12 ], [ 91, 14 ], [ 79, 18 ], [ 82, 21 ], [ 97, 24 ], [ 95, 26 ], [ 71, 27 ], [ 30, 29 ], [ 92, 29 ], [ 29, 34 ], [ 80, 37 ], [ 77, 37 ], [ 89, 37 ], [ 98, 38 ], [ 88, 43 ], [ 29, 49 ], [ 80, 52 ], [ 77, 52 ], [ 89, 52 ], [ 98, 53 ], [ 83, 55 ], [ 74, 55 ], [ 71, 56 ], [ 76, 61 ], [ 73, 64 ], [ 94, 71 ], [ 73, 74 ], [ 76, 77 ], [ 79, 80 ], [ 82, 83 ], [ 94, 86 ], [ 88, 89 ], [ 91, 92 ], [ 94, 95 ], [ 97, 98 ] ]
[ "N, A, B = map(int, input().split())\nS = input()\n\nnum_win = 0\nnum_win_f = 0\nnum_next = A + B\nfor s in S:\n if s == \"a\" and num_win < num_next:\n print(\"Yes\")\n num_win += 1\n elif s == \"b\" and num_win < num_next and num_win_f < B:\n print(\"Yes\")\n num_win += 1\n num_win_f += 1\n else:\n print(\"No\")", "N, A, B = map(int, input().split())", "N", "map(int, input().split())", "map", "int", "input().split()", "().split", "()", "input", "split", "A", "B", "S = input()", "S", "input()", "input", "num_win = 0", "num_win", "0", "num_win_f = 0", "num_win_f", "0", "num_next = A + B", "num_next", "A + B", "A", "B", "for s in S:\n if s == \"a\" and num_win < num_next:\n print(\"Yes\")\n num_win += 1\n elif s == \"b\" and num_win < num_next and num_win_f < B:\n print(\"Yes\")\n num_win += 1\n num_win_f += 1\n else:\n print(\"No\")", "s", "S", "if s == \"a\" and num_win < num_next:\n print(\"Yes\")\n num_win += 1\n elif s == \"b\" and num_win < num_next and num_win_f < B:\n print(\"Yes\")\n num_win += 1\n num_win_f += 1\n else:\n print(\"No\")", "s == \"a\" and num_win < num_next", "s == \"a\"", "s", "\"a\"", "num_win < num_next", "num_win", "num_next", "print(\"Yes\")", "print", "\"Yes\"", "num_win += 1", "num_win", "1", "elif s == \"b\" and num_win < num_next and num_win_f < B:\n print(\"Yes\")\n num_win += 1\n num_win_f += 1\n ", "s == \"b\" and num_win < num_next and num_win_f < B", "s == \"b\" and num_win < num_next", "s == \"b\"", "s", "\"b\"", "num_win < num_next", "num_win", "num_next", "num_win_f < B", "num_win_f", "B", "print(\"Yes\")", "print", "\"Yes\"", "num_win += 1", "num_win", "1", "num_win_f += 1", "num_win_f", "1", "print(\"No\")", "print", "\"No\"", "B = map(int, input().split())", "map(int, input().split())", "B", "num_win_f += 1", "1", "num_win_f", "num_win += 1", "1", "num_win", "num_win = 0", "0", "num_win", "num_win_f = 0", "0", "num_win_f", "N, A, B = map(int, input().split())", "map(int, input().split())", "N", "num_win += 1", "1", "num_win", "S = input()", "input()", "S", "A, B = map(int, input().split())", "map(int, input().split())", "A", "num_next = A + B", "A + B", "num_next" ]
N, A, B = map(int, input().split()) S = input() num_win = 0 num_win_f = 0 num_next = A + B for s in S: if s == "a" and num_win < num_next: print("Yes") num_win += 1 elif s == "b" and num_win < num_next and num_win_f < B: print("Yes") num_win += 1 num_win_f += 1 else: print("No")
[ 7, 0, 13, 4, 13, 4, 13, 13, 4, 18, 4, 13, 13, 13, 13, 0, 13, 4, 13, 0, 13, 17, 0, 13, 17, 0, 13, 17, 28, 13, 13, 14, 2, 13, 17, 14, 2, 13, 2, 13, 13, 4, 13, 17, 0, 13, 17, 4, 13, 17, 14, 2, 13, 17, 0, 13, 17, 14, 2, 2, 13, 2, 13, 13, 40, 13, 13, 4, 13, 17, 0, 13, 17, 4, 13, 17, 4, 13, 17, 10, 17, 13, 10, 4, 13, 10, 17, 13, 10, 17, 13, 10, 4, 13, 10, 4, 13, 10, 17, 13, 10, 17, 13, 10, 4, 13, 10, 17, 13 ]
[ [ 104, 2 ], [ 104, 13 ], [ 104, 14 ], [ 92, 16 ], [ 86, 20 ], [ 80, 23 ], [ 101, 26 ], [ 30, 29 ], [ 93, 29 ], [ 29, 33 ], [ 102, 37 ], [ 90, 37 ], [ 99, 37 ], [ 96, 39 ], [ 84, 40 ], [ 98, 45 ], [ 29, 52 ], [ 107, 55 ], [ 102, 60 ], [ 90, 60 ], [ 99, 60 ], [ 96, 62 ], [ 84, 63 ], [ 108, 65 ], [ 81, 65 ], [ 84, 66 ], [ 89, 71 ], [ 80, 81 ], [ 104, 84 ], [ 86, 87 ], [ 89, 90 ], [ 92, 93 ], [ 104, 96 ], [ 98, 99 ], [ 101, 102 ], [ 104, 105 ], [ 107, 108 ] ]
[ "N,A,B = list(map(int,input().split()))\nS = input()\nkokunai = 0\nkaigai = 0\ncnt = 0\nfor s in S:\n if s == \"a\":\n if cnt < A + B:\n print(\"Yes\")\n cnt += 1\n else:\n print(\"No\")\n \n elif s == \"b\":\n kaigai += 1\n if cnt < A + B and kaigai <= B:\n print(\"Yes\")\n cnt += 1\n else:\n print(\"No\")\n else:\n print(\"No\")\n ", "N,A,B = list(map(int,input().split()))", "N", "list(map(int,input().split()))", "list", "map(int,input().split())", "map", "int", "input().split()", "().split", "()", "input", "split", "A", "B", "S = input()", "S", "input()", "input", "kokunai = 0", "kokunai", "0", "kaigai = 0", "kaigai", "0", "cnt = 0", "cnt", "0", "for s in S:\n if s == \"a\":\n if cnt < A + B:\n print(\"Yes\")\n cnt += 1\n else:\n print(\"No\")\n \n elif s == \"b\":\n kaigai += 1\n if cnt < A + B and kaigai <= B:\n print(\"Yes\")\n cnt += 1\n else:\n print(\"No\")\n else:\n print(\"No\")\n ", "s", "S", "if s == \"a\":\n if cnt < A + B:\n print(\"Yes\")\n cnt += 1\n else:\n print(\"No\")\n \n elif s == \"b\":\n kaigai += 1\n if cnt < A + B and kaigai <= B:\n print(\"Yes\")\n cnt += 1\n else:\n print(\"No\")\n else:\n print(\"No\")\n ", "s == \"a\"", "s", "\"a\"", "if cnt < A + B:\n print(\"Yes\")\n cnt += 1\n else:\n print(\"No\")\n \n ", "cnt < A + B", "cnt", "A + B", "A", "B", "print(\"Yes\")", "print", "\"Yes\"", "cnt += 1", "cnt", "1", "print(\"No\")", "print", "\"No\"", "elif s == \"b\":\n kaigai += 1\n if cnt < A + B and kaigai <= B:\n print(\"Yes\")\n cnt += 1\n else:\n print(\"No\")\n ", "s == \"b\"", "s", "\"b\"", "kaigai += 1", "kaigai", "1", "if cnt < A + B and kaigai <= B:\n print(\"Yes\")\n cnt += 1\n else:\n print(\"No\")\n ", "cnt < A + B and kaigai <= B", "cnt < A + B", "cnt", "A + B", "A", "B", "kaigai <= B", "kaigai", "B", "print(\"Yes\")", "print", "\"Yes\"", "cnt += 1", "cnt", "1", "print(\"No\")", "print", "\"No\"", "print(\"No\")", "print", "\"No\"", "kaigai = 0", "0", "kaigai", "B = list(map(int,input().split()))", "list(map(int,input().split()))", "B", "kokunai = 0", "0", "kokunai", "cnt += 1", "1", "cnt", "S = input()", "input()", "S", "A,B = list(map(int,input().split()))", "list(map(int,input().split()))", "A", "cnt += 1", "1", "cnt", "cnt = 0", "0", "cnt", "N,A,B = list(map(int,input().split()))", "list(map(int,input().split()))", "N", "kaigai += 1", "1", "kaigai" ]
N,A,B = list(map(int,input().split())) S = input() kokunai = 0 kaigai = 0 cnt = 0 for s in S: if s == "a": if cnt < A + B: print("Yes") cnt += 1 else: print("No") elif s == "b": kaigai += 1 if cnt < A + B and kaigai <= B: print("Yes") cnt += 1 else: print("No") else: print("No")
[ 7, 0, 13, 4, 13, 13, 4, 18, 4, 13, 13, 13, 13, 0, 13, 4, 13, 0, 13, 17, 0, 13, 17, 28, 13, 13, 14, 2, 13, 17, 14, 2, 2, 13, 13, 2, 13, 13, 4, 13, 17, 0, 13, 17, 4, 13, 17, 14, 2, 13, 17, 14, 2, 2, 2, 13, 13, 2, 13, 13, 2, 13, 13, 4, 13, 17, 0, 13, 17, 4, 13, 17, 4, 13, 17, 10, 4, 13, 10, 17, 13, 10, 4, 13, 10, 17, 13, 10, 17, 13, 10, 4, 13, 10, 17, 13, 10, 4, 13 ]
[ [ 97, 2 ], [ 97, 11 ], [ 97, 12 ], [ 91, 14 ], [ 85, 18 ], [ 79, 21 ], [ 25, 24 ], [ 92, 24 ], [ 24, 28 ], [ 86, 33 ], [ 95, 33 ], [ 80, 34 ], [ 89, 34 ], [ 98, 36 ], [ 83, 37 ], [ 94, 42 ], [ 24, 49 ], [ 86, 55 ], [ 95, 55 ], [ 80, 56 ], [ 89, 56 ], [ 98, 58 ], [ 83, 59 ], [ 80, 61 ], [ 89, 61 ], [ 83, 62 ], [ 88, 67 ], [ 97, 77 ], [ 79, 80 ], [ 97, 83 ], [ 85, 86 ], [ 88, 89 ], [ 91, 92 ], [ 94, 95 ], [ 97, 98 ] ]
[ "N,A,B = map(int,input().split())\nS=input()\n\npassa = 0\npassb = 0\nfor c in S:\n if c == 'a':\n if passa+ passb < A+B:\n print('Yes')\n passa+=1\n else:\n print('No')\n elif c == 'b':\n if passa + passb < A+B and passb < B:\n print('Yes')\n passb+=1\n else:\n print('No')\n else:\n print('No')\n", "N,A,B = map(int,input().split())", "N", "map(int,input().split())", "map", "int", "input().split()", "().split", "()", "input", "split", "A", "B", "S=input()", "S", "input()", "input", "passa = 0", "passa", "0", "passb = 0", "passb", "0", "for c in S:\n if c == 'a':\n if passa+ passb < A+B:\n print('Yes')\n passa+=1\n else:\n print('No')\n elif c == 'b':\n if passa + passb < A+B and passb < B:\n print('Yes')\n passb+=1\n else:\n print('No')\n else:\n print('No')", "c", "S", "if c == 'a':\n if passa+ passb < A+B:\n print('Yes')\n passa+=1\n else:\n print('No')\n elif c == 'b':\n if passa + passb < A+B and passb < B:\n print('Yes')\n passb+=1\n else:\n print('No')\n else:\n print('No')", "c == 'a'", "c", "'a'", "if passa+ passb < A+B:\n print('Yes')\n passa+=1\n else:\n print('No')\n ", "passa+ passb < A+B", "passa+ passb", "passa", "passb", "A+B", "A", "B", "print('Yes')", "print", "'Yes'", "passa+=1", "passa", "1", "print('No')", "print", "'No'", "elif c == 'b':\n if passa + passb < A+B and passb < B:\n print('Yes')\n passb+=1\n else:\n print('No')\n ", "c == 'b'", "c", "'b'", "if passa + passb < A+B and passb < B:\n print('Yes')\n passb+=1\n else:\n print('No')\n ", "passa + passb < A+B and passb < B", "passa + passb < A+B", "passa + passb", "passa", "passb", "A+B", "A", "B", "passb < B", "passb", "B", "print('Yes')", "print", "'Yes'", "passb+=1", "passb", "1", "print('No')", "print", "'No'", "print('No')", "print", "'No'", "N,A,B = map(int,input().split())", "map(int,input().split())", "N", "passb = 0", "0", "passb", "B = map(int,input().split())", "map(int,input().split())", "B", "passa = 0", "0", "passa", "passb+=1", "1", "passb", "S=input()", "input()", "S", "passa+=1", "1", "passa", "A,B = map(int,input().split())", "map(int,input().split())", "A" ]
N,A,B = map(int,input().split()) S=input() passa = 0 passb = 0 for c in S: if c == 'a': if passa+ passb < A+B: print('Yes') passa+=1 else: print('No') elif c == 'b': if passa + passb < A+B and passb < B: print('Yes') passb+=1 else: print('No') else: print('No')
[ 7, 0, 13, 4, 13, 13, 4, 18, 4, 13, 13, 13, 13, 0, 13, 4, 13, 0, 13, 17, 0, 13, 17, 28, 13, 4, 13, 13, 14, 2, 40, 18, 13, 13, 17, 2, 13, 2, 13, 13, 14, 2, 18, 13, 13, 17, 4, 13, 17, 0, 13, 17, 9, 14, 2, 2, 18, 13, 13, 17, 2, 13, 13, 4, 13, 17, 0, 13, 17, 0, 13, 17, 9, 4, 13, 17, 10, 17, 13, 10, 4, 13, 10, 17, 13, 10, 17, 13, 10, 4, 13, 10, 4, 13, 10, 4, 13, 10, 17, 13, 10, 17, 13 ]
[ [ 95, 2 ], [ 95, 11 ], [ 95, 12 ], [ 80, 14 ], [ 83, 18 ], [ 98, 21 ], [ 25, 24 ], [ 96, 27 ], [ 81, 32 ], [ 24, 33 ], [ 84, 36 ], [ 87, 36 ], [ 102, 36 ], [ 90, 38 ], [ 93, 39 ], [ 81, 43 ], [ 24, 44 ], [ 101, 50 ], [ 81, 57 ], [ 24, 58 ], [ 99, 61 ], [ 78, 61 ], [ 93, 62 ], [ 77, 67 ], [ 86, 70 ], [ 77, 78 ], [ 80, 81 ], [ 83, 84 ], [ 86, 87 ], [ 95, 90 ], [ 95, 93 ], [ 95, 96 ], [ 98, 99 ], [ 101, 102 ] ]
[ "n, a, b = map(int, input().split())\ns = input()\nsum_ = 0\nb_cnt = 0\nfor i in range(n):\n #print(sum_, b_cnt)\n if s[i] != 'c' and sum_ < a + b:\n if s[i] == 'a':\n print('Yes')\n sum_ += 1\n continue\n elif s[i] == 'b' and b_cnt < b:\n print('Yes')\n b_cnt += 1\n sum_ += 1\n continue\n \n print('No')", "n, a, b = map(int, input().split())", "n", "map(int, input().split())", "map", "int", "input().split()", "().split", "()", "input", "split", "a", "b", "s = input()", "s", "input()", "input", "sum_ = 0", "sum_", "0", "b_cnt = 0", "b_cnt", "0", "for i in range(n):\n #print(sum_, b_cnt)\n if s[i] != 'c' and sum_ < a + b:\n if s[i] == 'a':\n print('Yes')\n sum_ += 1\n continue\n elif s[i] == 'b' and b_cnt < b:\n print('Yes')\n b_cnt += 1\n sum_ += 1\n continue\n \n print('No')", "i", "range(n)", "range", "n", "if s[i] != 'c' and sum_ < a + b:\n if s[i] == 'a':\n print('Yes')\n sum_ += 1\n continue\n elif s[i] == 'b' and b_cnt < b:\n print('Yes')\n b_cnt += 1\n sum_ += 1\n continue\n \n ", "s[i] != 'c' and sum_ < a + b", "s[i] != 'c'", "s[i]", "s", "i", "'c'", "sum_ < a + b", "sum_", "a + b", "a", "b", "if s[i] == 'a':\n print('Yes')\n sum_ += 1\n continue\n elif s[i] == 'b' and b_cnt < b:\n print('Yes')\n b_cnt += 1\n sum_ += 1\n continue\n \n ", "s[i] == 'a'", "s[i]", "s", "i", "'a'", "print('Yes')", "print", "'Yes'", "sum_ += 1", "sum_", "1", "continue", "elif s[i] == 'b' and b_cnt < b:\n print('Yes')\n b_cnt += 1\n sum_ += 1\n continue\n \n ", "s[i] == 'b' and b_cnt < b", "s[i] == 'b'", "s[i]", "s", "i", "'b'", "b_cnt < b", "b_cnt", "b", "print('Yes')", "print", "'Yes'", "b_cnt += 1", "b_cnt", "1", "sum_ += 1", "sum_", "1", "continue", "print('No')", "print", "'No'", "b_cnt += 1", "1", "b_cnt", "s = input()", "input()", "s", "sum_ = 0", "0", "sum_", "sum_ += 1", "1", "sum_", "a, b = map(int, input().split())", "map(int, input().split())", "a", "b = map(int, input().split())", "map(int, input().split())", "b", "n, a, b = map(int, input().split())", "map(int, input().split())", "n", "b_cnt = 0", "0", "b_cnt", "sum_ += 1", "1", "sum_" ]
n, a, b = map(int, input().split()) s = input() sum_ = 0 b_cnt = 0 for i in range(n): #print(sum_, b_cnt) if s[i] != 'c' and sum_ < a + b: if s[i] == 'a': print('Yes') sum_ += 1 continue elif s[i] == 'b' and b_cnt < b: print('Yes') b_cnt += 1 sum_ += 1 continue print('No')
[ 7, 0, 13, 4, 13, 13, 4, 18, 4, 13, 13, 13, 13, 0, 13, 2, 13, 13, 0, 13, 4, 13, 0, 13, 17, 0, 13, 17, 28, 13, 13, 14, 40, 13, 13, 4, 13, 17, 9, 14, 2, 13, 17, 4, 13, 17, 0, 13, 17, 9, 14, 2, 2, 13, 17, 2, 13, 13, 4, 13, 17, 0, 13, 17, 0, 13, 17, 9, 4, 13, 17, 10, 17, 13, 10, 17, 13, 10, 4, 13, 10, 17, 13, 10, 4, 13, 10, 4, 13, 10, 17, 13, 10, 4, 13, 10, 2, 13, 10, 17, 13 ]
[ [ 93, 2 ], [ 93, 11 ], [ 93, 12 ], [ 96, 14 ], [ 85, 16 ], [ 88, 17 ], [ 78, 19 ], [ 81, 23 ], [ 99, 26 ], [ 30, 29 ], [ 79, 29 ], [ 82, 33 ], [ 76, 33 ], [ 73, 33 ], [ 97, 34 ], [ 29, 41 ], [ 72, 47 ], [ 29, 53 ], [ 100, 56 ], [ 91, 56 ], [ 88, 57 ], [ 75, 62 ], [ 90, 65 ], [ 72, 73 ], [ 75, 76 ], [ 78, 79 ], [ 81, 82 ], [ 93, 85 ], [ 93, 88 ], [ 90, 91 ], [ 93, 94 ], [ 96, 97 ], [ 99, 100 ] ]
[ "n,a,b=map(int,input().split())\nc=a+b\ns=input()\ncount1=0\ncount2=0\nfor i in s:\n if count1>=c:\n print(\"No\")\n continue\n else:\n if i==\"a\":\n print(\"Yes\")\n count1+=1\n continue\n if i==\"b\" and count2<b:\n print(\"Yes\")\n count1+=1;count2+=1\n continue\n print(\"No\")", "n,a,b=map(int,input().split())", "n", "map(int,input().split())", "map", "int", "input().split()", "().split", "()", "input", "split", "a", "b", "c=a+b", "c", "a+b", "a", "b", "s=input()", "s", "input()", "input", "count1=0", "count1", "0", "count2=0", "count2", "0", "for i in s:\n if count1>=c:\n print(\"No\")\n continue\n else:\n if i==\"a\":\n print(\"Yes\")\n count1+=1\n continue\n if i==\"b\" and count2<b:\n print(\"Yes\")\n count1+=1;count2+=1\n continue\n print(\"No\")", "i", "s", "if count1>=c:\n print(\"No\")\n continue\n else:\n if i==\"a\":\n print(\"Yes\")\n count1+=1\n continue\n if i==\"b\" and count2<b:\n print(\"Yes\")\n count1+=1;count2+=1\n continue\n print(\"No\")", "count1>=c", "count1", "c", "print(\"No\")", "print", "\"No\"", "continue", "if i==\"a\":\n print(\"Yes\")\n count1+=1\n continue\n ", "i==\"a\"", "i", "\"a\"", "print(\"Yes\")", "print", "\"Yes\"", "count1+=1", "count1", "1", "continue", "if i==\"b\" and count2<b:\n print(\"Yes\")\n count1+=1;count2+=1\n continue\n ", "i==\"b\" and count2<b", "i==\"b\"", "i", "\"b\"", "count2<b", "count2", "b", "print(\"Yes\")", "print", "\"Yes\"", "count1+=1", "count1", "1", "count2+=1", "count2", "1", "continue", "print(\"No\")", "print", "\"No\"", "count1+=1", "1", "count1", "count1+=1", "1", "count1", "s=input()", "input()", "s", "count1=0", "0", "count1", "a,b=map(int,input().split())", "map(int,input().split())", "a", "b=map(int,input().split())", "map(int,input().split())", "b", "count2+=1", "1", "count2", "n,a,b=map(int,input().split())", "map(int,input().split())", "n", "c=a+b", "a+b", "c", "count2=0", "0", "count2" ]
n,a,b=map(int,input().split()) c=a+b s=input() count1=0 count2=0 for i in s: if count1>=c: print("No") continue else: if i=="a": print("Yes") count1+=1 continue if i=="b" and count2<b: print("Yes") count1+=1;count2+=1 continue print("No")
[ 7, 0, 13, 4, 13, 13, 4, 18, 4, 13, 13, 13, 13, 0, 13, 4, 13, 0, 13, 17, 0, 13, 17, 28, 13, 13, 14, 2, 13, 17, 14, 2, 2, 13, 13, 2, 13, 13, 4, 13, 17, 0, 13, 17, 4, 13, 17, 14, 2, 13, 17, 14, 2, 2, 2, 13, 13, 2, 13, 13, 2, 13, 13, 4, 13, 17, 0, 13, 17, 4, 13, 17, 4, 13, 17, 10, 17, 13, 10, 4, 13, 10, 17, 13, 10, 17, 13, 10, 4, 13, 10, 17, 13, 10, 4, 13, 10, 4, 13 ]
[ [ 94, 2 ], [ 94, 11 ], [ 94, 12 ], [ 97, 14 ], [ 91, 18 ], [ 76, 21 ], [ 25, 24 ], [ 98, 24 ], [ 24, 28 ], [ 92, 33 ], [ 83, 33 ], [ 77, 34 ], [ 86, 34 ], [ 89, 36 ], [ 80, 37 ], [ 82, 42 ], [ 24, 49 ], [ 92, 55 ], [ 83, 55 ], [ 77, 56 ], [ 86, 56 ], [ 89, 58 ], [ 80, 59 ], [ 77, 61 ], [ 86, 61 ], [ 80, 62 ], [ 85, 67 ], [ 76, 77 ], [ 94, 80 ], [ 82, 83 ], [ 85, 86 ], [ 94, 89 ], [ 91, 92 ], [ 94, 95 ], [ 97, 98 ] ]
[ "n, a, b = map(int, input().split())\ns = input()\n\npass_a = 0\npass_b = 0\nfor c in s:\n if c == 'a':\n if pass_a + pass_b < a + b:\n print('Yes')\n pass_a += 1\n else:\n print('No')\n elif c == 'b':\n if pass_a + pass_b < a + b and pass_b < b:\n print('Yes')\n pass_b += 1\n else:\n print('No')\n else:\n print('No')", "n, a, b = map(int, input().split())", "n", "map(int, input().split())", "map", "int", "input().split()", "().split", "()", "input", "split", "a", "b", "s = input()", "s", "input()", "input", "pass_a = 0", "pass_a", "0", "pass_b = 0", "pass_b", "0", "for c in s:\n if c == 'a':\n if pass_a + pass_b < a + b:\n print('Yes')\n pass_a += 1\n else:\n print('No')\n elif c == 'b':\n if pass_a + pass_b < a + b and pass_b < b:\n print('Yes')\n pass_b += 1\n else:\n print('No')\n else:\n print('No')", "c", "s", "if c == 'a':\n if pass_a + pass_b < a + b:\n print('Yes')\n pass_a += 1\n else:\n print('No')\n elif c == 'b':\n if pass_a + pass_b < a + b and pass_b < b:\n print('Yes')\n pass_b += 1\n else:\n print('No')\n else:\n print('No')", "c == 'a'", "c", "'a'", "if pass_a + pass_b < a + b:\n print('Yes')\n pass_a += 1\n else:\n print('No')\n ", "pass_a + pass_b < a + b", "pass_a + pass_b", "pass_a", "pass_b", "a + b", "a", "b", "print('Yes')", "print", "'Yes'", "pass_a += 1", "pass_a", "1", "print('No')", "print", "'No'", "elif c == 'b':\n if pass_a + pass_b < a + b and pass_b < b:\n print('Yes')\n pass_b += 1\n else:\n print('No')\n ", "c == 'b'", "c", "'b'", "if pass_a + pass_b < a + b and pass_b < b:\n print('Yes')\n pass_b += 1\n else:\n print('No')\n ", "pass_a + pass_b < a + b and pass_b < b", "pass_a + pass_b < a + b", "pass_a + pass_b", "pass_a", "pass_b", "a + b", "a", "b", "pass_b < b", "pass_b", "b", "print('Yes')", "print", "'Yes'", "pass_b += 1", "pass_b", "1", "print('No')", "print", "'No'", "print('No')", "print", "'No'", "pass_b = 0", "0", "pass_b", "b = map(int, input().split())", "map(int, input().split())", "b", "pass_a += 1", "1", "pass_a", "pass_b += 1", "1", "pass_b", "a, b = map(int, input().split())", "map(int, input().split())", "a", "pass_a = 0", "0", "pass_a", "n, a, b = map(int, input().split())", "map(int, input().split())", "n", "s = input()", "input()", "s" ]
n, a, b = map(int, input().split()) s = input() pass_a = 0 pass_b = 0 for c in s: if c == 'a': if pass_a + pass_b < a + b: print('Yes') pass_a += 1 else: print('No') elif c == 'b': if pass_a + pass_b < a + b and pass_b < b: print('Yes') pass_b += 1 else: print('No') else: print('No')
[ 7, 0, 13, 4, 13, 13, 4, 18, 4, 13, 13, 13, 13, 0, 13, 4, 13, 0, 13, 17, 0, 13, 17, 28, 13, 13, 14, 2, 13, 17, 4, 13, 17, 9, 14, 2, 13, 17, 14, 2, 13, 2, 13, 13, 4, 13, 17, 0, 13, 17, 4, 13, 17, 14, 2, 13, 17, 14, 2, 2, 13, 2, 13, 13, 40, 13, 13, 4, 13, 17, 0, 13, 17, 4, 13, 17, 0, 13, 17, 10, 17, 13, 10, 17, 13, 10, 4, 13, 10, 17, 13, 10, 4, 13, 10, 4, 13, 10, 4, 13, 10, 17, 13, 10, 17, 13 ]
[ [ 98, 2 ], [ 98, 11 ], [ 98, 12 ], [ 86, 14 ], [ 101, 18 ], [ 104, 21 ], [ 25, 24 ], [ 87, 24 ], [ 24, 28 ], [ 24, 36 ], [ 102, 40 ], [ 90, 40 ], [ 84, 40 ], [ 99, 42 ], [ 93, 43 ], [ 83, 48 ], [ 24, 55 ], [ 102, 60 ], [ 90, 60 ], [ 84, 60 ], [ 99, 62 ], [ 93, 63 ], [ 105, 65 ], [ 81, 65 ], [ 93, 66 ], [ 89, 71 ], [ 80, 77 ], [ 80, 81 ], [ 83, 84 ], [ 86, 87 ], [ 89, 90 ], [ 98, 93 ], [ 98, 96 ], [ 98, 99 ], [ 101, 102 ], [ 104, 105 ] ]
[ "N, A, B = map(int, input().split())\nS = input()\nparticipants = 0\ni = 1\nfor s in S:\n if s == 'c':\n print('No')\n continue\n elif s == 'a':\n if participants < A+B:\n print('Yes')\n participants += 1\n else:\n print('No')\n elif s == 'b':\n if participants < A+B and i <= B:\n print('Yes')\n participants += 1\n else:\n print('No')\n i += 1\n \n", "N, A, B = map(int, input().split())", "N", "map(int, input().split())", "map", "int", "input().split()", "().split", "()", "input", "split", "A", "B", "S = input()", "S", "input()", "input", "participants = 0", "participants", "0", "i = 1", "i", "1", "for s in S:\n if s == 'c':\n print('No')\n continue\n elif s == 'a':\n if participants < A+B:\n print('Yes')\n participants += 1\n else:\n print('No')\n elif s == 'b':\n if participants < A+B and i <= B:\n print('Yes')\n participants += 1\n else:\n print('No')\n i += 1\n ", "s", "S", "if s == 'c':\n print('No')\n continue\n elif s == 'a':\n if participants < A+B:\n print('Yes')\n participants += 1\n else:\n print('No')\n elif s == 'b':\n if participants < A+B and i <= B:\n print('Yes')\n participants += 1\n else:\n print('No')\n i += 1\n ", "s == 'c'", "s", "'c'", "print('No')", "print", "'No'", "continue", "elif s == 'a':\n if participants < A+B:\n print('Yes')\n participants += 1\n else:\n print('No')\n ", "s == 'a'", "s", "'a'", "if participants < A+B:\n print('Yes')\n participants += 1\n else:\n print('No')\n ", "participants < A+B", "participants", "A+B", "A", "B", "print('Yes')", "print", "'Yes'", "participants += 1", "participants", "1", "print('No')", "print", "'No'", "elif s == 'b':\n if participants < A+B and i <= B:\n print('Yes')\n participants += 1\n else:\n print('No')\n i += 1\n ", "s == 'b'", "s", "'b'", "if participants < A+B and i <= B:\n print('Yes')\n participants += 1\n else:\n print('No')\n ", "participants < A+B and i <= B", "participants < A+B", "participants", "A+B", "A", "B", "i <= B", "i", "B", "print('Yes')", "print", "'Yes'", "participants += 1", "participants", "1", "print('No')", "print", "'No'", "i += 1", "i", "1", "i += 1", "1", "i", "participants += 1", "1", "participants", "S = input()", "input()", "S", "participants += 1", "1", "participants", "B = map(int, input().split())", "map(int, input().split())", "B", "N, A, B = map(int, input().split())", "map(int, input().split())", "N", "A, B = map(int, input().split())", "map(int, input().split())", "A", "participants = 0", "0", "participants", "i = 1", "1", "i" ]
N, A, B = map(int, input().split()) S = input() participants = 0 i = 1 for s in S: if s == 'c': print('No') continue elif s == 'a': if participants < A+B: print('Yes') participants += 1 else: print('No') elif s == 'b': if participants < A+B and i <= B: print('Yes') participants += 1 else: print('No') i += 1
[ 7, 0, 13, 4, 13, 13, 4, 18, 4, 13, 13, 13, 13, 0, 13, 4, 13, 4, 13, 0, 13, 17, 0, 13, 17, 0, 13, 17, 28, 13, 4, 13, 4, 13, 13, 14, 2, 2, 18, 13, 13, 17, 2, 2, 13, 13, 2, 13, 13, 4, 13, 17, 0, 13, 17, 14, 2, 2, 2, 18, 13, 13, 17, 2, 2, 13, 13, 2, 13, 13, 2, 13, 13, 4, 13, 17, 0, 13, 17, 4, 13, 17, 10, 4, 13, 10, 17, 13, 10, 17, 13, 10, 4, 13, 10, 17, 13, 10, 4, 13, 10, 17, 13, 10, 17, 13, 10, 4, 13 ]
[ [ 107, 2 ], [ 107, 11 ], [ 107, 12 ], [ 98, 14 ], [ 95, 20 ], [ 104, 23 ], [ 86, 26 ], [ 30, 29 ], [ 99, 34 ], [ 99, 39 ], [ 29, 40 ], [ 96, 44 ], [ 102, 44 ], [ 105, 45 ], [ 90, 45 ], [ 93, 47 ], [ 84, 48 ], [ 101, 53 ], [ 99, 60 ], [ 29, 61 ], [ 96, 65 ], [ 102, 65 ], [ 105, 66 ], [ 90, 66 ], [ 93, 68 ], [ 84, 69 ], [ 105, 71 ], [ 90, 71 ], [ 84, 72 ], [ 89, 77 ], [ 107, 84 ], [ 86, 87 ], [ 89, 90 ], [ 107, 93 ], [ 95, 96 ], [ 98, 99 ], [ 101, 102 ], [ 104, 105 ], [ 107, 108 ] ]
[ "N,A,B=map(int,input().split())\ns=str(input())\nx = 0 #通過者数\ny = 0\ncount = 0\nfor i in range(len(s)):\n if s[i] == 'a' and x+y < A+B:\n print('Yes')\n x += 1\n elif s[i] == 'b' and x+y < A+B and y < B:\n print('Yes')\n y += 1\n else:\n print('No')", "N,A,B=map(int,input().split())", "N", "map(int,input().split())", "map", "int", "input().split()", "().split", "()", "input", "split", "A", "B", "s=str(input())", "s", "str(input())", "str", "input()", "input", "x = 0", "x", "0", "y = 0", "y", "0", "count = 0", "count", "0", "for i in range(len(s)):\n if s[i] == 'a' and x+y < A+B:\n print('Yes')\n x += 1\n elif s[i] == 'b' and x+y < A+B and y < B:\n print('Yes')\n y += 1\n else:\n print('No')", "i", "range(len(s))", "range", "len(s)", "len", "s", "if s[i] == 'a' and x+y < A+B:\n print('Yes')\n x += 1\n elif s[i] == 'b' and x+y < A+B and y < B:\n print('Yes')\n y += 1\n else:\n print('No')", "s[i] == 'a' and x+y < A+B", "s[i] == 'a'", "s[i]", "s", "i", "'a'", "x+y < A+B", "x+y", "x", "y", "A+B", "A", "B", "print('Yes')", "print", "'Yes'", "x += 1", "x", "1", "elif s[i] == 'b' and x+y < A+B and y < B:\n print('Yes')\n y += 1\n ", "s[i] == 'b' and x+y < A+B and y < B", "s[i] == 'b' and x+y < A+B", "s[i] == 'b'", "s[i]", "s", "i", "'b'", "x+y < A+B", "x+y", "x", "y", "A+B", "A", "B", "y < B", "y", "B", "print('Yes')", "print", "'Yes'", "y += 1", "y", "1", "print('No')", "print", "'No'", "B=map(int,input().split())", "map(int,input().split())", "B", "count = 0", "0", "count", "y += 1", "1", "y", "A,B=map(int,input().split())", "map(int,input().split())", "A", "x = 0", "0", "x", "s=str(input())", "str(input())", "s", "x += 1", "1", "x", "y = 0", "0", "y", "N,A,B=map(int,input().split())", "map(int,input().split())", "N" ]
N,A,B=map(int,input().split()) s=str(input()) x = 0 #通過者数 y = 0 count = 0 for i in range(len(s)): if s[i] == 'a' and x+y < A+B: print('Yes') x += 1 elif s[i] == 'b' and x+y < A+B and y < B: print('Yes') y += 1 else: print('No')
[ 7, 0, 13, 4, 13, 13, 4, 18, 4, 13, 13, 13, 13, 0, 13, 4, 13, 0, 13, 17, 0, 13, 17, 28, 13, 4, 13, 4, 13, 13, 14, 40, 2, 13, 13, 2, 13, 13, 4, 13, 17, 14, 2, 18, 13, 13, 17, 0, 13, 17, 4, 13, 17, 14, 2, 18, 13, 13, 17, 14, 2, 13, 13, 0, 13, 17, 4, 13, 17, 4, 13, 17, 4, 13, 17, 10, 17, 13, 10, 4, 13, 10, 4, 13, 10, 17, 13, 10, 17, 13, 10, 4, 13, 10, 17, 13, 10, 4, 13 ]
[ [ 97, 2 ], [ 97, 11 ], [ 97, 12 ], [ 82, 14 ], [ 76, 18 ], [ 88, 21 ], [ 25, 24 ], [ 83, 29 ], [ 77, 33 ], [ 95, 33 ], [ 89, 34 ], [ 86, 34 ], [ 98, 36 ], [ 80, 37 ], [ 83, 44 ], [ 24, 45 ], [ 94, 48 ], [ 83, 56 ], [ 24, 57 ], [ 89, 61 ], [ 86, 61 ], [ 80, 62 ], [ 85, 64 ], [ 76, 77 ], [ 97, 80 ], [ 82, 83 ], [ 85, 86 ], [ 88, 89 ], [ 97, 92 ], [ 94, 95 ], [ 97, 98 ] ]
[ "n,a,b = map(int,input().split())\ns = input()\nna = 0\nnb = 0\nfor i in range(len(s)):\n if na + nb >= a+b:\n print(\"No\")\n elif s[i]==\"a\":\n na += 1\n print(\"Yes\")\n elif s[i]==\"b\":\n if nb < b:\n nb += 1\n print(\"Yes\")\n else:\n print(\"No\")\n else:\n print(\"No\")", "n,a,b = map(int,input().split())", "n", "map(int,input().split())", "map", "int", "input().split()", "().split", "()", "input", "split", "a", "b", "s = input()", "s", "input()", "input", "na = 0", "na", "0", "nb = 0", "nb", "0", "for i in range(len(s)):\n if na + nb >= a+b:\n print(\"No\")\n elif s[i]==\"a\":\n na += 1\n print(\"Yes\")\n elif s[i]==\"b\":\n if nb < b:\n nb += 1\n print(\"Yes\")\n else:\n print(\"No\")\n else:\n print(\"No\")", "i", "range(len(s))", "range", "len(s)", "len", "s", "if na + nb >= a+b:\n print(\"No\")\n elif s[i]==\"a\":\n na += 1\n print(\"Yes\")\n elif s[i]==\"b\":\n if nb < b:\n nb += 1\n print(\"Yes\")\n else:\n print(\"No\")\n else:\n print(\"No\")", "na + nb >= a+b", "na + nb", "na", "nb", "a+b", "a", "b", "print(\"No\")", "print", "\"No\"", "elif s[i]==\"a\":\n na += 1\n print(\"Yes\")\n ", "s[i]==\"a\"", "s[i]", "s", "i", "\"a\"", "na += 1", "na", "1", "print(\"Yes\")", "print", "\"Yes\"", "elif s[i]==\"b\":\n if nb < b:\n nb += 1\n print(\"Yes\")\n else:\n print(\"No\")\n ", "s[i]==\"b\"", "s[i]", "s", "i", "\"b\"", "if nb < b:\n nb += 1\n print(\"Yes\")\n else:\n print(\"No\")\n ", "nb < b", "nb", "b", "nb += 1", "nb", "1", "print(\"Yes\")", "print", "\"Yes\"", "print(\"No\")", "print", "\"No\"", "print(\"No\")", "print", "\"No\"", "na = 0", "0", "na", "b = map(int,input().split())", "map(int,input().split())", "b", "s = input()", "input()", "s", "nb += 1", "1", "nb", "nb = 0", "0", "nb", "n,a,b = map(int,input().split())", "map(int,input().split())", "n", "na += 1", "1", "na", "a,b = map(int,input().split())", "map(int,input().split())", "a" ]
n,a,b = map(int,input().split()) s = input() na = 0 nb = 0 for i in range(len(s)): if na + nb >= a+b: print("No") elif s[i]=="a": na += 1 print("Yes") elif s[i]=="b": if nb < b: nb += 1 print("Yes") else: print("No") else: print("No")
[ 7, 15, 13, 41, 28, 13, 4, 18, 4, 13, 13, 4, 4, 13, 13, 0, 13, 13, 0, 13, 18, 13, 17, 0, 13, 18, 13, 17, 0, 13, 18, 13, 17, 0, 13, 4, 13, 0, 13, 17, 0, 13, 17, 28, 13, 4, 13, 13, 14, 2, 18, 13, 13, 17, 14, 2, 13, 2, 13, 13, 4, 13, 17, 0, 13, 17, 4, 13, 17, 14, 2, 18, 13, 13, 17, 14, 2, 2, 13, 2, 13, 13, 40, 2, 13, 17, 13, 4, 13, 17, 0, 13, 17, 0, 13, 17, 4, 13, 17, 14, 2, 18, 13, 13, 17, 4, 13, 17, 10, 17, 13, 10, 17, 13, 10, 13, 13, 10, 17, 13, 10, 18, 13, 10, 17, 13, 10, 18, 13, 10, 18, 13, 10, 4, 13, 10, 17, 13 ]
[ [ 6, 5 ], [ 5, 14 ], [ 115, 16 ], [ 121, 19 ], [ 116, 21 ], [ 130, 24 ], [ 116, 26 ], [ 127, 29 ], [ 116, 31 ], [ 133, 34 ], [ 136, 38 ], [ 109, 41 ], [ 45, 44 ], [ 122, 47 ], [ 134, 51 ], [ 44, 52 ], [ 137, 56 ], [ 113, 56 ], [ 125, 56 ], [ 131, 58 ], [ 128, 59 ], [ 124, 64 ], [ 134, 72 ], [ 44, 73 ], [ 137, 78 ], [ 113, 78 ], [ 125, 78 ], [ 131, 80 ], [ 128, 81 ], [ 110, 84 ], [ 119, 84 ], [ 128, 86 ], [ 112, 91 ], [ 118, 94 ], [ 134, 102 ], [ 44, 103 ], [ 109, 110 ], [ 112, 113 ], [ 115, 116 ], [ 118, 119 ], [ 121, 122 ], [ 124, 125 ], [ 127, 128 ], [ 130, 131 ], [ 133, 134 ], [ 136, 137 ] ]
[ "import sys\na = [int(c) for c in input().split()]\nN = a[0]\nA = a[1]\nB = a[2]\nS = input()\n\ncnt = 0\nf = 0\n\nfor i in range(N):\n if S[i] == \"a\":\n if cnt < A+B:\n print(\"Yes\")\n cnt+=1 \n else:\n print(\"No\")\n elif S[i] == \"b\":\n if cnt < A+B and f+1 <= B:\n print(\"Yes\")\n cnt+=1\n f+=1\n else:\n print(\"No\")\n pass\n elif S[i] == \"c\":\n print(\"No\")", "import sys", "sys", "int(c) for c in input().split()", "for c in input().split()", "c", "input().split()", "().split", "()", "input", "split", "for c in input().split()", "int(c)", "int", "c", "a = [int(c) for c in input().split()]", "a", "[int(c) for c in input().split()]", "N = a[0]", "N", "a[0]", "a", "0", "A = a[1]", "A", "a[1]", "a", "1", "B = a[2]", "B", "a[2]", "a", "2", "S = input()", "S", "input()", "input", "cnt = 0", "cnt", "0", "f = 0", "f", "0", "for i in range(N):\n if S[i] == \"a\":\n if cnt < A+B:\n print(\"Yes\")\n cnt+=1 \n else:\n print(\"No\")\n elif S[i] == \"b\":\n if cnt < A+B and f+1 <= B:\n print(\"Yes\")\n cnt+=1\n f+=1\n else:\n print(\"No\")\n pass\n elif S[i] == \"c\":\n print(\"No\")", "i", "range(N)", "range", "N", "if S[i] == \"a\":\n if cnt < A+B:\n print(\"Yes\")\n cnt+=1 \n else:\n print(\"No\")\n elif S[i] == \"b\":\n if cnt < A+B and f+1 <= B:\n print(\"Yes\")\n cnt+=1\n f+=1\n else:\n print(\"No\")\n pass\n elif S[i] == \"c\":\n print(\"No\")", "S[i] == \"a\"", "S[i]", "S", "i", "\"a\"", "if cnt < A+B:\n print(\"Yes\")\n cnt+=1 \n else:\n print(\"No\")\n ", "cnt < A+B", "cnt", "A+B", "A", "B", "print(\"Yes\")", "print", "\"Yes\"", "cnt+=1", "cnt", "1", "print(\"No\")", "print", "\"No\"", "elif S[i] == \"b\":\n if cnt < A+B and f+1 <= B:\n print(\"Yes\")\n cnt+=1\n f+=1\n else:\n print(\"No\")\n pass\n ", "S[i] == \"b\"", "S[i]", "S", "i", "\"b\"", "if cnt < A+B and f+1 <= B:\n print(\"Yes\")\n cnt+=1\n f+=1\n else:\n print(\"No\")\n ", "cnt < A+B and f+1 <= B", "cnt < A+B", "cnt", "A+B", "A", "B", "f+1 <= B", "f+1", "f", "1", "B", "print(\"Yes\")", "print", "\"Yes\"", "cnt+=1", "cnt", "1", "f+=1", "f", "1", "print(\"No\")", "print", "\"No\"", "elif S[i] == \"c\":\n print(\"No\")", "S[i] == \"c\"", "S[i]", "S", "i", "\"c\"", "print(\"No\")", "print", "\"No\"", "f = 0", "0", "f", "cnt+=1", "1", "cnt", "a = [int(c) for c in input().split()]", "[int(c) for c in input().split()]", "a", "f+=1", "1", "f", "N = a[0]", "a[0]", "N", "cnt+=1", "1", "cnt", "B = a[2]", "a[2]", "B", "A = a[1]", "a[1]", "A", "S = input()", "input()", "S", "cnt = 0", "0", "cnt" ]
import sys a = [int(c) for c in input().split()] N = a[0] A = a[1] B = a[2] S = input() cnt = 0 f = 0 for i in range(N): if S[i] == "a": if cnt < A+B: print("Yes") cnt+=1 else: print("No") elif S[i] == "b": if cnt < A+B and f+1 <= B: print("Yes") cnt+=1 f+=1 else: print("No") pass elif S[i] == "c": print("No")
[ 7, 0, 13, 4, 13, 13, 4, 18, 4, 13, 13, 13, 13, 0, 13, 4, 13, 0, 13, 17, 0, 13, 17, 28, 13, 4, 13, 13, 14, 2, 2, 18, 13, 13, 17, 2, 13, 2, 13, 13, 4, 13, 17, 0, 13, 17, 14, 2, 2, 2, 18, 13, 13, 17, 2, 13, 2, 13, 13, 2, 13, 13, 4, 13, 17, 0, 13, 17, 0, 13, 17, 4, 13, 17, 10, 4, 13, 10, 17, 13, 10, 17, 13, 10, 17, 13, 10, 17, 13, 10, 4, 13, 10, 17, 13, 10, 4, 13, 10, 4, 13 ]
[ [ 99, 2 ], [ 99, 11 ], [ 99, 12 ], [ 96, 14 ], [ 78, 18 ], [ 87, 21 ], [ 25, 24 ], [ 100, 27 ], [ 97, 32 ], [ 24, 33 ], [ 79, 36 ], [ 82, 36 ], [ 85, 36 ], [ 91, 38 ], [ 76, 39 ], [ 84, 44 ], [ 97, 51 ], [ 24, 52 ], [ 79, 55 ], [ 82, 55 ], [ 85, 55 ], [ 91, 57 ], [ 76, 58 ], [ 88, 60 ], [ 94, 60 ], [ 76, 61 ], [ 81, 66 ], [ 93, 69 ], [ 99, 76 ], [ 78, 79 ], [ 81, 82 ], [ 84, 85 ], [ 87, 88 ], [ 99, 91 ], [ 93, 94 ], [ 96, 97 ], [ 99, 100 ] ]
[ "N,A,B=map(int,input().split())\nS=input()\n\ncnt=0\nfl=0\n\nfor i in range(N):\n if S[i]=='a' and cnt<A+B:\n print('Yes')\n cnt+=1\n elif S[i]=='b' and cnt<A+B and fl<B:\n print('Yes')\n cnt+=1\n fl+=1\n else:\n print('No')", "N,A,B=map(int,input().split())", "N", "map(int,input().split())", "map", "int", "input().split()", "().split", "()", "input", "split", "A", "B", "S=input()", "S", "input()", "input", "cnt=0", "cnt", "0", "fl=0", "fl", "0", "for i in range(N):\n if S[i]=='a' and cnt<A+B:\n print('Yes')\n cnt+=1\n elif S[i]=='b' and cnt<A+B and fl<B:\n print('Yes')\n cnt+=1\n fl+=1\n else:\n print('No')", "i", "range(N)", "range", "N", "if S[i]=='a' and cnt<A+B:\n print('Yes')\n cnt+=1\n elif S[i]=='b' and cnt<A+B and fl<B:\n print('Yes')\n cnt+=1\n fl+=1\n else:\n print('No')", "S[i]=='a' and cnt<A+B", "S[i]=='a'", "S[i]", "S", "i", "'a'", "cnt<A+B", "cnt", "A+B", "A", "B", "print('Yes')", "print", "'Yes'", "cnt+=1", "cnt", "1", "elif S[i]=='b' and cnt<A+B and fl<B:\n print('Yes')\n cnt+=1\n fl+=1\n ", "S[i]=='b' and cnt<A+B and fl<B", "S[i]=='b' and cnt<A+B", "S[i]=='b'", "S[i]", "S", "i", "'b'", "cnt<A+B", "cnt", "A+B", "A", "B", "fl<B", "fl", "B", "print('Yes')", "print", "'Yes'", "cnt+=1", "cnt", "1", "fl+=1", "fl", "1", "print('No')", "print", "'No'", "B=map(int,input().split())", "map(int,input().split())", "B", "cnt=0", "0", "cnt", "cnt+=1", "1", "cnt", "cnt+=1", "1", "cnt", "fl=0", "0", "fl", "A,B=map(int,input().split())", "map(int,input().split())", "A", "fl+=1", "1", "fl", "S=input()", "input()", "S", "N,A,B=map(int,input().split())", "map(int,input().split())", "N" ]
N,A,B=map(int,input().split()) S=input() cnt=0 fl=0 for i in range(N): if S[i]=='a' and cnt<A+B: print('Yes') cnt+=1 elif S[i]=='b' and cnt<A+B and fl<B: print('Yes') cnt+=1 fl+=1 else: print('No')
[ 7, 0, 13, 4, 13, 13, 4, 18, 4, 13, 13, 17, 13, 13, 0, 13, 4, 13, 4, 13, 0, 13, 17, 0, 13, 2, 13, 13, 0, 13, 17, 0, 13, 39, 28, 13, 13, 14, 2, 13, 13, 14, 2, 13, 17, 0, 13, 17, 4, 18, 13, 13, 17, 14, 2, 13, 17, 14, 40, 13, 13, 0, 13, 17, 0, 13, 17, 4, 18, 13, 13, 17, 4, 18, 13, 13, 17, 14, 2, 13, 17, 4, 18, 13, 13, 17, 4, 18, 13, 13, 17, 28, 13, 13, 4, 13, 13, 10, 17, 13, 10, 39, 13, 10, 17, 13, 10, 2, 13, 10, 17, 13, 10, 4, 13, 10, 4, 13, 10, 17, 13, 10, 4, 13, 10, 4, 13, 10, 17, 13 ]
[ [ 125, 2 ], [ 125, 12 ], [ 125, 13 ], [ 116, 15 ], [ 98, 21 ], [ 107, 24 ], [ 114, 26 ], [ 123, 27 ], [ 128, 29 ], [ 101, 32 ], [ 36, 35 ], [ 117, 35 ], [ 99, 39 ], [ 105, 39 ], [ 111, 39 ], [ 108, 40 ], [ 35, 43 ], [ 110, 46 ], [ 102, 50 ], [ 35, 55 ], [ 129, 59 ], [ 120, 59 ], [ 123, 60 ], [ 104, 62 ], [ 119, 65 ], [ 102, 69 ], [ 102, 74 ], [ 35, 79 ], [ 102, 83 ], [ 102, 88 ], [ 93, 92 ], [ 102, 92 ], [ 92, 96 ], [ 98, 99 ], [ 101, 102 ], [ 104, 105 ], [ 107, 108 ], [ 110, 111 ], [ 125, 114 ], [ 116, 117 ], [ 119, 120 ], [ 125, 123 ], [ 125, 126 ], [ 128, 129 ] ]
[ "N, A, B = map(int, input().split(' '))\nS = list(input())\n\npassed_num = 0\nlimit = A + B\nranking_foreign = 1\n\nresults = []\n\nfor examinee in S:\n if passed_num < limit:\n if examinee == 'a':\n passed_num += 1\n results.append('Yes')\n elif examinee == 'b':\n if ranking_foreign <= B:\n passed_num += 1\n ranking_foreign += 1\n results.append('Yes')\n else:\n results.append('No')\n elif examinee == 'c':\n results.append('No')\n else:\n results.append('No')\n\nfor result in results:\n print(result)", "N, A, B = map(int, input().split(' '))", "N", "map(int, input().split(' '))", "map", "int", "input().split(' ')", "().split", "()", "input", "split", "' '", "A", "B", "S = list(input())", "S", "list(input())", "list", "input()", "input", "passed_num = 0", "passed_num", "0", "limit = A + B", "limit", "A + B", "A", "B", "ranking_foreign = 1", "ranking_foreign", "1", "results = []", "results", "[]", "for examinee in S:\n if passed_num < limit:\n if examinee == 'a':\n passed_num += 1\n results.append('Yes')\n elif examinee == 'b':\n if ranking_foreign <= B:\n passed_num += 1\n ranking_foreign += 1\n results.append('Yes')\n else:\n results.append('No')\n elif examinee == 'c':\n results.append('No')\n else:\n results.append('No')", "examinee", "S", "if passed_num < limit:\n if examinee == 'a':\n passed_num += 1\n results.append('Yes')\n elif examinee == 'b':\n if ranking_foreign <= B:\n passed_num += 1\n ranking_foreign += 1\n results.append('Yes')\n else:\n results.append('No')\n elif examinee == 'c':\n results.append('No')\n else:\n results.append('No')", "passed_num < limit", "passed_num", "limit", "if examinee == 'a':\n passed_num += 1\n results.append('Yes')\n elif examinee == 'b':\n if ranking_foreign <= B:\n passed_num += 1\n ranking_foreign += 1\n results.append('Yes')\n else:\n results.append('No')\n elif examinee == 'c':\n results.append('No')\n ", "examinee == 'a'", "examinee", "'a'", "passed_num += 1", "passed_num", "1", "results.append('Yes')", "results.append", "results", "append", "'Yes'", "elif examinee == 'b':\n if ranking_foreign <= B:\n passed_num += 1\n ranking_foreign += 1\n results.append('Yes')\n else:\n results.append('No')\n ", "examinee == 'b'", "examinee", "'b'", "if ranking_foreign <= B:\n passed_num += 1\n ranking_foreign += 1\n results.append('Yes')\n else:\n results.append('No')\n ", "ranking_foreign <= B", "ranking_foreign", "B", "passed_num += 1", "passed_num", "1", "ranking_foreign += 1", "ranking_foreign", "1", "results.append('Yes')", "results.append", "results", "append", "'Yes'", "results.append('No')", "results.append", "results", "append", "'No'", "elif examinee == 'c':\n results.append('No')\n ", "examinee == 'c'", "examinee", "'c'", "results.append('No')", "results.append", "results", "append", "'No'", "results.append('No')", "results.append", "results", "append", "'No'", "for result in results:\n print(result)", "result", "results", "print(result)", "print", "result", "passed_num = 0", "0", "passed_num", "results = []", "[]", "results", "passed_num += 1", "1", "passed_num", "limit = A + B", "A + B", "limit", "passed_num += 1", "1", "passed_num", "A, B = map(int, input().split(' '))", "map(int, input().split(' '))", "A", "S = list(input())", "list(input())", "S", "ranking_foreign += 1", "1", "ranking_foreign", "B = map(int, input().split(' '))", "map(int, input().split(' '))", "B", "N, A, B = map(int, input().split(' '))", "map(int, input().split(' '))", "N", "ranking_foreign = 1", "1", "ranking_foreign" ]
N, A, B = map(int, input().split(' ')) S = list(input()) passed_num = 0 limit = A + B ranking_foreign = 1 results = [] for examinee in S: if passed_num < limit: if examinee == 'a': passed_num += 1 results.append('Yes') elif examinee == 'b': if ranking_foreign <= B: passed_num += 1 ranking_foreign += 1 results.append('Yes') else: results.append('No') elif examinee == 'c': results.append('No') else: results.append('No') for result in results: print(result)
[ 7, 0, 13, 4, 13, 13, 4, 18, 4, 13, 13, 13, 13, 0, 13, 4, 13, 0, 13, 17, 0, 13, 17, 28, 13, 13, 14, 2, 13, 17, 4, 13, 17, 14, 2, 13, 17, 14, 2, 2, 13, 13, 2, 2, 13, 13, 2, 13, 13, 4, 13, 17, 0, 13, 17, 4, 13, 17, 14, 2, 13, 17, 14, 2, 2, 13, 13, 2, 13, 13, 0, 13, 17, 4, 13, 17, 4, 13, 17, 10, 17, 13, 10, 4, 13, 10, 17, 13, 10, 17, 13, 10, 4, 13, 10, 4, 13, 10, 4, 13, 10, 17, 13 ]
[ [ 98, 2 ], [ 98, 11 ], [ 98, 12 ], [ 92, 14 ], [ 86, 18 ], [ 101, 21 ], [ 25, 24 ], [ 93, 24 ], [ 24, 28 ], [ 24, 35 ], [ 102, 40 ], [ 81, 40 ], [ 84, 41 ], [ 87, 44 ], [ 90, 44 ], [ 102, 45 ], [ 81, 45 ], [ 96, 47 ], [ 84, 48 ], [ 80, 53 ], [ 24, 60 ], [ 87, 65 ], [ 90, 65 ], [ 102, 66 ], [ 81, 66 ], [ 96, 68 ], [ 84, 69 ], [ 89, 71 ], [ 80, 81 ], [ 98, 84 ], [ 86, 87 ], [ 89, 90 ], [ 92, 93 ], [ 98, 96 ], [ 98, 99 ], [ 101, 102 ] ]
[ "N, A, B = map(int, input().split())\nS = input()\n\ncnt_a = 0\ncnt_b = 0\nfor s in S:\n if s == 'c':\n print('No')\n elif s == 'b':\n if (cnt_b < B) and ((cnt_a + cnt_b) < (A + B)):\n print('Yes')\n cnt_b += 1\n else:\n print('No')\n elif s == 'a':\n if (cnt_a + cnt_b) < (A + B):\n cnt_a += 1\n print('Yes')\n else:\n print('No')", "N, A, B = map(int, input().split())", "N", "map(int, input().split())", "map", "int", "input().split()", "().split", "()", "input", "split", "A", "B", "S = input()", "S", "input()", "input", "cnt_a = 0", "cnt_a", "0", "cnt_b = 0", "cnt_b", "0", "for s in S:\n if s == 'c':\n print('No')\n elif s == 'b':\n if (cnt_b < B) and ((cnt_a + cnt_b) < (A + B)):\n print('Yes')\n cnt_b += 1\n else:\n print('No')\n elif s == 'a':\n if (cnt_a + cnt_b) < (A + B):\n cnt_a += 1\n print('Yes')\n else:\n print('No')", "s", "S", "if s == 'c':\n print('No')\n elif s == 'b':\n if (cnt_b < B) and ((cnt_a + cnt_b) < (A + B)):\n print('Yes')\n cnt_b += 1\n else:\n print('No')\n elif s == 'a':\n if (cnt_a + cnt_b) < (A + B):\n cnt_a += 1\n print('Yes')\n else:\n print('No')", "s == 'c'", "s", "'c'", "print('No')", "print", "'No'", "elif s == 'b':\n if (cnt_b < B) and ((cnt_a + cnt_b) < (A + B)):\n print('Yes')\n cnt_b += 1\n else:\n print('No')\n ", "s == 'b'", "s", "'b'", "if (cnt_b < B) and ((cnt_a + cnt_b) < (A + B)):\n print('Yes')\n cnt_b += 1\n else:\n print('No')\n ", "(cnt_b < B) and ((cnt_a + cnt_b) < (A + B))", "cnt_b < B", "cnt_b", "B", "(cnt_a + cnt_b) < (A + B)", "cnt_a + cnt_b", "cnt_a", "cnt_b", "A + B", "A", "B", "print('Yes')", "print", "'Yes'", "cnt_b += 1", "cnt_b", "1", "print('No')", "print", "'No'", "elif s == 'a':\n if (cnt_a + cnt_b) < (A + B):\n cnt_a += 1\n print('Yes')\n else:\n print('No')", "s == 'a'", "s", "'a'", "if (cnt_a + cnt_b) < (A + B):\n cnt_a += 1\n print('Yes')\n else:\n print('No')", "(cnt_a + cnt_b) < (A + B)", "cnt_a + cnt_b", "cnt_a", "cnt_b", "A + B", "A", "B", "cnt_a += 1", "cnt_a", "1", "print('Yes')", "print", "'Yes'", "print('No')", "print", "'No'", "cnt_b += 1", "1", "cnt_b", "B = map(int, input().split())", "map(int, input().split())", "B", "cnt_a = 0", "0", "cnt_a", "cnt_a += 1", "1", "cnt_a", "S = input()", "input()", "S", "A, B = map(int, input().split())", "map(int, input().split())", "A", "N, A, B = map(int, input().split())", "map(int, input().split())", "N", "cnt_b = 0", "0", "cnt_b" ]
N, A, B = map(int, input().split()) S = input() cnt_a = 0 cnt_b = 0 for s in S: if s == 'c': print('No') elif s == 'b': if (cnt_b < B) and ((cnt_a + cnt_b) < (A + B)): print('Yes') cnt_b += 1 else: print('No') elif s == 'a': if (cnt_a + cnt_b) < (A + B): cnt_a += 1 print('Yes') else: print('No')