qyliang/CodeNanoFix huggingface dataset:
Buggy code:
S,T=input().split()
A,B=map(int,input().split())
U=S or T
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 U==S:
	print(A-1,B)
else:
	print(A,B-1)
Buggy code:
from sys import stdin

S,T = stdin.readline().rstrip().split()
A,B = [int(x) for x in stdin.readline().rstrip().split()]
U = stdin.readline().rstrip().split()

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

Fixed code:
from sys import stdin

S,T = stdin.readline().rstrip().split()
A,B = [int(x) for x in stdin.readline().rstrip().split()]
U = stdin.readline().rstrip().split()

if S==U[0]:
	print(str(A-1)+" "+str(B))
else :
	print(str(A)+" "+str(B-1))
Buggy code:
# -*- coding: utf-8 -*-

# Input
s = [input() for i in range(3)]
ST = list(s[0].split())
S = str(ST[0])
T = str(ST[1])

AB = list(s[1].split())
A = int(AB[0])
B = int(AB[1])

U = str(s[3])


# Proccess
If U == S:
	A -= 1
else:
	B -= 1

# Output							
print(str(A)+" "+str(B))

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

# Input
s = [input() for i in range(3)]
ST = list(s[0].split())
S = str(ST[0])
T = str(ST[1])

AB = list(s[1].split())
A = int(AB[0])
B = int(AB[1])

U = str(s[2])


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

# Output							
print(str(A)+" "+str(B))
Buggy code:
s,t = map(str,input().split())
a,b = map(int,input().split())
u = input()
if u == s:
  a -= 1
elif u == t:
  t -= 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
elif u == t:
  b -= 1
print('{0} {1}'.format(a,b))
Buggy code:
args = input().split()
S = args[0]
T = args[1]

args2 = input().split()
a = int(args2[0])
b = int(args2[1])

U = input()

if U == S:
	print(str(a-1))
	
else:
	print(str(b-1))

Fixed code:
args = input().split()
S = args[0]
T = args[1]

args2 = input().split()
a = int(args2[0])
b = int(args2[1])

U = input()

if U == S:
	print(str(a-1)+" "+str(b))
	
else:
	print(str(a)+" "+str(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))
elif T==U:
  print(str(S)+' '+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))
elif T==U:
  print(str(A)+' '+str(B-1))
Buggy code:
s, t = input().split()
a, b = map(int, input().split())
u=input()

if(u==s):
  print(a-1)
else:
 print(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:
import sys

def main():
    k = input().replace('\n','').split()
    a = input().replace('\n','').split()
    u = input().replace('\n','')
    a[k.index(u)]=int(a[k.index(u)]) - 1
    print(str(a[0]) + ' ' + a[1])
if __name__ == '__main__':
    input = sys.stdin.readline
    main()


Fixed code:
import sys

def main():
    k = input().replace('\n','').split()
    a = input().replace('\n','').split()
    u = input().replace('\n','')
    a[k.index(u)]=int(a[k.index(u)]) - 1
    print(str(a[0]) + ' ' + str(a[1]))
if __name__ == '__main__':
    input = sys.stdin.readline
    main()
Buggy code:
a = int(input())
s, t = map(str, input().split())
a, b = map(int, input().split())
u = input()
if u=s a-=1
if u=t 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
if u==t:
    b-=1
print(a,b)
Buggy code:
a = int(input())
s, t = map(str, input().split())
a, b = map(int, input().split())
u = input()
if u==s:
    a-=1
if u==t:
    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
elif u == t:
    b = int(b) - 1
print(a, b)
Buggy code:
def main():
 s,t = input().split()
 a,b = int(input().split())
 u = input()
 if s == u:
     a -= 1
 else:
     b -= 1
main()

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

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

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

if u==s:
    print('{} {}' .format(a-1, b))
else:
    print('{} {}'.format(a, b-1))
Buggy 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)

Fixed code:
S,T=input().split()
A,B=map(int,input().split())
U=input()
if S==U:
    A-=1
elif T==U:
    B-=1
print(A,B)
Buggy code:
a, b = input().split()
c, d = map(int, input().split())
e = input()
if a == e:
    print("{} {}".format(c-1,d))
if b == e:
    print("{} {}".format(c-1,d))    

Fixed code:
a, b = input().split()
c, d = map(int, input().split())
e = input()
if a == e:
    print("{} {}".format(c-1,d))
if b == e:
    print("{} {}".format(c,d-1))
Buggy code:
s,t=map(int,input().split())
a,b=map(int,input().split())
if s==input(): 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:
S,T=map(str,input().split())
A,B=map(int,input().split())
U=input()

if S==U:
  print(A-1,B)
else:
  T==U:
    print(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 = map(str,input().split())
a,b = map(str,input().split())
u = str(input())
if(u==s):
  print(a-1,b)
elif(u==t):
  print(a,b-1)


Fixed code:
s, t = input().split()
a, b = map(int, input().split())
u = input()
if s == u:
	a -= 1
elif t == u:
	b -= 1
print(a, b)
Buggy code:
#!/usr/bin/env python3

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

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

    print(A, B)


main()


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

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

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

    print(A, B)


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

if a == 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(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 = str(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:
  a -= 1
else:
  b -= 1
print(str(a)+" "+str(b))
Buggy 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)

Fixed code:
S,T = input().split()
A,B = map(int,input().split())
U = input()
if U == S:
    print(A - 1,end=" ")
    print(B)
else:
    print(A,end=" ")
    print(B - 1)
Buggy code:
def ii():return int(input())
def iim():return map(int,input().split())
def iil():return list(map(int,input().split()))
s,t=iim()
a,b=iim()
u=ii()

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

Fixed code:
def ii():return int(input())
def iim():return map(int,input().split())
def ism():return map(str,input().split())
def iil():return list(map(int,input().split()))
s,t=ism()
a,b=iim()
u=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(a - 1, b)
else:
  print(a, b - 1)

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

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

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

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

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())
#print(s,t)
#print(a,b)
u = input()
#print(u)

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

print(a, b)


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

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

print(a, b)
Buggy code:
S, T = raw_input().split()
A, B = map(int, raw_input().split())
U = raw_input()


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

print A, B

Fixed code:
S, T = input().split()
A, B = map(int, input().split())
U = input()
if S == U:
    A -= 1
elif T == U:
    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),b)
else:
    print(a,(b-1))

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

if s==u:
  print (a-1,b)
elif t==u:
  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)
elif t==u:
  print(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)
if S==T:
    print(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:
import sys
[N, T] = list(map(str, input().split()))
[A, B] = list(map(int, input().split()))
U = input()
print(N, T, A, B, U)
if (N == U):
    A -= 1
else:
    B -= 1
print("{} {}".format(A, B))
sys.stdout.flush

Fixed code:
import sys
[N, T] = list(map(str, input().split()))
[A, B] = list(map(int, input().split()))
U = input()
if (N == U):
    A -= 1
else:
    B -= 1
print("{} {}".format(A, B))
sys.stdout.flush
Buggy code:
S,T=map(input().split())
A,B=map(int,input().split())
U=input()

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

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

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

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



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:
r,b = input().split()
num1,num2 = map(int,input().split())
u = input()
a = 0
b = 0
if u == r:
    a = num1-1
else: 
    a = num1
if u == b:
    b = num2-1
else: 
    b = num2
print(a,b)

Fixed code:
r,b = input().split()
num1,num2 = map(int,input().split())
u = input()
a = num1
b = num2
if u == r:
    a = num1-1
else :
    b = num2-1
print(a,b)
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(str(a)+" "+str(b))
Buggy code:
s, t = input().split()
a, b = map(int, input().split())
u = input()
print(a-1 if u == s else b-1)

Fixed code:
s, t = list(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 = map(input().split())
A,B = map(int,input().split())
U = input().split()

if S==U:
  A-=1
else:
  B-=1
  
print(f"{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("{} {}".format(A,B))
Buggy code:
S, T = input().split()
A, B = map(int, input().split())
U = input()
print(A-1, B if s==T else A, B-1)

Fixed code:
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 = map(int, input().split())
u = input()

if s == u:
  print("{} {}".format(a-1, b))
else:
  print("{} {}".format(a, b-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 = list(input().split())
A,B = list(map(int,input().split()))
U = input()

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

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

if S == U:
    print(A-1,B)
elif T == U:
    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 = 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 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()
print(a-1, b) if u==s else print(a, b-1)
Buggy code:
S,T = map(int,input().split())
A,B = map(int,input().split())
s = input()

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

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

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


if u == s:
    a = str(int(a)-1)
else:
    b = str(int(b)-1)

print(a+' '+b)
Buggy code:
s,t = map(int,input().split())
a,b = map(int,input().split())
u = str(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:
    print((a-1), b)
else:
    print(a, (b-1))
Buggy code:
S,T = input().split()
A,B = map(int,input().split())
u = input()
print(S,T,u)
if S == u:
    print(A-1, B)
elif T == u:
    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)
elif T == u:
    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(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)
Buggy code:
a,b=map(str,input().split())
c.d=map(int,input().split())
e=input()
if c==e:
  print(c-1,d)
else:
  print(c,d-1)
 

Fixed code:
a,b=map(str,input().split())
c,d=map(int,input().split())
e=str(input())
if a==e:
    print(c-1,d)
else:
    print(c,d-1)
Buggy code:
M = [input() for i in range(3)]
M[0] = M[0].split()
s = str(M[0][0])
t = str(M[0][1])

M[1] = M[1].split()
a = int(M[1][0])
b = int(M[1][0])

U = str(M[2])

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

print(str(a) + ' ' + str(b))

Fixed code:
M = [input() for i in range(3)]
M[0] = M[0].split()
s = str(M[0][0])
t = str(M[0][1])

M[1] = M[1].split()
a = int(M[1][0])
b = int(M[1][1])

U = str(M[2])


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

print(str(a) + ' ' + str(b))
Buggy code:
import sys
s, t = map(str, sys.stdin.readline().split())
a, b = map(int, sys.stdin.readline().split())
u = sys.stdin.readline()
if s == u:
  print(a-1, b)
else:
  print(a, b-1)


Fixed code:
import sys
s, t = map(str, sys.stdin.readline().split())
a, b = map(int, sys.stdin.readline().split())
u = sys.stdin.readline().rstrip()
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 s == u: print(str(a - 1) + ' ' + str(b))
if t == u: print(str(a) + ' ' + str(b - 1))
else:print(str(a) + ' ' + str(b))

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))
if t == u: print(str(a) + ' ' + str(b - 1))
Buggy code:
S, T = input().split
A, B = map(int, input().split)
U = input()

if S == U :
  print(A - 1)
elif T == U :
  print(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 = list(map(lambda x:int(x)), input().split())
U = input()


if U == A:
    is_type_A = True
else:
    is_type_A = False

if is_type_A:
    print(A - 1, B)
else:
    print(A, B-1)

Fixed code:
_S, _T = input().split()
A, B = list(map(lambda x:int(x), input().split()))
U = input()


if U == _S:
    is_type_A = True
else:
    is_type_A = False

if is_type_A:
    print(A - 1, B)
else:
    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()
print(a-1, b) if u==s else print(a, b-1)
Buggy code:
S, T = input().split()
A, B = input().split()
U = input().split()
S = str(S)
T = str(T)
A = int(A)
B = int(B)
U = str(U)


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

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


if S == U:
    print(A-1,B)
elif T == U:
    print(A,B-1)
Buggy code:
# import math
# import bisect
# import heapq
# from collections import deque
# import numpy as np

# a,b,c = map(int, input().split())
# n = int(input())
# a = list(map(int,input().split()))
s,t = input().split()
a,b = map(int, input().split())
u = int(input())
if u == s: print(a-1,b)
else: print(a,b-1)
print(ans)



Fixed code:
# import math
# import bisect
# import heapq
# from collections import deque
# import numpy as np

# a,b,c = map(int, input().split())
# n = int(input())
# a = list(map(int,input().split()))
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 = input().split(' ')
A, B = list(map(int, input().split(' ')))
U = input()
if U==S: return A-1,B
if U==T: return A,B-1

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

if S==U:
    print(s-1,t)
elif T==U:
    print(s,t-1)



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

if S==U:
    print(s-1,t)
elif T==U:
    print(s,t-1)
Buggy code:
S_T=input("S T:")
A_B=input("A B:")
U=input("U:")
list_S_T=[]
for i in range(len(S_T)):
    if S_T[i]==" ":
        S =S_T[0:i]
        T=S_T[i+1:len(S_T)]
for i in range(len(A_B)):
    if A_B[i]==" ":
        A = int(A_B[0:i])
        B = int(A_B[i+1:len(A_B)])
if S==U:
    A = A-1
elif T==U:
    B = B-1
print(A,B)

Fixed code:
S_T=input()
A_B=input()
U=input()
list_S_T=[]
for i in range(len(S_T)):
    if S_T[i]==" ":
        S =S_T[0:i]
        T=S_T[i+1:len(S_T)]
for i in range(len(A_B)):
    if A_B[i]==" ":
        A = int(A_B[0:i])
        B = int(A_B[i+1:len(A_B)])
if S==U:
    A = A-1
elif T==U:
    B = B-1
print(A,B)
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 S==U:
  A -= 1
else:
  B -= 1
print(A,B)
Buggy code:
s = list(map(input().split()))
a = list(map(int,input().split()))
u = input()


if s[0] == u:
  a[0] -= 1
else:
  a[1] -= 1

print(str(a[0]) + " " + str(a[1]))

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


if s[0] == u:
  a[0] -= 1
else:
  a[1] -= 1

print(str(a[0]) + " " + str(a[1]))
Buggy code:



color = input.split()

num = input.split()

stock[color[0]] = num[0]
stock[color[1]] = num[1]

u = input.split()

stock[u] = stock[u] - 1

print({col1} {col2}).format(col1=stock[color[0]],col2=stock[color[1]])

Fixed code:
color = input().split()
 
num = input().split()

stock = {}
stock[color[0]] = num[0]
stock[color[1]] = num[1]
 
u = input().split()
 
stock[u[0]] = int(stock[u[0]]) - 1
 
print('{col1} {col2}'.format(col1=stock[color[0]],col2=stock[color[1]]))
Buggy 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)

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

Fixed code:
s, t = input().split()
a, b = map(int, input().split())
c = input()
if c == s: a -= 1
else: b -= 1
print(a, b)
Buggy code:
s = list(input().split())
a = list(map(int, input().split()))
a[s.index(input())] -= 1
for i in a:
  print(i, end = '')

Fixed code:
s = list(input().split())
a = list(map(int, input().split()))
a[s.index(input())] -= 1
for i in a:
  print(i, end = ' ')
Buggy code:
s, t = list(input().split())
s_num, t_num = map(int, input().split())
bad_string = input()

if bad_string == s:
    print(s_num - 1, t_num)
elif bad_string == t_num:
    print(s_num, t_num - 1)
else:
    print(s_num, t_num)


Fixed code:
s, t = list(input().split())
s_num, t_num = map(int, input().split())
bad_string = input()

if bad_string == s:
    print(s_num - 1, t_num)
elif bad_string == t:
    print(s_num, t_num - 1)
else:
    print(s_num, t_num)
Buggy code:
S = input(), T = input()
A,B = map(int,input().split())	
U = input()

if S == U:
    A -= 1
    print(A,B)
else:
    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)
else:
    assert U == T
    print(A, B - 1)
Buggy code:
S,T=input().split()
A,B=map(int,input().split())
U=input()
print(S, T)
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(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 = int(input())
if u==s:
  a=a-1
else:
  b=b-1
print(a,b)

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:
a,b=input().split()
ST={}
ST[a], ST[b] = map(int, input().split())
ST[input()]-=1

for k,v in ST.items():
  print(v,end='')

Fixed code:
a,b=input().split()
ST={}
ST[a], ST[b] = map(int, input().split())
ST[input()]-=1

for k,v in ST.items():
  print(v,end=' ')
Buggy code:
s, t = input()
a, b = input().split(" ")
u = input()
a = int(a)
b = int(b)
u = int(u)

if u == s:
  print(a - 1, b)
else:
  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)
else:
  print(a, b-1)
Buggy code:
S, T = map(str,input().split())
A, B = map(int, input().split())
U = str(input())

if S == T:
    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:
  A -= 1

if U == T:
  B -= 1

print(A, B)
Buggy code:
S, T = input().split()
A, B = list(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:
  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(a,b-1)
else u == t:
    print(a-1,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 = input().split()
a, b = list(map(int, input().split()))
u = input()
if s == u:
  print(a-1, b)
elif s == t:
  print(a, 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 = map(int, input().split())
A, B = map(int, input().split())
if input() == S:
  print(A-1, B)
else:
  print(A, B-1)

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