import std.stdio; import std.string; import std.conv; import std.algorithm; import std.range; import std.array; /// main ============= void main(){ auto v1 = readln.strip.split(".").map!(to!int).array; auto v2 = readln.strip.split(".").map!(to!int).array; writeln( v2[] <= v1 ? "YES" : "NO"); }