#!/usr/local/bin ruby19
 
#I'll fix this eventually.
 
99.downto(1) do |bottles|
  f = Fiber.new do |bottles|
    "#{bottles} bottles of beer on the wall, #{bottles} bottle#{bottles == 1 ? '':'s'} of beer. 
    Take one down and pass it around, #{bottles-1} bottle#{bottles == 1 ? '':'s'} of beer on the wall."
  end
  puts f.resume(bottles)
end