use v6; my ($A, $B) = get().split(' '); for $A..$B { say $_ if ($_ % 3 == 0) || Str($_).index('3').defined; }