puts(readlines[1..].map do :>=.to_proc.call(*(ary = _1.split.map(&:to_i))) || ary.first > 4 ? 'Yes' : 'No' end)