import std.stdio; import std.conv, std.array, std.algorithm, std.string; import std.math, std.random, std.range, std.datetime; import std.bigint; void main(){ long a, b; { long[] xs = readln.chomp.split.map!(to!long).array; a = xs[0], b = xs[1]; } for(long x = a; x <= b; x ++){ string s = x.to!string; if(x % 3 == 0 || s.canFind('3')) s.writeln; } }