func main() var a: int :: cui@inputInt() var b: int :: cui@inputInt() for n(a, b) if(f(n)) do cui@print("\{n}\n") end if end for func f(n: int): bool if(n % 3 = 0) ret true end if while(n <> 0) if(n % 10 = 3) ret true end if do n :/ 10 end while ret false end func end func