Buggy python submission (verdict: Runtime Error):
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 submission:
S, T = 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 python submission (verdict: Runtime Error):
S = input()
T = input()
A = int(input())
B = int(input())
U = input()

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

Fixed submission:
S, T = 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 python submission (verdict: Runtime Error):
S = input()
T = input()
A = int(input())
B = int(input())
U = input()

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

Fixed submission:
S, T = 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 python submission (verdict: Runtime Error):
S = input('S>')
T = input('T>')
A = int(input('A>'))
B = int(input('B>'))
U = input('U>')

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

Fixed submission:
S, T = 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 python submission (verdict: Runtime Error):
p,q,r=map(int,input().split())
if p>=q and p>r:
    print(q+r)
if q>=r and q>p:
    print(p+r)
if r>=p and r>q:
    print(q+p)
if r==p and p==q:
    print(q+p)

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

Buggy python submission (verdict: Runtime Error):
p,q,r=map(int,input().split())
if p>=q and p>r:
    print(q+r)
if q>=r and q>p:
    print(p+r)
if r>=p and r>q:
    print(q+p)
if r==p and p==q:
    print(q+p)

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

Buggy python submission (verdict: Runtime Error):
p,q,r=map(int,input().split())
if p>=q and  p>r:
    print(q+r)
if q>=r and q>p:
    print(p+r)
if r>=p and r>q:
    print(q+p)
if r==p and p==q:
    print(p+q)

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

Buggy python submission (verdict: Runtime Error):
p,q,r=map(int,input().split())
if p>=q and  p>r:
    print(q+r)
if q>=r and q>p:
    print(p+r)
if r>=p and r>q:
    print(q+p)
if r==p and p==q:
    print(p+q)

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

Buggy python submission (verdict: Runtime Error):
s=input()
t=input()
a,b=map(int,input().split())
u=input()
if u==s:
    print(a-1,b)
if u==t:
    print(a,b-1)

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

Buggy python submission (verdict: Runtime Error):
s=input()
t=input()
a,b=map(int,input().split())
u=input()
if u==s:
    print(a-1,b)
if u==t:
    print(a,b-1)

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

Buggy python submission (verdict: Runtime Error):
s=input()
t=input()
u=input()
a,b=map(int,input().split())
if u==s:
    print(a-1,b)
if u==t:
    print(a,b-1)

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

Buggy python submission (verdict: Runtime Error):
a,b=map(int,input().split())
s,t,u=map(input().split())
if u==s:
    print(a-1,b)
if u==t:
    print(a,b-1)

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

Buggy python submission (verdict: Runtime Error):
a=int(input())
s=input()
b=int(input())
t=input()
u=input()
if u==s:
    print(a-1,b)
if u==t:
    print(a,b-1)

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