A,B = gets.split.map(&:to_i) R = Array.new(51, 0) (0 .. 50).inject(A) do |m,i| r,d = m.divmod(B) R[i] = r d * 10 end puts "#{R[0]}.#{R[1,50].join}"