import std.stdio; import std.string, std.conv, std.array, std.algorithm; void main(){ auto input = readln.split.map!(to!int).array; auto A = input[0], B = input[1]; foreach(i ; A .. B + 1){ if(i % 3 == 0 || i.to!string.indexOf('3') != -1){ i.writeln; } } }