n = gets.to_i
if n == 0
    p 0
    exit
end
p = 10 ** n
q = p / 7
puts "0." + q.to_s