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

from fractions import Fraction

for i in range(1,3501):
    for j in range(1,3501):
        if (i * j * n) % (4*i*j - n*i - n*j) == 0 and (i * j * n) // (4*i*j - n*i - n*j) > 0:
            print(i,j)
            print((i * j * n) // (4*i*j - n*i - n*j))
            import sys
            sys.exit()

Fixed submission:
n = int(input())

from fractions import Fraction

for i in range(1,3501):
    for j in range(1,3501):
        if 4*i*j - n*i - n*j > 0:
            if (i * j * n) % (4*i*j - n*i - n*j) == 0 and (i * j * n) // (4*i*j - n*i - n*j) > 0:
                print(i,j, (i * j * n) // (4*i*j - n*i - n*j))
                import sys
                sys.exit()

Buggy python submission (verdict: Time Limit Exceeded):
n = int(input())

from fractions import Fraction

for i in range(1,3501):
    for j in range(i,3501):
        k = Fraction(4, n) - Fraction(1, i) - Fraction(1, j)
        if k < 0:
            continue
        if k.numerator == 1:
            print(i, j, k.denominator)
            import sys
            sys.exit()


Fixed submission:
n = int(input())

from fractions import Fraction

for i in range(1,3501):
    for j in range(1,3501):
        if 4*i*j - n*i - n*j > 0:
            if (i * j * n) % (4*i*j - n*i - n*j) == 0 and (i * j * n) // (4*i*j - n*i - n*j) > 0:
                print(i,j, (i * j * n) // (4*i*j - n*i - n*j))
                import sys
                sys.exit()

Buggy python submission (verdict: Time Limit Exceeded):
n = int(input())

from fractions import Fraction

for i in range(1,3501):
    for j in range(i,3501):
        k = Fraction(4, n) - Fraction(1, i) - Fraction(1, j)
        if k.numerator == 1:
            print(i, j, k.denominator)
            import sys
            sys.exit()


Fixed submission:
n = int(input())

from fractions import Fraction

for i in range(1,3501):
    for j in range(1,3501):
        if 4*i*j - n*i - n*j > 0:
            if (i * j * n) % (4*i*j - n*i - n*j) == 0 and (i * j * n) // (4*i*j - n*i - n*j) > 0:
                print(i,j, (i * j * n) // (4*i*j - n*i - n*j))
                import sys
                sys.exit()

Buggy python submission (verdict: Time Limit Exceeded):
n = int(input())

from fractions import Fraction

for i in range(1,3501):
    for j in range(1,3501):
        k = Fraction(4, n) - Fraction(1, i) - Fraction(1, j)
        if k.numerator == 1:
            print(i, j, k.denominator)
            import sys
            sys.exit()


Fixed submission:
n = int(input())

from fractions import Fraction

for i in range(1,3501):
    for j in range(1,3501):
        if 4*i*j - n*i - n*j > 0:
            if (i * j * n) % (4*i*j - n*i - n*j) == 0 and (i * j * n) // (4*i*j - n*i - n*j) > 0:
                print(i,j, (i * j * n) // (4*i*j - n*i - n*j))
                import sys
                sys.exit()

Buggy python submission (verdict: Time Limit Exceeded):
n = int(input())

from fractions import Fraction

for i in range(1,3501):
    for j in range(1,3501):
        k = Fraction(4, n) - Fraction(1, i) - Fraction(1, j)
        if k.numerator == 1:
            print(i, j, k.denominator)
            import sys
            sys.exit()


Fixed submission:
n = int(input())

from fractions import Fraction

for i in range(1,3501):
    for j in range(1,3501):
        if 4*i*j - n*i - n*j > 0:
            if (i * j * n) % (4*i*j - n*i - n*j) == 0 and (i * j * n) // (4*i*j - n*i - n*j) > 0:
                print(i,j, (i * j * n) // (4*i*j - n*i - n*j))
                import sys
                sys.exit()