qyliang/CodeNanoFix huggingface dataset:
Buggy code:
s, t = map(input().split())
a, b = map(int, input().split())
u = input()
print(a-1,b if s==u else a,b-1)

Fixed code:
s,t = map(str,input().split())
a,b = map(int,input().split())
u = input()

if u == s:
    print(a-1,b)
else:
    print(a,b-1)
Buggy code:
N_dict  = {i:0 for i in list(map(str,input().split()))}
N_List = list(map(int,input().split()))
ct = 0
for i in N_dict.keys():
    N_dict[i] = N_List[0]
    ct += 1
print(N_dict[str(input())]-1)

Fixed code:
N_dict  = {i:0 for i in list(map(str,input().split()))}
N_List = list(map(int,input().split()))
ct = 0
for i in N_dict.keys():
    N_dict[i] = N_List[ct]
    ct += 1

N_dict[str(input())] -= 1
print(" ".join(list(map(str,N_dict.values()))))
Buggy code:
S, T = map(str, input().split())
A, B = map(int, input().split())
U = input()

if U = S:
  	A -= 1
else:
  	B -= 1

print(A),
print(B)

Fixed code:
S, T = map(str, input().split())
A, B = map(int, input().split())
U = input()

if U == S:
    A -= 1
else:
    B -= 1

print(str(A) + " " + str(B))
Buggy code:
S,T=map(lambda x: x, input().split())
A,B=int(input().split())
U=input()
L=[(S,A),(T,B)]
for l in L:
  x,y=l
  if x==U:
    print(y-1, end=" ")
  else:
    print(y, end=" ")

Fixed code:
S,T=map(lambda x: x, input().split())
A,B=map(int,input().split())
U=input()
L=[(S,A),(T,B)]
for l in L:
  x,y=l
  if x==U:
    print(y-1, end=" ")
  else:
    print(y, end=" ")
Buggy code:
s, t = input.split()
a, b = input.split()
u = input()

if u == s:
    print(a-1, b)
if u == t:
    print(a, b-1)

Fixed code:
s, t = input().split()
a, b = input().split()
u = input()

a = int(a)
b = int(b)

if u == s:
    print(a-1, b)
if u == t:
    print(a, b-1)
Buggy code:
S,T = input (),split ()
A,B = map (int, input ().split ())
U = input ()
if U == S:
  print (A-1,B)
else:
  print (A,B-1)

Fixed code:
S, T = input().split()
A, B = map(int,input().split())
U = input()
if S==U:
    print(A-1,B)
else:
    print(A,B-1)
Buggy code:
s,t=input().split()
a,b=map(int,input().split())
u=input()
if u = s:
  a -=1
else:
  b -=1
print(a,b)

Fixed code:
s, t = input().split()
a, b = list(map(int, input().split()))
u = input()

if u == s:
	print(a - 1, b)
else:
	print(a, b - 1)
Buggy code:
S, T = input().split()
A, B = map(int, input().split())
U = input()
if U == S:    A -= 1
else: B -= 1
print(A, 😎

Fixed code:
S,T=input().split()
A,B=map(int,input().split())
U=input()

if S==U:
  print(A-1,B)
else:
  print(A, B-1)
Buggy code:
S,T=input().split()
A,B=(int(x) for x in input().split())
U = input()

if S == U:
  A = A - 1
  print(A B)
  
else:
  B = B - 1
  print(A B)

Fixed code:
S,T=input().split()
A,B=(int(x) for x in input().split())
U = input()
 
if S == U:
  A = A - 1
  print(A, B)
  
else:
  B = B - 1
  print(A, B)
Buggy code:
S, T = input().split()
A, B = map(int, input().split())
U = input().split()


if S == U:
    print(A-1, B)
else:
    print(A, B-1)

Fixed code:
S,T=input().split()
A,B=map(int,input().split())
U=input()
if S==U:
    print(A-1,B)
else:
    print(A,B-1)
Buggy code:
S, T = input().split()
A, B = map(int, input().split())
U = input()

if U == S:
    print(S-1, T)
else:
    print(S, T-1)


Fixed code:
S,T = map(str,input().split(" "))
A, B = map(int,input().split(" "))
U = input()

if U == S:
    print(A - 1,B)
else:
    print(A,B - 1)
Buggy code:
S,T = map(str,input().split())
A,B = map(int,input().split())
U = input()
if S == U:
  print(str(A-1) + '' + str(B))
else:
  print(str(A) + '' + str(B-1))

Fixed code:
S,T = map(str,input().split())
A,B = map(int,input().split())
U = input()
if S == U:
  print(str(A-1) + ' ' + str(B))
else:
  print(str(A) + ' ' + str(B-1))
Buggy code:
S, T = input().split()
a, b = map(int, input().spilt())
U = input()

if S==U: a-=1
else: b-=1

print(a, b)

Fixed code:
S, T = input().split()
a, b = map(int, input().split())
U = input()

if S==U: a-=1
else: b-=1

print(a, b)
Buggy code:
s,t = input().split()
a,b = map(int, input().split())
u = input()

dic = {s: a, t: b}
dic[u] -= 1
print(dic[s] + ' ' + dic[t])

Fixed code:
s,t = input().split()
a,b = map(int, input().split())
u = input()
 
dic = {s: a, t: b}
dic[u] -= 1
print(str(dic[s]) + ' ' + str(dic[t]))
Buggy code:
S,T = input().split()
A,B = map(int, input().split())
U = input()

if U = S: A-=1
else: B-=1
print(A,B)

Fixed code:
S,T=input().split()
A,B=map(int,input().split())
U=input()

if U==S:
  A-=1
else:
  B-=1
print(A,B)
Buggy code:
(s,t),(a,b),u=input().split(),map(int,input().split()),input();print(a-(s==u),b-(t--u))

Fixed code:
(s,t),(a,b),u=input().split(),map(int,input().split()),input();print(a-(s==u),b-(t==u))
Buggy code:
s,t=input().split(' ')
a,b=map(int,input().split())
u=input()
if u==s:
  a=a-1
if u==t:
  b=b-1
print(a+' '+b)

Fixed code:
s, t = map(str, input().split())
a, b = map(int, input().split())
u = input()

if u == s:
    a -= 1
else:
    b -= 1

print(str(a) + " " + str(b))
Buggy code:
s,t=input().split()
a,b=map(int,iinput().split())
u=input()
if u==s:
  a=a-1
if u==t:
  b=b-1
print(a+' '+b)

Fixed code:
s,t=input().split(' ')
a,b=map(int,input().split())
u=input()
if u==s:
    a=a-1
if u==t:
    b=b-1
print(str(a)+' '+str(b))
Buggy code:

s,t=input().split()
a,b=map(int,iinput().split())
u=input()
if u==s:
  a=a-1
if u==t:
  b=b-1
print(a,b)

Fixed code:
s,t=input().split()
a,b=map(int,input().split())
u=input()
if u==t:
    print(a,b-1)
else:
    print(a-1,b)
Buggy code:
s, t = input().split()
a, b = map(int, input().split())
u = input()

if s == t:
    a -= 1
else:
    b -= 1

print(a, b)

Fixed code:
s,t=input().split()
a,b=map(int,input().split())
u=input()

if u==s:
  a-=1
else:
  b-=1
print(a,b)
Buggy code:
S, T = map(str, input().split())
A, B = map(int, input().split())
U = str(input())
if U == S:
    print(A - 1)
else:
    print(B - 1)

Fixed code:
S,T=input().split()
A,B=input().split()
A=int(A)
B=int(B)
U=input()
if U==S:
  A-=1
else:
  B-=1
print(A,B)
Buggy code:
S, T = map(str, input().split())
A, B = map(int, input().split())
U = input()

if U == "blue":
    print(str(A) + "" +str(int(B-1)))
else:
    print(str(int(A-1)) + "" +str(int(B)))

Fixed code:
S, T = input().split()
A, B = map(int,input().split())
U = input()

if U == S:
    A = A-1
else:
    B = B-1

print(str(A) + ' ' + str(B))
Buggy code:
S,T=map(int,input().split())
A,B=map(int,input().split())
U=input()
if U=S:
  print("{} {}".format(A-1,B))
if U=T:
  print("{} {}".format(A,B-1))
  

Fixed code:
S, T = input().split()
A, B = map(int, input().split())
U = input()

if U == S:
  A -= 1
else:
  B -= 1

print('{} {}'.format(A, B))
Buggy code:
a,b = map(str, input().split())
c,d = map(int, input().split())
e = input()
if a == e:
  c -= 1
else:
  d -= 1
print(a,b)

Fixed code:
a,b = map(str, input().split())
c,d = map(int, input().split())
e = input()
if a == e:
  c -= 1
else:
  d -= 1
print(c,d)
Buggy code:
S, T = input().split()
A,B = map(int,input().split())
U = input()
print(A,B)
if U == S:
  A -= 1
  print(A)
else:
  B -= 1
  print(B)
    

Fixed code:
S, T = input().split()
A,B = map(int,input().split())
U = input()
if U == S:
  A -= 1
  print(A,B)
else:
  B -= 1
  print(A,B)
Buggy code:
import sys


def resolve():
    input = sys.stdin.readline

    S, T = map(str, input().split())
    A, B = map(int, input().split())
    U = input()

    if S == U:
        A -= 1
        print(str(A) + ' ' + str(B))
        return
    B -= 1
    print(str(A) + ' ' + str(B))


resolve()


Fixed code:
import sys


def resolve():
    S, T = map(str, input().split())
    A, B = map(int, input().split())
    U = input()

    if S == U:
        A -= 1
        print(str(A) + ' ' + str(B))
        return
    B -= 1
    print(str(A) + ' ' + str(B))


resolve()
Buggy code:
s,t=input().split()
a,b=map(int,input().split())
u=input().split()

if s==u:
    print(a-1,b)
else:
    print(a,b-1)



Fixed code:
s,t = map(str,input().split())
a,b = map(int,input().split())
u = str(input())
if u == s:
  print(a-1,b)
else:
  print(a,b-1)
Buggy code:
S, T = map(input().split())
A, B = map(int, input().split())
U = input()
if S=U:
  print("{} {}".format(S-1,T))
else:
  print("{} {}".format(S,T-1)


Fixed code:

S, T = input().split()
A, B = map(int, input().split())
U = input()
if S==U:
  print("{} {}".format(A-1,B))
else:
  print("{} {}".format(A,B-1))
Buggy code:
s,t = map(str,input().split())
a,b = map(int,input().split())
u=input()

if s==u:
    print(a-1)

else:
    print(b-1)

Fixed code:
s, t = input().split()
a, b = map(int, input().split())
u = input()

if u == s:
    print(a-1, b)
else:
    print(a, b-1)
Buggy code:
strings = input().split()
nums =  list(map(int, input().split(" ")))
delete = input()
for i in range(2):
    nums[i] = (nums[i] -1)  if strings[i] == delete else nums[i]
print(nums)

Fixed code:
strings = input().split()
nums =  list(map(int, input().split(" ")))
delete = input()
for i in range(2):
    nums[i] = (nums[i] -1)  if strings[i] == delete else nums[i]
print(*nums)
Buggy code:
tmp = input().split()
S = tmp[0]
T = tmp[1]
i = list(map(int, input().split()))
A = i[0]
B = i[1]
U = input()

if S == U:
  print(str(A-1) + " " + str(B))
else:
  print(str(B) + " " + str(A))

Fixed code:
tmp = input().split()
S = tmp[0]
T = tmp[1]
i = list(map(int, input().split()))
A = i[0]
B = i[1]
U = input()

if S == U:
  print(str(A-1) + " " + str(B))
else:
  print(str(A) + " " + str(B-1))
Buggy code:
S = list(map(int, input().split()))
A = list(map(int, input().split()))
U = int(input())

ind = S.index(U)

A[ind] -= 1

print("".join(A))


Fixed code:
S = list(map(str, input().split()))
A = list(map(int, input().split()))
U = input()

ind = S.index(U)

A[ind] -= 1

print(" ".join(list(map(str, A))))
Buggy code:
s,t=input().split()
a,b=map(int,input().split())
u=input()

if u==s:
  a=a-1

if u==t:
  b=b-1

print([str(a)+" "+str(b)])


Fixed code:
s,t=input().split()
a,b=map(int,input().split())
u=input()

if u==s:
  a=a-1

if u==t:
  b=b-1

print(*[str(a)+" "+str(b)])
Buggy code:
ball = input().split()
number = list(map(int, input().split()))
U = input()

if U == ball[0]:
    number[0] -= 1
else:
    number[1] -= 1
print(number)


Fixed code:
ball = input().split()
number = list(map(int, input().split()))
U = input()

if U == ball[0]:
    number[0] -= 1
else:
    number[1] -= 1
print(number[0], number[1])
Buggy code:
s, t = list(map(str, input().split()))
a, b = list(map(int, input().split()))
u = input()

if s == u:
  print(a-1,b)
if s == t:
  print(b,a-1)

Fixed code:
s, t = list(map(str, input().split()))
a, b = list(map(int, input().split()))
u = input()

if s == u:
  print(a - 1, b)
if t == u:
  print(a, b - 1)
Buggy code:
S, T = input().split()
A, B = map(int, input().split())
if S == input():
  A -=1
else:
  B -=1
print("{0}" "{1}".format(A, B))



Fixed code:
S, T = input().split()
A, B = map(int, input().split())
if S == input():
    A -= 1
else:
    B -= 1
print("{0} {1}".format(A, B))
Buggy code:
keys = input.split()
values = tuple(map(int, input().split()))

ball = dict(zip(keys, values))
u = input()

ball[u] -= 1
print(ball[keys[0]], ball[keys[1]])


Fixed code:
keys = input().split()
values = tuple(map(int, input().split()))

ball = dict(zip(keys, values))
u = input()

ball[u] -= 1
print(ball[keys[0]], ball[keys[1]])
Buggy code:
s, t = map(str, input().split())
a, b = map(int, input().split())
n = input()
if n == a: print(a-1, b)
else: print(a, b-1)

Fixed code:
s, t = map(str, input().split())
a, b = map(int, input().split())
n = input()
if n == s: print(a-1, b)
else: print(a, b-1)
Buggy code:
ss=input().split()
a,b=list(map(int,input()))
s=input()
if s==ss[0]: print(a-1,b)
elif s==ss[1]:print(a,b-1)

Fixed code:
ss=input().split()
a,b=list(map(int,input().split()))
s=input()
if s==ss[0]: print(a-1,b)
elif s==ss[1]:print(a,b-1)
Buggy code:
S, T = input().split()
A, B = map(int, input().split())
U = input()

print(A-1, B if S==U else A, B-1)


Fixed code:
S, T = input().split()
A, B = map(int, input().split())
U = input()

if S == U:
  A -= 1
else:
  B -= 1
print(A, B)
Buggy code:
s,t = list(input().split())
a,b = list(map(int, input().split()))

if input() == s:
  print(a-1)
else:
  print(b-1)

Fixed code:
s,t = input().split()
a,b = map(int,input().split())
t = input()
if t == s:
  print(a-1,b)
else:
  print(a,b-1)
Buggy code:
s,t = map(input().split())
a,b = map(int,input().split())
u = input()
if s==u:
    a = a-1
    print(a,b)
else :
    b = b-1
    print(a,b)      

Fixed code:

s, t = list(input().split())
a, b = list(map(int, input().split()))
u = input()


if s == u:
    print(a-1, b)
else:
    print(a, b-1)
Buggy code:
S, T = map(str, input().split())
A, B = map(int, input().split())
U = input()

if U == S:
  A = A-1
if U == T:
  B == B-1

print(A,B)

Fixed code:
S, T = map(str, input().split())
A, B = map(int, input().split())
U = input()

if U == S:
  A = A-1
if U == T:
  B = B-1

print(A,B)
Buggy code:
s,t = map(input().split())
a,b = map(int,input().split())
u = input()
if s==u:
    a-=1
    print(a,b)
elif t==u:
    b-=1
    print(a,b)      

Fixed code:
s,t=input().split()
a,b=map(int,input().split())
u=input()

if u==s:
    a-=1
else:
    b-=1
print(a,b)
Buggy code:
#! env/bin/local python3

s, t = input().split()
a, b = map(int, input().split())
u = int(input())

balls = {
    s: a,
    t: b
}

balls[u] -= 1

print(f'{balls[s]} {balls[t]}')


Fixed code:
#! env/bin/local python3

s, t = input().split()
a, b = map(int, input().split())
u = input()

balls = {
    s: a,
    t: b
}

balls[u] -= 1

print('{} {}'.format(balls[s], balls[t]))
Buggy code:
import sys
input=sys.stdin.buffer.readline
#from collections import defaultdict
#d = defaultdict(int)
#import fractions
#import math
#import collections
#from collections import deque
#from bisect import bisect_left
#N = int(input())
#A = list(map(int,input().split()))
#S = list(input())
#S.remove("\n")
#N,M = map(int,input().split())
#S,T = map(str,input().split())
#A = [int(input()) for _ in range(N)]
#S = [input() for _ in range(N)]
#A = [list(map(int,input().split())) for _ in range(N)]
#import itertools
S,T = input().split()
A,B = map(int,input().split())
U = input()
if S == U:
    print(A-1,B)
else:
    print(A,B-1)

Fixed code:
#import sys
#input=sys.stdin.buffer.readline
#from collections import defaultdict
#d = defaultdict(int)
#import fractions
#import math
#import collections
#from collections import deque
#from bisect import bisect_left
#N = int(input())
#A = list(map(int,input().split()))
#S = list(input())
#S.remove("\n")
#N,M = map(int,input().split())
#S,T = map(str,input().split())
#A = [int(input()) for _ in range(N)]
#S = [input() for _ in range(N)]
#A = [list(map(int,input().split())) for _ in range(N)]
#import itertools
S,T = input().split()
A,B = map(int,input().split())
U = input()
if S == U:
    print(A-1,B)
else:
    print(A,B-1)
Buggy code:
s,t = input().split()
a,b = (int(x) for x in input().split())
u = input()

if u==s:
    print(a-1)
elif u==t:
    print(b-1) 

Fixed code:
s,t = input().split()
a,b = (int(x) for x in input().split())
u = input()

if u==s:
    print(a-1 ,b)
elif u==t:
    print(a ,b-1)
Buggy code:
s = intput().split()
a = list(map(int, input().split()))
u = input()

if u == s[0]:
    print(a[0]-1, a[1])
else:
    print(a[0], a[1]-1)

Fixed code:
s = input().split()
a = list(map(int, input().split()))
u = input()

if u == s[0]:
    print(a[0]-1, a[1])
else:
    print(a[0], a[1]-1)
Buggy code:
a,b = input().split()
x,y = int(input().split())
k = input()

if a == k :
  print(x-1,y)
elif b == k :
  print(x,y-1)
else:
  print(x,y)


Fixed code:
a,b = input().split()
x,y = map(int,input().split())
k = input()

if a == k:
  print(x-1,y)
else:
  print(x,y-1)
Buggy code:
S, T = input().split()
A, B = map(int, input().split())
U = int(input())

if S == U:
  print (str(A-1)+" "+str(B))
else:
  print (str(A)+" "+str(B-1))

Fixed code:
S, T = input().split()
A, B = map(int, input().split())
U = input()
 
if S == U:
  print (str(A-1)+" "+str(B))
else:
  print (str(A)+" "+str(B-1))
Buggy code:
n.m = input().split()
r,b = map(int,input().split())
t = input()
if n == t:
  print(str(r-1) + ' ' + str(b))
else:
  print(str(r) + ' ' + str(b-1))


Fixed code:
n,m = input().split()
r,b = map(int,input().split())
t = input()
if n == t:
  print(str(r-1) + ' ' + str(b))
else:
  print(str(r) + ' ' + str(b-1))
Buggy code:
def getList():
    return list(map(int, input().split()))
  
s,t = input().split()
a, b = getList()
u = input.strip()

if s == u:
  print(a-1 ,b)
else:
  print(a, b-1)
    

Fixed code:
def getList():
    return list(map(int, input().split()))
  
s,t = input().split()
a, b = getList()
u = input().strip()
 
if s == u:
  print(a-1 ,b)
else:
  print(a, b-1)
Buggy code:
s,t=input().split()
a,b=map(int,input().split())
u=input()
if u == t:
    a -= 1
elif u == t:
    b -= 1
print(a,b)

Fixed code:
s,t=input().split()
a,b=map(int,input().split())
u=input()

if u==s:
    print(a-1,b)
elif u==t:
    print(a, b-1)
else:
    print(a,b)
Buggy code:
a,b=input().spit()
d={}
d[a]=0
d[b]=0
d[a],d[b]=map(int,input().split())
x=input()
d[x]-=1
print(d[a],d[b])

Fixed code:
a,b=input().split()
d={}
d[a]=0
d[b]=0
d[a],d[b]=map(int,input().split())
x=input()
d[x]-=1
print(d[a],d[b])
Buggy code:
s, t = input().split()
a, b = int(input().split())
u = input()

if s == u:
  a = a - 1
else:
  b =  b - 1
  
print("{} {}".format(a, b))

Fixed code:
s, t = input().split()
a, b = map(int, input().split())
u = input()
 
if s == u:
  a = a - 1
else:
  b =  b - 1
  
print("{} {}".format(a, b))
Buggy code:
a,b = input().split()
A,B = input().split()
c = input()
a = str(a)
b = str(b)
A = int(A)
B = int(B)
c = str(c)
d = A - 1
D = B - 1
if c == a:
    print(d)
elif c == b:
    print(D)

Fixed code:
a,b = input().split()
A,B = input().split()
c = input()
a = str(a)
b = str(b)
A = int(A)
B = int(B)
c = str(c)
d = A - 1
D = B - 1
if c == a:
    print(d,B)
elif c == b:
    print(A,D)
Buggy code:
s,t=map(input().split())
a,b=map(int,input().split())
u  =input()
if s==u:
	print(a-1)
else:
	print(b-1)

Fixed code:
s, t = input().split()
a, b = map(int, input().split())
u    = input()

if (u == s):
  a -= 1
elif (u == t):
  b -= 1

print(a, b)
Buggy code:
S, T = "red", "blue"
A, B = 3, 4
U = "red"

S, T = map(str, input().split())
A, B = map(int, input().split())
U = input()


def calculate(s, t, a, b, u):
    if u == "s":
        print("{} {}".format((a - 1), b))
    else:
        print("{} {}".format(a, (b - 1)))


calculate(S, T, A, B, U)


Fixed code:
S, T = "red", "blue"
A, B = 3, 4
U = "red"

S, T = map(str, input().split())
A, B = map(int, input().split())
U = input()


def calculate(s, t, a, b, u):
    if u == s:
        print("{} {}".format((a - 1), b))
    else:
        print("{} {}".format(a, (b - 1)))


calculate(S, T, A, B, U)
Buggy code:
s, t = input().split(" ")
a, b = (int(x) for x in input().split(" "))
u = input()
 
if s==u:
  print(s-1,t)
else:
  print(s,t-1)  

Fixed code:
s, t = input().split(" ")
a, b = (int(x) for x in input().split(" "))
u = input()
 
if s==u:
  print(a-1, b)
else:
  print(a, b-1)
Buggy code:
S, T =str, input().split()
A, B =map(int, input().split())
U = input()

if U == S:
    A -= 1
else:
    B -= 1

print(A, B)

Fixed code:
S, T = map(str, input().split())
A, B = map(int, input().split())
U = input()

if U == S:
    print(A-1,B)
else:
    print(A,B-1)
Buggy code:
s,t = map(int,input().split())
a,b = map(int,input().split())
u = input()
if u == s:
  a -= 1
else:
  b -= 1
print('{0} {1}'.format(a,b))

Fixed code:
s,t = input().split()
a,b = map(int,input().split())
u = input()
if u == s:
  a -= 1
else:
  b -= 1
print('{0} {1}'.format(a,b))
Buggy code:
import sys

def main():

    # sys.stdin = open("input154a.txt")

    s, t = input().split()
    a, b = map(int, input().split())
    u    = input()

    if s == t:
        a -= 1
    else:
        b -= 1

    print(str(a) + " " + str(b))

if __name__ == "__main__":
    main()


Fixed code:
import sys

def main():

    # sys.stdin = open("input154a.txt")

    s, t = input().split()
    a, b = map(int, input().split())
    u    = input()

    if s == u:
        a -= 1
    else:
        b -= 1

    print(str(a) + " " + str(b))

if __name__ == "__main__":
    main()
Buggy code:
s,t = map(int,input().split())
a,b = map(int,input().split())
u = input()
if u == s:
  a -= 1
else:
  b -= 1

Fixed code:
s, t = input().split()
a, b = map(int,input().split())
u = input()
if u == s:
    print(a-1, b)
else:
    print(a, b-1)
Buggy code:
S,T=map(str,input().split())
A,B=map(str,input().split())
U=str(input())
if U==S:
    A-=1
elif U==T:
    B-=1
print(A, B)


Fixed code:
S,T = map(str,input().split())
A,B = map(int,input().split())
U = str(input())
if S == U:
    print(A-1,B)
elif T == U:
    print(A,B-1)
Buggy code:
l = {}
s, t = input().split()
a, b = map(int, input().split())
u = input()
print(a, b-1) if s==u else print(a-1, b)


Fixed code:
l = {}
s, t = input().split()
a, b = map(int, input().split())
u = input()
print(a-1, b) if s==u else print(a, b-1)
Buggy code:
s, t = input().split()
a, b = list(map(int, input, split()))
u = input()
if u == s:
    print("{} {}".format(a-1, b))
else:
    print("{} {}".format(a, b-1))


Fixed code:
s, t = input().split()
a, b = list(map(int, input().split()))
u = input()
if u == s:
    print("{} {}".format(a-1, b))
else:
    print("{} {}".format(a, b-1))
Buggy code:
S,T = map(input().split())
A,B = map(int,input().split())
U = input()
if(S==U):
  print(A-1,B)
else:
  print(A,B-1)


Fixed code:
S, T = input().split()
A, B = map(int, input().split())
U = input()

if S == U:
  print(A-1, B)
else:
  print(A, B-1)
Buggy code:
s=list(input().split())
a,b=map(int,input().split())
print(a,b-1 if s.index(input())==1 else a-1,b)

Fixed code:
s=list(input().split())
a,b=map(int,input().split())
print(a,b-1) if s.index(input())==1 else print(a-1,b)
Buggy code:
S,T=map(str,input().split())
A,B=map(int,input().split())
U=input()
if S==U:
  A-=1
else:
  B-=1
print(A<B)


Fixed code:
S,T=map(str,input().split())
A,B=map(int,input().split())
U=input()
if S==U:
  A-=1
else:
  B-=1
print(A,B)
Buggy code:
a,b=input().split()
c,d=input().split()
e=input()
c=int(c)
d=int(d)
if a==e:
  print(c-1)
else:
  print(d-1)

Fixed code:
a,b=input().split()
c,d=input().split()
e=input()
c=int(c)
d=int(d)
if a==e:
  print(c-1,d)
else:
  print(c,d-1)
Buggy code:
a,b = input().split
c,d = map(int,input().split())
e = input()

if a == e:
  print("{} {}".format(c-1,d))
else:
  print("{} {}".format(c,d-1))

Fixed code:
a,b = input().split()
c,d = map(int,input().split())
e = input()

if a == e:
  print("{} {}".format(c-1,d))
else:
  print("{} {}".format(c,d-1))
Buggy code:
S, T = map(int, input().split())
a, b = map(int, input().split())
u = input()

if S == u:
  print(a-1, b)
else:
  print(a, b-1)

Fixed code:
S, T = map(str, input().split())
a, b = map(int, input().split())
u = input()

if S == u:
  print(a-1, b)
else:
  print(a, b-1)
Buggy code:
S,T=input().split(" ")
A,B=map(int,input().split(" "))
U=input()
if U==S:
    A=A-1
else:
    B=B-1
print(" ".join([A,B]))

Fixed code:
S,T=input().split(" ")
A,B=map(int,input().split(" "))
U=input()
if U==S:
    A=A-1
else:
    B=B-1
print(" ".join([str(A),str(B)]))
Buggy code:
a,b = input().split
c,d = map(int,input().split())
e = input()

if a == e:
  print(c-1 d)
else:
  print(c d-1)

Fixed code:
a, b = input().split()
c, d = map(int, input().split())
e = input()

if e == a: c-= 1
elif e == b: d -= 1

print(c, d)
Buggy code:
S,T=map(str,input().split())
A,B=map(int,input().split())
U=str(input())
print(A-1 if S==U else B-1)

Fixed code:
S,T = input().split()
A,B = map(int, input().split())
U = input()

if S == U:
    A = A - 1
else:
    B = B -1
print(A,B)
Buggy code:
S,T=input().split()
A,B=map(int,input().split())
U=input()
if U==S:
  print(str(A-1))
else:
  print(str(B-1))

Fixed code:
S, T = input().split()
A, B = map(int, input().split())
U = input()

if S == U:
  A = A - 1  
else:
  B = B - 1
  
print(str(A)+ ' ' + str(B))
Buggy code:
S,T=input().split()
A,B=map(int,input().split())
U=input()
if U=S:
  print(A-1,B)
else
  print(B,A-1)

Fixed code:
S,T=input().split()
A,B=map(int,input().split())
X=input()
if S==X:
	print(A-1,B)
else:
	print(A,B-1)
Buggy code:
s,t=input().split()  
a,b= map(int,input().split())
u=input()

if s==u:
    a -=1
else:
    b -=1
print(str(a)+" "+str(b)

Fixed code:
s,t=input().split()  
a,b= map(int,input().split())
u=input()

if s==u:
    a =a-1
else:
    b =b-1
print(str(a)+" "+str(b))