Winning solution of Rubylight/JUG programming contest 2 (cloud instances)