import math n = int(input()) minimo = n / math.log(n) maximo = minimo * 1.25506 print(f"{minimo:.1f}", f"{maximo:.1f}")