# frozen_string_literal: true

a = gets.to_i
b = a.to_f
count = 0.00

a.times do |i = 1|
  if i % 2 != 0 then
  count += 1.00
        i += 1
  elsif i % 2 == 0
           i += 1
  end
end
puts count / b
