len_pok, len_eat = gets.split.map(&:to_f) sum_yuu_eat = 0 while true len_pok -= len_eat *2 break if len_pok <= 0 sum_yuu_eat += len_eat end puts sum_yuu_eat.to_i