# frozen_string_literal: true

def solve
  Rational(P, 1 - P).to_f
end

P = gets.to_f

puts solve