qyliang/CodeNanoFix huggingface dataset:
Buggy code:
S = input()
l = len(S)
num = 0
for i in range(n):
  if S[i] == '+':
    num = num +1
  else :
    num = num -1
print(num)

Fixed code:
S = input()
l = len(S)
num = 0
for i in range(l):
  if S[i] == '+':
    num = num +1
  else :
    num = num -1
print(num)
Buggy code:
s=list(input())
plus=0
mainu=0
for i in range(4):
    if s[i]=="+":
        plus+=1
    elif s[i]=="-":
        mainu+=1
print(mainu+plus)


Fixed code:
s=list(input())
plus=0
mainu=0
for i in range(4):
    if s[i]=="+":
        plus+=1
    elif s[i]=="-":
        mainu-=1
print(mainu+plus)
Buggy code:
import sys
import copy
import math
import bisect
import pprint
import bisect
from functools import reduce
from copy import deepcopy
from collections import deque

def lcm(x, y):
    return (x * y) // math.gcd(x, y)

if __name__ == '__main__':
    a = [str(i) for i in input().split()]
    count = 0
    
    for i in a:
        if i == "+":
            count +=1
        else:
            count -=1
    print(count)

Fixed code:
import sys
import copy
import math
import bisect
import pprint
import bisect
from functools import reduce
from copy import deepcopy
from collections import deque

def lcm(x, y):
    return (x * y) // math.gcd(x, y)

if __name__ == '__main__':
    a = [str(i) for i in input().split()]
    count = 0

    for i in range(4):
        if a[0][i] == "+":
            count +=1
        else:
            count -=1
    print(count)
Buggy code:
x=input()
c=0
for i in range(len(x)):
  if x[i]=='-'
  	c-=1
  else:
    c+=1
print(c)

Fixed code:
x=input()
c=0
for i in range(len(x)):
  if x[i]=='-':
  	c-=1
  else:
    c+=1
print(c)
Buggy code:
s=input()
result=0
for i in s:
  result+=1 if i=="+" else result-=1
print(result)

Fixed code:
s=input()
result=0
for i in s:
    if i=="+" : result+=1
    else : result-=1
print(result)
Buggy code:
s = list(input())
for i in s:
  if s[i] == "+":
    s[i] = 1
  else:
    s[i] = -1

print(sum(s))

Fixed code:
s = list(input())
for i in range(len(s)):
  if s[i] == "+":
    s[i] = 1
  else:
    s[i] = -1

print(sum(s))
Buggy code:
from sys import stdin
N = str(stdin.readline().rstrip())
i = 0
takahasi = 0
while i < 4:
  if S[i:i+1] == "+":
    takahasi += 1
  elif S[i:i+1] == "-":
    takahasi -= 1
  i += 1
print(takahasi)

Fixed code:
from sys import stdin
S = str(stdin.readline().rstrip())
i = 0
takahasi = 0
while i < 4:
  if S[i:i+1] == "+":
    takahasi += 1
  elif S[i:i+1] == "-":
    takahasi -= 1
  i += 1
print(takahasi)
Buggy code:
S = input()
plus = count('+')
minus = count('-')
print( plus - minus )

Fixed code:
S = input()
plus = S.count('+')
minus = S.count('-')
print( plus - minus )
Buggy code:
s = input()
ans = 0
for i in range len(s):
  if(s[i] == '+'):
    ans += 1
  else:
    ans -= 1
print(ans)

Fixed code:
s = input()
ans = 0
for i in range(len(s)):
  if(s[i] == '+'):
    ans += 1
  else:
    ans -= 1
print(ans)
Buggy code:
S = list(input())
ans = 0
for i in range(4):
    if S[0] == '+':
        ans += 1
    else:
        ans -= 1

print(ans)


Fixed code:
S = list(input())
ans = 0
for i in range(4):
    if S[i] == '+':
        ans += 1
    else:
        ans -= 1

print(ans)
Buggy code:
s = list(input().split())
result = 0
for i in s:
    if i == '+':
        result += 1
    else:
        result -= 1
print(result)

Fixed code:
s = list(input())
result = 0
for i in s:
    if i == '+':
        result += 1
    else:
        result -= 1
print(result)
Buggy code:
s = list(input())
ans = 0
for i in s:
  if i == '+':
    ans+= 1
  else:
    ans-= 1

Fixed code:
s = list(input())
ans = 0
for i in s:
  if i == '+':
    ans+= 1
  else:
    ans-= 1
print(ans)
Buggy code:
S=input()
ans = 0
for i in range(4):
  if S[i] == '+':
    ans += 1
  else:
    ans =- 1
print(ans)

Fixed code:
S=input()
ans = 0
for i in range(4):
  if S[i] == '+':
    ans += 1
  else:
    ans -= 1
print(ans)
Buggy code:
S = input()
ans = 0
for i in S:
  if i == "+":
    ans++
  else:
    ans--
print(ans)


Fixed code:
S = input()
ans = 0
for i in S:
  if i == "+":
    ans += 1
  else:
    ans -= 1
print(ans)
Buggy code:
n = input()
s = n.count(+) - n.count(-)
print(s)

Fixed code:
n = input()
s = n.count('+') - n.count('-')
print(s)
Buggy code:
s = str(input())
a = 1 + s.count("+")-s.count("-")
print(a)

Fixed code:
s = str(input())
a = s.count("+")-s.count("-")
print(a)
Buggy code:
S = input()
A = 0
for s in S
	if s == "-":
		A--
	if s == "+":
		A++
print(A);

Fixed code:
S = input()
A = 0
for s in S:
	if s == "-":
		A -= 1
	if s == "+":
		A += 1
print(A);
Buggy code:
a = list(input())
print(a)
n = 0
for i in a:
  if i == "+":
    n +=1
  else:
    n -=1
print(n)

Fixed code:
a = list(input())
n = 0
for i in a:
  if i == "+":
    n +=1
  else:
    n -=1
print(n)
Buggy code:
S_original=input('S: ')
S_list=list(S_original)
length_S=len(S_list)

a=0
i=0

while i < length_S:
  if S_list[i]=='+':
    a += 1
    i += 1
  else:
    a = a-1
    i=i+1
    

print(a)
  

Fixed code:
S_original=input()
S_list=list(S_original)
length_S=len(S_list)

a=0
i=0

while i < length_S:
  if S_list[i]=='+':
    a += 1
    i += 1
  else:
    a = a-1
    i=i+1
    

print(a)
Buggy code:
S=input()
ans=0
for i in range(len(S)):
  if S[i]=="-":
    ans-=1:
  else:
    ans+=1
print(ans)

Fixed code:
S = input()

cnt = 0
for i in range(len(S)):
    if S[i] == '+':
        cnt += 1
    else:
        cnt -= 1

print(cnt)
Buggy code:
S = input()
n = 0

for s in S:
  if S == "+"
    n += 1
  else:
    n -= 1

print(n)

Fixed code:
S = input()
n = 0

for s in S:
  if s == "+":
    n += 1
  else:
    n -= 1

print(n)
Buggy code:
s=input()
n=0
for i in range(s):
    if s[i]=="+":
        n+=1
print(n-(4-n))


Fixed code:
s=input()
n=0
for i in range(len(s)):
    if s[i]=="+":
        n+=1
print(n-(4-n))
Buggy code:
s=input()
print(s.count("+")-s.count("-")

Fixed code:
s=input()
print(0+s.count("+")-s.count("-"))
Buggy code:
S = input()
x=0
for i in range(len(S)):
    if S[i] == '+':
        x +=1
    else:
        x -=0
print(x)

Fixed code:
S = input()
x=0
for i in range(len(S)):
    if S[i] == '+':
        x +=1
    else:
        x -=1
print(x)
Buggy code:
a=input()
b=0
for i in range(4)
    if a[i]=="+":
        b+=1
    else:
        b-=1
print(b)


Fixed code:
a=input()
b=0
for i in range(4):
    if a[i]=="+":
        b+=1
    else:
        b-=1
print(b)
Buggy code:
S=input()
ans=0
for i in S:
    if i='+':ans+=1
    else: i-=1

Fixed code:
S=input()
ans=0
for i in S:
    if i=='+':ans+=1
    else: ans-=1
print(ans)
Buggy code:
stri = input()
stri = stri.replace("+", "1 ").replace("-", "-1 ")
numList = [int(s) for s in stri.split()]

print(sum(intList))

Fixed code:
stri = input()
stri = stri.replace("+", "1 ").replace("-", "-1 ")
numList = [int(s) for s in stri.split()]

print(sum(numList))
Buggy code:
a=list(input())
count=1
for i in a:
  if i=='-':
    count-=1
  else:
    count+=1
print(count)

Fixed code:
a=list(input())
count=0
for i in a:
  if i=='-':
    count-=1
  else:
    count+=1
print(count)
Buggy code:
S = int(input())
ans = 0
for s in S:
    if s == '+':
        ans += 1
    else:
        ans -= 1
print(ans)



Fixed code:
S = input()
ans = 0
for s in S:
    if s == "+": ans += 1
    else: ans -= 1
print(ans)
Buggy code:
s=input()

cnt=0

for i in range(4):
	if s[i]=='+':
	cnt+=1

res=2*i-4

print(res)

Fixed code:
s=input()
 
cnt=0
 
for i in range(4):
	if s[i]=='+':
		cnt+=1

res=cnt*2-4
 
print(res)
Buggy code:
S = input()
ans = 0
for i in range(len(S)):
	if S[i] == "+":
        ans += 1
    else:
      	ans -= 1
print(ans)


Fixed code:
S = input()
ans = 0
for i in range(len(S)):
	if S[i] == "+":
		ans += 1
	else:
		ans -= 1
print(ans)
Buggy code:
j = {
    "-":-1,
    "+":1
    }
l =input().split(" ")
s = 0
for i in range(len(l)):
  s += j[l[i]]
print(s)

Fixed code:
j = {
    "-":-1,
    "+":1
    }
l =input()
s = 0
for i in range(len(l)):
  s += j[l[i]]
print(s)
Buggy code:
S = input()
print(s.count("+")-s.count("-"))

Fixed code:
s=input()

print(s.count('+')-s.count('-'))
Buggy code:
import math

a=input()
print(a.count("+")+a.count("-"))


Fixed code:
import math

a=input()
print(a.count("+")-a.count("-"))
Buggy code:
a,b=map(int,input().split())

if a<=8 and b>=8:
  print('Yay!')
else:
  print(':(')

Fixed code:
a, b = map(int, input().split())
if a<= 8 and b <= 8:
    print('Yay!')
else:
    print(":(")
Buggy code:
a = input().split()

if(a[0]<=8 and a[1]<=8):
  print("Yay!")
else:
  print(":(")

Fixed code:
a = input().split()
 
if(int(a[0])<=8 and int(a[1])<=8):
  print("Yay!")
else:
  print(":(")
Buggy code:
A,B=map(int,input(),split())
print(['Yay!',':('][A>8 or B>8])

Fixed code:
A,B=map(int,input().split())
print(['Yay!',':('][A>8 or B>8])
Buggy code:
a,b=map(int,input().split())
if a<=8 or b<=8:
    print("Yay!")
else:
    print(":(")

Fixed code:
a,b = map(int,input().split())
if a<=8 and b<=8:
    print("Yay!")
else:
    print(":( ")
Buggy code:
# -*- coding: utf-8 -*-

def main():
    A, B = map(int, (input().split()))
    print('Yay' if A<=8 and B<=8 else ':(')

if __name__ == '__main__':
    main()


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

def main():
    A, B = map(int, (input().split()))
    print('Yay!' if A<=8 and B<=8 else ':(')

if __name__ == '__main__':
    main()
Buggy code:
A, B = map(int, input().split())

if A == 9 or B < 9:
    print("Yay!")
else:
    print(":(")

Fixed code:
A, B = map(int, input().split())
print('Yay!' if A < 9 and B < 9 else ':(')
Buggy code:
a,b=map(int,input().split())
if a>8 or b>8:
    print(":(")
else:
    print("Yey!")


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

if a>8 or b>8:
  print(":(")
else:
  print("Yay!")
Buggy code:
A,B = list(map(int,input().split()))

if A <= 8 and b <= 8:
  print('Yay!')
else:
  print(':(')

Fixed code:
A,B = list(map(int,input().split()))
 
if A <= 8 and B <= 8:
  print('Yay!')
else:
  print(':(')
Buggy code:
# -*- coding: utf-8 -*-

a,b = map(int,input().split())

if a >= 8 or b >= 8:
    print(":(")
else:
    print("Yay!")


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

a,b = map(int,input().split())

if a > 8 or b > 8:
    print(":(")
else:
    print("Yay!")
Buggy code:
a,b=map(int,input().split())
if a<=8 and b<=8:
    print("Yey!")
else:
    print(":(")


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

if a <= 8 and b <= 8:
    print("Yay!")

else:
    print(":(")
Buggy code:

Copy
Copy
A, B = map(int, input().split())
 
if A <= 8 and B <= 8:
  print('Yay!')
else:
  print(':(')

Fixed code:
A, B = map(int, input().split(" "))
N = 8
if A <= 8 and B <= 8:
    print("Yay!")
else:
    print(":(")
Buggy code:
a, b = map(int, input().split())

if a <= 8 and b <= 8:
  print('Yay')
else:
  print(':(')

Fixed code:
a, b=map(int,input().split())
if a<=8 and b<=8:
  print("Yay!")
else:
  print(":(")
Buggy code:
A, B = map(int, input().split())

if a <= 8 and b <= 8:
  print('Yay!')
else:
  print(':(')

Fixed code:
A,B= map(int, input().split())
if A<=8 and B<=8:
 print("Yay!")
else:
 print(":(")
Buggy code:
A,B=input().split()
if int(A)<=8 or int(B)<=8:
  print("Yay!")
else:
  print( ":(")

Fixed code:
A,B=input().split()
if int(A)<=8 and int(B)<=8:
  print("Yay!")
else:
  print( ":(")
Buggy code:
a, b = map(int,input().split())

if a <9 and b < 9:
  print("Yay")
else:
  print(":(")


Fixed code:
a,b = map(int,input().split())
print('Yay!' if a<9 and b<9 else ':(')
Buggy code:
A, B = [int(x) for x in input().split(' ')]

if A >= 8 or B >= 8:
    print('Yay!')
else:
    print(':(')

Fixed code:
A, B = [int(x) for x in input().split(' ')]

if A > 8 or B > 8:
    print(':(')
else:
    print('Yay!')
Buggy code:
A, B = tuple(int(num) for num in input().split())

if A <= 8 and B <= 8:
  print('Yay')
else:
  print(':(')  

Fixed code:
A, B = tuple(int(num) for num in input().split())

if A <= 8 and B <= 8:
  print('Yay!')
else:
  print(':(')
Buggy code:
def happy_birthday(A: int, B: int) -> bool:
    return A <= 8 and B <= 8:


if __name__ == "__main__":
    A, B = map(int, input().split())
    yes = happy_birthday(A, B)
    print('Yay!' if yes else ':(')


Fixed code:
def happy_birthday(A: int, B: int) -> bool:
    return A <= 8 and B <= 8


if __name__ == "__main__":
    A, B = map(int, input().split())
    yes = happy_birthday(A, B)
    print('Yay!' if yes else ':(')
Buggy code:
A,B = map(int, input().split())
if A < = 8 and B <= 8:
    print("Yay!")
else:
    print(":(")

Fixed code:
""" AtCoder """

A, B = map(int, input().split())

if A <= 8 and B <= 8:
    print("Yay!")
else:
    print(":(")
Buggy code:
a, b = map(int, input().split())
if a <= 8 and b <= 8:
  print('Yay!')
else:
  prit(':(')

Fixed code:
a,b=map(int,input().split(" "))
if a<=8 and b<=8: 
    print("Yay!")
else    :
    print(":(")
Buggy code:
A, B = map(int, input().split())
print(A)
if (A < 9) and (B < 9):
    print("Yay!")
else:
    print(":(")


Fixed code:
A, B = map(int, input().split())
if (A < 9) and (B < 9):
    print("Yay!")
else:
    print(":(")
Buggy code:
n, m = map(int, input().spilit())

if n > 8 or m > 8:
  print(':(')
else:
  print('Yay!')

Fixed code:
n, m = map(int, input().split())

if n > 8 or m > 8:
  print(':(')
else:
  print('Yay!')
Buggy code:
a, b = map(int, input().split())
print('Yay!') if(a < 9 or b < 9) else print(':(')


Fixed code:
a, b = map(int, input().split())
if a < 9 and b < 9: print("Yay!")
else: print(":(")
Buggy code:
a, b = map(int, input().split())
if (max(a, b) >= 8):
    print(":(")
else:
    print("Yay!")

Fixed code:
a, b = map(int, input().split())
if (max(a, b) > 8):
    print(":(")
else:
    print("Yay!")
Buggy code:
a,b = list(map(int, input().split()))
if max(a,b) > 8:
  print(":(")
else:
  print("Yey!")

Fixed code:
a,b = list(map(int, input().split()))
if max(a,b) > 8:
  print(":(")
else:
  print("Yay!")
Buggy code:
a,b=input().split()
a=int(a)
b=int(b)

if a>8 or b>8:
	print(":)")
else:
	print("Yay")

Fixed code:
a,b=input().split()
a=int(a)
b=int(b)

if a>8 or b>8:
	print(":(")
else:
	print("Yay!")
Buggy code:
n,m = map(int,input().split())
if n >= 8 or m >= 8:
    print(":(")
else:
    print("Yay!")

Fixed code:
n,m = map(int,input().split())
if n > 8 or m > 8:
    print(":(")
else:
    print("Yay!")
Buggy code:
import sys
import copy
import math
import bisect
import pprint
import bisect
from functools import reduce
from copy import deepcopy
from collections import deque

def lcm(x, y):
    return (x * y) // math.gcd(x, y)

if __name__ == '__main__':
    a = [str(i) for i in input().split()]

    if a[0] >8 or a[1]>8:
        print("Yay!")
    else:
        print(":(")

Fixed code:
import sys
import copy
import math
import bisect
import pprint
import bisect
from functools import reduce
from copy import deepcopy
from collections import deque

def lcm(x, y):
    return (x * y) // math.gcd(x, y)

if __name__ == '__main__':
    a = [int(i) for i in input().split()]

    if a[0] >8 or a[1]>8:
        print(":(")
    else:
        print("Yay!")
Buggy code:
a, b = [int(i) for i in input().split()]

print("Yay!" if a <= b <= 8 else ":(")


Fixed code:
a, b = [int(i) for i in input().split()]

print("Yay!" if a <= 8 and b <= 8 else ":(")
Buggy code:
a,b = map(int,input().split())

if a>=8 or b>=8:
  print(":(")
else:
  print("Yay!")


Fixed code:
a,b=map(int,input().split())
if max(a,b)>8:print(":(")
else:print("Yay!")
Buggy code:
# coding: utf-8

def solve(A, B):
    if A > 8: return ":("
    if B > 8: return ":("
    return "Yay!"

if __name__ == "__main__":

    A, B = map(int, input().split())
    print(A, B)
    

Fixed code:
# coding: utf-8

def solve(A, B):
    if A > 8: return ":("
    if B > 8: return ":("
    return "Yay!"

if __name__ == "__main__":

    A, B = map(int, input().split())
    print(solve(A, B))
Buggy code:
a,b=map(int,input().split())
print('Yey!' if (a<=8 and b<=8) else ':(')


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

if a<=8 and b<=8:
    print("Yay!")
else:
    print(":(")
Buggy code:
a,b=map(int,input().split())
if a==8 and b==8:
  print(":(")
else:
  print("Yay!")

Fixed code:
a, b = map(int, input().split())
if a<=8 and b<=8:
  print("Yay!")
else:
  print(":(")
Buggy code:
A=list(map(int,input().split()))

if max(A)<=8:
  print(Yay!)
else:
  print(:()

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

if max(A)<=8:
  print("Yay!")
else:
  print(":(")
Buggy code:
a,b=map(int,input().split())
if a<=8 and b<=8:
  print("Yay!")
else:
  print("Yay!")

Fixed code:
a, b = map(int, input().split())
print('Yay!' if a < 9 and b < 9 else ':(')
Buggy code:
a,b=map(int,input().split())
if (a==8 and a+b==16)or(a+b<16):
  print("Yay!")
else:
  print("Yay!")

Fixed code:
a,b=map(int,input().split())
if a+b<=16 and a<=8 and b<=8:
    print("Yay!")
else:
    print(":(")
Buggy code:
a,b=map(int,input().split())
if a>8 or b>8:
    print(':(')
else:
    print('Yey!')

Fixed code:
a,b=map(int,input().split())
if (a>8) or (b>8):
    print(':(')
else:
    print('Yay!')
Buggy code:
a,b=map(int,input().split())
if a<=8 or b<=8:
  print("Yay!")
else:
  print("Yay!")

Fixed code:
a,b=map(int,input().split())
if 8<a or 8<b:
	print(':(')
else:
	print('Yay!')
Buggy code:
A, B = map(int, input().split())

if A>=8 and B>=8:
  print("Yay!")
else:
  print(":(")

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

if A<=8 and B<=8:
  print("Yay!")
else:
  print(":(")
Buggy code:
# -*- coding: utf-8 -*-
import bisect
import heapq
import math
import random
import sys
from collections import Counter, defaultdict
from decimal import ROUND_CEILING, ROUND_HALF_UP, Decimal
from functools import lru_cache, reduce
from itertools import combinations, combinations_with_replacement, product, permutations

sys.setrecursionlimit(10000)


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


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


def read_float():
    return float(input())


def read_float_n():
    return list(map(float, input().split()))


def read_str():
    return input()


def read_str_n():
    return list(map(str, input().split()))


def error_print(*args):
    print(*args, file=sys.stderr)


def mt(f):
    import time

    def wrap(*args, **kwargs):
        s = time.time()
        ret = f(*args, **kwargs)
        e = time.time()

        error_print(e - s, 'sec')
        return ret

    return wrap


@mt
def slv(A, B):
    if A <= 6 and B <= 6:
        return 'Yay!'
    else:
        return ':('


def main():
    A = read_int()
    B = read_int()
    print(slv(A, B))


if __name__ == '__main__':
    main()


Fixed code:
# -*- coding: utf-8 -*-
import bisect
import heapq
import math
import random
import sys
from collections import Counter, defaultdict
from decimal import ROUND_CEILING, ROUND_HALF_UP, Decimal
from functools import lru_cache, reduce
from itertools import combinations, combinations_with_replacement, product, permutations

sys.setrecursionlimit(10000)


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


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


def read_float():
    return float(input())


def read_float_n():
    return list(map(float, input().split()))


def read_str():
    return input()


def read_str_n():
    return list(map(str, input().split()))


def error_print(*args):
    print(*args, file=sys.stderr)


def mt(f):
    import time

    def wrap(*args, **kwargs):
        s = time.time()
        ret = f(*args, **kwargs)
        e = time.time()

        error_print(e - s, 'sec')
        return ret

    return wrap


@mt
def slv(A, B):
    if A <= 8 and B <= 8:
        return 'Yay!'
    else:
        return ':('


def main():
    # A = read_int()
    # B = read_int()
    A, B = read_int_n()
    print(slv(A, B))


if __name__ == '__main__':
    main()
Buggy code:
a,b = map(int,input())

if a <= 8 and b <= 8:
    print("Yay!")
else:
    print(":(")

Fixed code:
a,b = map(int, input().split())
if a <= 8 and b <= 8:
  print('Yay!')
else:
  print(':(')
Buggy code:
A, B = map(int, input().split())
if min(A, B) <= 8:
  print("Yay!")
else:
  print(":(")

Fixed code:
A, B = map(int, input().split())
if max(A, B) <= 8:
  print("Yay!")
else:
  print(":(")
Buggy code:
import math

# inputList=[]
# for i in range(6):
#     inputNum = input()
#     inputList.append(inputNum)
inputa = input().split()
# inputb = input().split()

# inputa = [int(n) for n in inputa]
# inputa.sort()

# inputa = list(inputa[0])

a = int(inputa[0])
# b = int(inputa[1])
# c = int(inputa[2])

# x = int(inputb[0])
# y = int(inputb[1])

if a <= 8 and b <= 8:
    print("Yay!")
else:
    print(":(")
    


Fixed code:
import math

# inputList=[]
# for i in range(6):
#     inputNum = input()
#     inputList.append(inputNum)
inputa = input().split()
# inputb = input().split()

# inputa = [int(n) for n in inputa]
# inputa.sort()

# inputa = list(inputa[0])

a = int(inputa[0])
b = int(inputa[1])
# c = int(inputa[2])

# x = int(inputb[0])
# y = int(inputb[1])

if a <= 8 and b <= 8:
    print("Yay!")
else:
    print(":(")
Buggy code:
a,b=int(input().split())
if a<=8 and b<=8:
    print("Yay!")
else:
    print(":(")

Fixed code:
a, b= map(int, input().split())
if a <= 8 and b <= 8:
    ans = "Yay!"
else:
    ans = ":("
print(ans)
Buggy code:
ui = input()
D, N = int(ui.split()[0]), int(ui.split()[1])
if D > 8 and N > 8:
    print(':(')
else:
    print('Yay!')

Fixed code:
ui = input()
D, N = int(ui.split()[0]), int(ui.split()[1])
if D <= 8 and N <= 8:
    print('Yay!')
else:
    print(':(')
Buggy code:
a, b = map(int,input().split())

c = max(a,b)

if c <= 16:
  print("Yay!")
  
else:
  print(":(")
  

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

c = 2*max(a,b)

if c <= 16:
  print("Yay!")
  
else:
  print(":(")
Buggy code:
a=input().strip().split(" ")
b=[int(i) for in a]

if(b[0]<=8 and b[1]<=8):
    print("Yay!")
else:
    print(":(")


Fixed code:
a=input().strip().split(" ")
b=[int(i) for i in a]

if(b[0]<=8 and b[1]<=8):
    print("Yay!")
else:
    print(":(")
Buggy code:
A,B = map(int,input().split())
if A <= 8 and B <= 8:
  print('Yey!')
else:print(':(')

Fixed code:
A,B = map(int,input().split())
if A <= 8 and B <= 8:
  print('Yay!')
else:print(':(')
Buggy code:
a,b = map(int,(input().split()))

if a > 11 or b > 11:
    print(":( ")
else:
    print("Yay!")

Fixed code:
a,b = map(int, input().split())
if a > 8 or b > 8:
  print(":(")
else:
  print("Yay!")
Buggy code:
A, B = map(int input().split())
if max(A, B) > 8:
    print(':(')
else:
    print('Yay!')

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

if A >8 or B > 8:
    print(':(')
else:
    print('Yay!')
Buggy code:
A, B = map(int, input().split())

if A <= 8 and B <= 8:
    print("Yay!")

else:
    print(":)")

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

if A <= 8 and B <= 8:
    print("Yay!")

else:
    print(":(")
Buggy code:
# -*- coding: utf-8 -*-
"""
Created on Sat Jun 16 23:09:00 2018

@author: sakas
"""
A,B = map(int(input()))

if A>9 or B>9:
    print(":(")
else:
    print("Yay!")


Fixed code:
# -*- coding: utf-8 -*-
"""
Created on Sat Jun 16 23:09:00 2018

@author: sakas
"""
A, B = map(int, input().split())
if A>=9 or B>=9:
    print(":(")
else:
    print("Yay!")
Buggy code:
a,b = map(int,input().split())
print("Yay!" if a < 8 or b < 8 else ":(")

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

if (a <= 8 and b <= 8):
    print('Yay!')
else:
    print(':(')
Buggy code:
a b = list(map(int, input().split()))
if a <= 8 and b <= 8:
  print('Yay!')
else:
  print(':(')

Fixed code:
a, b = list(map(int, input().split()))
if a <= 8 and b <= 8:
  print('Yay!')
else:
  print(':(')
Buggy code:
a, b = map(int, input().split())
if a <=8 and b <= 8:
  print("yay!")
else:
  print(":(")

Fixed code:
a, b = map(int, input().split())
if a<=8 and b<=8:
    print("Yay!")
else:
    print(":(")
Buggy code:
a,b = map(int, input().split())

if a >= 9 or b >= 9:
    print(":)")
else:
    print("Yay!")

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

if a >= 9 or b >= 9:
    print(":(")
else:
    print("Yay!")
Buggy code:
a,b = map(int,input())

if max(a,b) <= 8:
        print('Yay!')
else:
        print(':(')

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

if max(a,b) <= 8:
        print('Yay!')
else:
        print(':(')
Buggy code:
try:
    A=int(input())
    B=int(input())
except:
    A,B=[int(i) for i in input().split(" ")]
if A<=8 and B<=8:
    print("Yay!")
else:
    print(":(")


Fixed code:
A,B=[int(i) for i in input().split(" ")]
if A<=8 and B<=8:
    print("Yay!")
else:
    print(":(")