a = gets.chomp.split(" ").map(&:to_i).inject(:+) d = gets.chomp.to_i ans = d / a w = gets.chomp.to_i puts ans * w