def f(x):
    return x**2 - 6*x + 5
for x in range(10):
    if f(x) > 0:
        print('f(',x,') > 0')
    elif f(x) < 0:
        print('f(',x,') < 0')
    else:
        print('f(',x,') = 0')
