Buggy python submission (verdict: Runtime Error):
N = int(input())
flag = False
for i in range(1,3500):
    for j in range(1,3500):
        if((N*i*j)%(4*i*j - N*i - N*j) == 0 and (4*i*j - N*i - N*j) > 0):
            w = int((N*i*j)%(4*i*j - N*i - N*j))
            h = i
            n = j
            flag = True
            break
    if flag:
        break

print(h,n,w)

Fixed submission:
N = int(input())
flag = False
for i in range(1,3500):
    for j in range(1,3500):
        if((4*i*j - N*i - N*j) > 0 and (N*i*j)%(4*i*j - N*i - N*j) == 0):
            w = int((N*i*j)/(4*i*j - N*i - N*j))
            h = i
            n = j
            flag = True
            break
    if flag:
        break

print(h,n,w)

Buggy python submission (verdict: Runtime Error):
N = int(input())
# h,n,w
flag = False
for i in range(1,3500):
    for j in range(1,3500):
        if((N*i*j)%(4*i*j - N*i - N*j) == 0 and (N*i*j)/(4*i*j - N*i - N*j) > 0):
            w = int((N*i*j)%(4*i*j - N*i - N*j))
            h = i
            n = j
            flag = True
            break
    if flag:
        break

print(h,n,w)

Fixed submission:
N = int(input())
flag = False
for i in range(1,3500):
    for j in range(1,3500):
        if((4*i*j - N*i - N*j) > 0 and (N*i*j)%(4*i*j - N*i - N*j) == 0):
            w = int((N*i*j)/(4*i*j - N*i - N*j))
            h = i
            n = j
            flag = True
            break
    if flag:
        break

print(h,n,w)

Buggy python submission (verdict: Time Limit Exceeded):
N = int(input())
flag = False
for i in range(1,3501):
    for j in range(1,3501):
        if((4*i*j - N*i - N*j)==0):
            break
        w = (N*i*j)/(4*i*j - N*i - N*j)
        if(w == int(w) and w > 0):
            
            w = int(w)
            h = i
            n = j
            flag = True
            break
    
    if flag:
        break

print(h,n,w)

Fixed submission:
N = int(input())
flag = False
for i in range(1,3500):
    for j in range(1,3500):
        if((4*i*j - N*i - N*j) > 0 and (N*i*j)%(4*i*j - N*i - N*j) == 0):
            w = int((N*i*j)/(4*i*j - N*i - N*j))
            h = i
            n = j
            flag = True
            break
    if flag:
        break

print(h,n,w)

Buggy python submission (verdict: Runtime Error):
N = int(input())
# h,n,w
temp = int((3*N)/4)
if (temp >= 3500):
    temp = 3500
hlist = [i for i in range(temp,0,-1)]
flag = False
for i in hlist:
    temp = 4/N - 1/i
    if(temp > 0):
        al = int(2 / temp)
        if (al >= 3500):
            al = 3500
        nlist = [ii for ii in range(al,0,-1)]
        for j in nlist:
            beta = 4/N - 1/i - 1/j
            if (beta > 0):
                if(1/beta == int(1/beta)):
                    w = int(1/beta)
                    n = j
                    h = i
                    flag = True
                    break

    if flag:
        break

print(str(h)+ " " + str(n)+ " " +str(w))

Fixed submission:
N = int(input())
flag = False
for i in range(1,3500):
    for j in range(1,3500):
        if((4*i*j - N*i - N*j) > 0 and (N*i*j)%(4*i*j - N*i - N*j) == 0):
            w = int((N*i*j)/(4*i*j - N*i - N*j))
            h = i
            n = j
            flag = True
            break
    if flag:
        break

print(h,n,w)

Buggy python submission (verdict: Runtime Error):
N = int(input())
# h,n,w
temp = int((3*N)/4)
hlist = [i+1 for i in range(temp)]
flag = False
for i in hlist:
    temp = 4/N - 1/i
    nlist = [i+1 for i in range(int(2/temp))]
    for j in nlist:
        beta = 4/N - 1/i - 1/j
        if (beta > 0):
            if(1/beta == int(1/beta)):
                w = int(1/beta)
                n = j
                h = i
                flag = True
                break

    if flag:
        break

print(str(h)+ " " + str(n)+ " " +str(w))

Fixed submission:
N = int(input())
flag = False
for i in range(1,3500):
    for j in range(1,3500):
        if((4*i*j - N*i - N*j) > 0 and (N*i*j)%(4*i*j - N*i - N*j) == 0):
            w = int((N*i*j)/(4*i*j - N*i - N*j))
            h = i
            n = j
            flag = True
            break
    if flag:
        break

print(h,n,w)