import std.algorithm, std.array, std.container, std.range; import std.string, std.conv; import std.math, std.bigint, std.bitmanip, std.random; import std.stdio, std.typecons; void main() { auto rd1 = readln.chomp.split('.').map!(to!int).array; auto rd2 = readln.chomp.split('.').map!(to!int).array; writeln(rd1 >= rd2 ? "YES" : "NO"); }