#!/usr/local/bin/ruby m, c = 0, 0 while c <= 30 do m += 1 c += 1 if m % 4 == 0 c += 1 if m % 9 == 0 end puts m