N = gets.to_i puts Rational(1, N).to_f