n = int(input())
soma = 0

for i in range(n):
    soma += (i+1)/(n-i)

print(n, soma)
