n = int(input()) denominator = 10 ** n numerator = denominator / 7 print(numerator / denominator)