Buggy python submission (verdict: Runtime Error):
A = list(map(int, input().split()))

if B % 2 == 0:
    if A[0] >= 13 and A[0] <= 100:
        print(A[1])
    elif 6 <= A[0] and A[0] <= 12:
        print(A[1]/2)
    elif 0 <= A[0] and A[0] <= 5:
        print(0)

Fixed submission:
def main():
    i = list(map(int, input().split()))
    a = i[0]
    b = i[1]

    #if isinstance(a, int) == False or isinstance(b, int) == False or a < 0 or 100 < a or b < 2 or 1000 < b or b % 2 != 0:
    #    return

    if 13 <= a and a <= 100:
        print(b)
    elif 6 <= a and a <= 12:
        print(b//2)
    elif 0 <= a and a <= 5:
        print(0)

if __name__ == "__main__":
    main()

Buggy python submission (verdict: Runtime Error):
A = int(input())
B = int(input())

if A >= 13 and A <= 100:
    print(B)
elif 6 <= A and A <= 12:
    print(B/2)
elif 0 <= A and A <= 5:
    print(0)

Fixed submission:
def main():
    i = list(map(int, input().split()))
    a = i[0]
    b = i[1]

    #if isinstance(a, int) == False or isinstance(b, int) == False or a < 0 or 100 < a or b < 2 or 1000 < b or b % 2 != 0:
    #    return

    if 13 <= a and a <= 100:
        print(b)
    elif 6 <= a and a <= 12:
        print(b//2)
    elif 0 <= a and a <= 5:
        print(0)

if __name__ == "__main__":
    main()

Buggy python submission (verdict: Runtime Error):
def cal(A, B):
    if A >= 13 and A <= 100:
        return B
    elif 6 <= A and A <= 12:
        return B/2
    elif 0 <= A and A <= 5:
        return 0

if __name__ == "__main__":
    print(cal(int(input()), int(input())))

Fixed submission:
def main():
    i = list(map(int, input().split()))
    a = i[0]
    b = i[1]

    #if isinstance(a, int) == False or isinstance(b, int) == False or a < 0 or 100 < a or b < 2 or 1000 < b or b % 2 != 0:
    #    return

    if 13 <= a and a <= 100:
        print(b)
    elif 6 <= a and a <= 12:
        print(b//2)
    elif 0 <= a and a <= 5:
        print(0)

if __name__ == "__main__":
    main()

Buggy python submission (verdict: Runtime Error):
def cal(A, B):
    if A >= 13:
        return B
    elif 6 <= A and A <= 12:
        return B/2
    elif 0 <= A and A <= 5:
        return 0

if __name__ == "__main__":
    print(cal(int(input()), int(input())))

Fixed submission:
def main():
    i = list(map(int, input().split()))
    a = i[0]
    b = i[1]

    #if isinstance(a, int) == False or isinstance(b, int) == False or a < 0 or 100 < a or b < 2 or 1000 < b or b % 2 != 0:
    #    return

    if 13 <= a and a <= 100:
        print(b)
    elif 6 <= a and a <= 12:
        print(b//2)
    elif 0 <= a and a <= 5:
        print(0)

if __name__ == "__main__":
    main()

Buggy python submission (verdict: Runtime Error):
def cal(A, B):
    if A >= 13:
        return B
    elif 6 <= A and A <= 12:
        return B/2
    elif 5 >= A:
        return 0

if __name__ == "__main__":
    print(cal(int(input()), int(input())))

Fixed submission:
def main():
    i = list(map(int, input().split()))
    a = i[0]
    b = i[1]

    #if isinstance(a, int) == False or isinstance(b, int) == False or a < 0 or 100 < a or b < 2 or 1000 < b or b % 2 != 0:
    #    return

    if 13 <= a and a <= 100:
        print(b)
    elif 6 <= a and a <= 12:
        print(b//2)
    elif 0 <= a and a <= 5:
        print(0)

if __name__ == "__main__":
    main()

Buggy python submission (verdict: Runtime Error):
def cal(A, B):
    if A >= 13:
        return B
    elif 6 <= A and A <= 12:
        return B/2
    elif 5 <= A:
        return 0

if __name__ == "__main__":
    A = int(input())
    B = int(input())
    print(cal(A, B))

Fixed submission:
def main():
    i = list(map(int, input().split()))
    a = i[0]
    b = i[1]

    #if isinstance(a, int) == False or isinstance(b, int) == False or a < 0 or 100 < a or b < 2 or 1000 < b or b % 2 != 0:
    #    return

    if 13 <= a and a <= 100:
        print(b)
    elif 6 <= a and a <= 12:
        print(b//2)
    elif 0 <= a and a <= 5:
        print(0)

if __name__ == "__main__":
    main()

Buggy python submission (verdict: Runtime Error):
def cal(A, B):
    if A >= 13:
        return B
    elif 6 <= A and A <= 12:
        return B/2
    elif 5 <= A:
        return 0

if __name__ == "__main__":
    A = input()
    B = input()
    print(cal(A, B))

Fixed submission:
def main():
    i = list(map(int, input().split()))
    a = i[0]
    b = i[1]

    #if isinstance(a, int) == False or isinstance(b, int) == False or a < 0 or 100 < a or b < 2 or 1000 < b or b % 2 != 0:
    #    return

    if 13 <= a and a <= 100:
        print(b)
    elif 6 <= a and a <= 12:
        print(b//2)
    elif 0 <= a and a <= 5:
        print(0)

if __name__ == "__main__":
    main()