Buggy python submission (verdict: Runtime Error):
import itertools

l = input().split(' ')

n = int(l[0])
m = int(l[1])
d = int(l[2])

def get_beauty(l,d):
    # top = abs(l[0]-l[1])
    other = list(map(lambda x,y:abs(x-y),l[:-1],l[1:]))
    return other.count(d)

aa = [i+1 for i in range(n)]
candi = list(itertools.combinations_with_replacement(aa,r=m))
beauty = list(map(get_beauty,candi,[d for i in range(len(candi))]))
print(sum(beauty)/len(candi))


Fixed submission:
l = input().split()
if int(l[0])+int(l[1])==15:
    print('+')
elif int(l[0])*int(l[1]) ==15:
    print('*')
else:
    print('x')

Buggy python submission (verdict: Runtime Error):
import itertools

l = list(map(int, input().split(' ')))

n = l[0]
m = l[1]
d = l[2]

Fixed submission:
l = input().split()
if int(l[0])+int(l[1])==15:
    print('+')
elif int(l[0])*int(l[1]) ==15:
    print('*')
else:
    print('x')

Buggy python submission (verdict: Runtime Error):
import itertools

l = list(map(int, input().split(' ')))

n = l[0]
m = l[1]
d = l[2]
print(a)

Fixed submission:
l = input().split()
if int(l[0])+int(l[1])==15:
    print('+')
elif int(l[0])*int(l[1]) ==15:
    print('*')
else:
    print('x')

Buggy python submission (verdict: Runtime Error):
import itertools

l = list(map(int, input().split(' ')))

n = l[0]
m = l[1]
d = l[2]

def get_beauty(l,d):
    # top = abs(l[0]-l[1])
    other = list(map(lambda x,y:abs(x-y),l[:-1],l[1:]))
    return other.count(d)

aa = [i+1 for i in range(n)]
candi = list(itertools.product(aa,repeat=m))
beauty = list(map(get_beauty,candi,[d for i in range(len(candi))]))
print(sum(beauty)/len(candi))


Fixed submission:
l = input().split()
if int(l[0])+int(l[1])==15:
    print('+')
elif int(l[0])*int(l[1]) ==15:
    print('*')
else:
    print('x')

Buggy python submission (verdict: Runtime Error):
import itertools

l = list(map(int, input().split()))

n = l[0]
m = l[1]
d = l[2]

def get_beauty(l,d):
    # top = abs(l[0]-l[1])
    other = list(map(lambda x,y:abs(x-y),l[:-1],l[1:]))
    return other.count(d)

aa = [i+1 for i in range(n)]
candi = list(itertools.product(aa,repeat=m))
print(candi)
beauty = list(map(get_beauty,candi,[d for i in range(len(candi))]))
print(sum(beauty)/len(candi))


Fixed submission:
l = input().split()
if int(l[0])+int(l[1])==15:
    print('+')
elif int(l[0])*int(l[1]) ==15:
    print('*')
else:
    print('x')

Buggy python submission (verdict: Runtime Error):
string = input()
# print(string)
# string = string[0]
# num = int(string[1])

num = int(input())
# num = int(l[1])
# print(string)
if num == 0:
    out = string
    print(out)
else:
    out=string[0]
    for i in [i for i in range(len(string))]:
        if i != 0:
            if i%num == 0:
                out=out+string[i]
    print(out)


Fixed submission:
l = input().split()
if int(l[0])+int(l[1])==15:
    print('+')
elif int(l[0])*int(l[1]) ==15:
    print('*')
else:
    print('x')

Buggy python submission (verdict: Runtime Error):
string = input()
# print(string)
# string = string[0]
# num = int(string[1])

num = int(input())
# num = int(l[1])
# print(string)
if num == 0:
    print(string)
else:
    out=string[0]
    for i in [i for i in range(len(string))]:
        if i != 0:
            if i%num == 0:
                out=out+string[i]
    print(out)


Fixed submission:
l = input().split()
if int(l[0])+int(l[1])==15:
    print('+')
elif int(l[0])*int(l[1]) ==15:
    print('*')
else:
    print('x')

Buggy python submission (verdict: Runtime Error):
l = input()
string = l
num = input()
print(string)

Fixed submission:
l = input().split()
if int(l[0])+int(l[1])==15:
    print('+')
elif int(l[0])*int(l[1]) ==15:
    print('*')
else:
    print('x')

Buggy python submission (verdict: Runtime Error):
l = raw_input().split(' ')
string = l[0]
print(string)

Fixed submission:
l = input().split()
if int(l[0])+int(l[1])==15:
    print('+')
elif int(l[0])*int(l[1]) ==15:
    print('*')
else:
    print('x')

Buggy python submission (verdict: Runtime Error):
l = raw_input().split(' ')
string = l[0]
# string = string[0]
# num = int(string[1])
# num = input()
# num = int(num)
num = int(l[1])
# print(string)
if num == 0:
    print(string)
else:
    out=string[0]
    for i in [i for i in range(len(string))]:
        if i != 0:
            if i%num == 0:
                out=out+string[i]
    print(out)


Fixed submission:
l = input().split()
if int(l[0])+int(l[1])==15:
    print('+')
elif int(l[0])*int(l[1]) ==15:
    print('*')
else:
    print('x')

Buggy python submission (verdict: Runtime Error):

l = raw_input().split()
string = l[0]
# string = string[0]
# num = int(string[1])
# num = input()
# num = int(num)
num = int(l[1])
# print(string)
if num == 0:
    print(string)
else:
    out=string[0]
    for i in [i for i in range(len(string))]:
        if i != 0:
            if i%num == 0:
                out=out+string[i]
    print(out)


Fixed submission:
l = input().split()
if int(l[0])+int(l[1])==15:
    print('+')
elif int(l[0])*int(l[1]) ==15:
    print('*')
else:
    print('x')

Buggy python submission (verdict: Runtime Error):
string = input()

# string = string[0]
# num = int(string[1])
num = input()
num = int(num)
print(string)
# if num == 0:
#     print(string)
# else:
#     out=string[0]
#     for i in [i for i in range(len(string))]:
#         if i != 0:
#             if i%num == 0:
#                 out=out+string[i]
#     print(out)


Fixed submission:
l = input().split()
if int(l[0])+int(l[1])==15:
    print('+')
elif int(l[0])*int(l[1]) ==15:
    print('*')
else:
    print('x')

Buggy python submission (verdict: Runtime Error):
string = input()
num = int(input())
if num == 0:
    print(string)
else:
    out=string[0]
    for i in [i for i in range(len(string))]:
        if i != 0:
            if i == 0:
                out=out+string[i]
    print(out)


Fixed submission:
l = input().split()
if int(l[0])+int(l[1])==15:
    print('+')
elif int(l[0])*int(l[1]) ==15:
    print('*')
else:
    print('x')

Buggy python submission (verdict: Runtime Error):
string = input()
num = int(input())
if num == 0:
    print(string)
else:
    out=string[0]
    for i in [i for i in range(len(string))]:
        if i != 0:
            if i%num == 0:
                out=out+string[i]
    print(out)


Fixed submission:
l = input().split()
if int(l[0])+int(l[1])==15:
    print('+')
elif int(l[0])*int(l[1]) ==15:
    print('*')
else:
    print('x')

Buggy python submission (verdict: Runtime Error):
string = input()
num = int(input())
if num == 0:
    print(string)
else:
    out=string[0]
    for i,s in zip([i for i in range(len(string))],string):
        if i != 0:
            if i%num == 0:
                out=out+string[i]
    print(out)


Fixed submission:
l = input().split()
if int(l[0])+int(l[1])==15:
    print('+')
elif int(l[0])*int(l[1]) ==15:
    print('*')
else:
    print('x')

Buggy python submission (verdict: Runtime Error):
string = input()
num = int(input())
if num == 0:
    print(string)
else:
    out=string[0]
    for i,s in zip([i for i in range(len(string))],string):
        if i != 0:
            if i%num == 0:
                out=out+string[i]
    print(out)


Fixed submission:
l = input().split()
if int(l[0])+int(l[1])==15:
    print('+')
elif int(l[0])*int(l[1]) ==15:
    print('*')
else:
    print('x')

Buggy python submission (verdict: Runtime Error):
string = input()
num = int(input())
if num == 0:
    print(string)
else:
    count=1
    out=string[0]

    for i,s in zip([i for i in range(len(string))],string):
        if i != 0:
            if i%num == 0:
                out=out+string[i]
    print(out)


Fixed submission:
l = input().split()
if int(l[0])+int(l[1])==15:
    print('+')
elif int(l[0])*int(l[1]) ==15:
    print('*')
else:
    print('x')

Buggy python submission (verdict: Runtime Error):
string = input()
num = int(input())

count=1
out=string[0]

for i,s in zip([i for i in range(len(string))],string):
    if i != 0:
        if i%num == 0:
            out=out+string[i]

print(out)

Fixed submission:
l = input().split()
if int(l[0])+int(l[1])==15:
    print('+')
elif int(l[0])*int(l[1]) ==15:
    print('*')
else:
    print('x')

Buggy python submission (verdict: Runtime Error):
string = input()
num = int(input())

count=1
out =string[0]

for i,s in zip([i for i in range(len(string))],string):
    if i != 0:
        if i%num == 0:
            out=out+string[i]
print(out)


Fixed submission:
l = input().split()
if int(l[0])+int(l[1])==15:
    print('+')
elif int(l[0])*int(l[1]) ==15:
    print('*')
else:
    print('x')

Buggy python submission (verdict: Runtime Error):
string = input()
num = int(input())

count=1
out =string[0]
# for s in string:
#     if count==num:
#         out=out+string[len(out)*num]
#         count=1
#     else:
#         count=count+1
# print(out)

for i,s in zip([i for i in range(len(string))],string):
    if i != 0:
        if i%num == 0:
            out=out+string[i]
print(out)


Fixed submission:
l = input().split()
if int(l[0])+int(l[1])==15:
    print('+')
elif int(l[0])*int(l[1]) ==15:
    print('*')
else:
    print('x')

Buggy python submission (verdict: Runtime Error):
string = input()
num = int(input())

count=1
out =''
for s in string:
    if count==num:
        out=out+string[len(out)*num]
        count=1
    count=count+1
print(out)


Fixed submission:
l = input().split()
if int(l[0])+int(l[1])==15:
    print('+')
elif int(l[0])*int(l[1]) ==15:
    print('*')
else:
    print('x')

Buggy python submission (verdict: Runtime Error):
string = input()
num = int(input())

count=1
out =''
for s in string:
    if count==num:
        out=out+s
        count=1
    count+1

Fixed submission:
l = input().split()
if int(l[0])+int(l[1])==15:
    print('+')
elif int(l[0])*int(l[1]) ==15:
    print('*')
else:
    print('x')

Buggy python submission (verdict: Runtime Error):
string = input()
num = int(input())

count=1
out =''
for s in string:
    if count=num:
        out=out+s
        count=1
    count+1

Fixed submission:
l = input().split()
if int(l[0])+int(l[1])==15:
    print('+')
elif int(l[0])*int(l[1]) ==15:
    print('*')
else:
    print('x')

Buggy python submission (verdict: Runtime Error):
l = raw_input().split()
if int(l[0])+int(l[1])==15:
    print('+')
elif int(l[0])*int(l[1]) ==15:
    print('*')
else:
    print('x')

Fixed submission:
l = input().split()
if int(l[0])+int(l[1])==15:
    print('+')
elif int(l[0])*int(l[1]) ==15:
    print('*')
else:
    print('x')

Buggy python submission (verdict: Runtime Error):
l = raw_input().split()
if l[0]+l[1]==15:
    print('+')
elif l[0]*l[1] ==15:
    print('*')
else:
    print('x')

Fixed submission:
l = input().split()
if int(l[0])+int(l[1])==15:
    print('+')
elif int(l[0])*int(l[1]) ==15:
    print('*')
else:
    print('x')