Buggy python submission (verdict: Time Limit Exceeded):
N = int(input())
flag = 0
if N < 10:
    for a in range(1,3501):
        if flag == 1:
            break
        for b in range(1,1751):
            M = (4*a*b - N*a - N*b)
            C = N*a*b
            #print(M,C,C/M)
            if M < 0 :
                continue
            elif M != 0:
                if C//M == C/M:
                    c = C//M
                    print(a,b,c)
                    flag = 1
                    break
else:
    A = [i for i in range(1,3501)]
    B = [i for i in range(1,3501)]
    for a in A[::-1]:
        if flag == 1:
            break
        for b in B[::-1]:
            M = (4*a*b - N*a - N*b)
            C = N*a*b
            #print(M,C,C/M)
            if M < 0 :
                continue
            elif M != 0:
                if C//M == C/M:
                    c = C//M
                    print(a,b,c)
                    flag = 1
                    break


Fixed submission:
import sys
N = int(input())
for h in range(1,3501):
    for n in range(1,3501):
        if 4*n*h > N*n + N*h and (N*n*h) % (4*n*h-N*h-N*n) == 0:
            w =  (N*n*h) // (4*n*h-N*h-N*n)
            print(n,h,w)
            sys.exit()

Buggy python submission (verdict: Time Limit Exceeded):
N = int(input())
flag = 0
if N < 2:
    for a in range(1,3501):
        if flag == 1:
            break
        for b in range(1,1751):
            M = (4*a*b - N*a - N*b)
            C = N*a*b
            #print(M,C,C/M)
            if M < 0 :
                continue
            elif M != 0:
                if C//M == C/M:
                    c = C//M
                    print(a,b,c)
                    flag = 1
                    break
else:
    A = [i for i in range(1,3501)]
    B = [i for i in range(1,3501)]
    for a in A[::-1]:
        if flag == 1:
            break
        for b in B[::-1]:
            M = (4*a*b - N*a - N*b)
            C = N*a*b
            #print(M,C,C/M)
            if M < 0 :
                continue
            elif M != 0:
                if C//M == C/M:
                    c = C//M
                    print(a,b,c)
                    flag = 1
                    break


Fixed submission:
import sys
N = int(input())
for h in range(1,3501):
    for n in range(1,3501):
        if 4*n*h > N*n + N*h and (N*n*h) % (4*n*h-N*h-N*n) == 0:
            w =  (N*n*h) // (4*n*h-N*h-N*n)
            print(n,h,w)
            sys.exit()

Buggy python submission (verdict: Time Limit Exceeded):
N = int(input())
flag = 0
for a in range(1,3501):
    if flag == 1:
        break
    for b in range(1,1751):
        M = (4*a*b - N*a - N*b)
        C = N*a*b
        if M < 0 :
            continue
        elif M != 0:
            if C//M == C/M:
                c = C//M
                print(a,b,c)
                flag = 1
                break

Fixed submission:
import sys
N = int(input())
for h in range(1,3501):
    for n in range(1,3501):
        if 4*n*h > N*n + N*h and (N*n*h) % (4*n*h-N*h-N*n) == 0:
            w =  (N*n*h) // (4*n*h-N*h-N*n)
            print(n,h,w)
            sys.exit()

Buggy python submission (verdict: Runtime Error):
%%cython
N = int(input())
flag = 0
for a in range(1,3501):
    if flag == 1:
        break
    for b in range(1,3501):
        M = (4*a*b - N*a - N*b)
        C = N*a*b
        if M < 0 :
            continue
        elif M != 0:
            if C//M == C/M:
                c = C//M
                print(a,b,c)
                flag = 1
                break

Fixed submission:
import sys
N = int(input())
for h in range(1,3501):
    for n in range(1,3501):
        if 4*n*h > N*n + N*h and (N*n*h) % (4*n*h-N*h-N*n) == 0:
            w =  (N*n*h) // (4*n*h-N*h-N*n)
            print(n,h,w)
            sys.exit()

Buggy python submission (verdict: Time Limit Exceeded):
N = int(input())
flag = 0
for a in range(1,3501):
    if flag == 1:
        break
    for b in range(1,3501):
        M = (4*a*b - N*a - N*b)
        C = N*a*b
        if M < 0 :
            continue
        elif M != 0:
            if C//M == C/M:
                c = C//M
                print(a,b,c)
                flag = 1
                break

Fixed submission:
import sys
N = int(input())
for h in range(1,3501):
    for n in range(1,3501):
        if 4*n*h > N*n + N*h and (N*n*h) % (4*n*h-N*h-N*n) == 0:
            w =  (N*n*h) // (4*n*h-N*h-N*n)
            print(n,h,w)
            sys.exit()