// // Here your code ! list($major, $minor, $release) = explode(".", trim(fgets(STDIN))); list($input_major, $input_minor, $input_release) = explode(".", trim(fgets(STDIN))); if ($major >= $input_major) { if ($major == $input_major) { if ($minor >= $input_minor) { if ($minor == $input_minor) { if ($release >= $input_release) { echo "YES"; exit(); } else { echo "NO"; } } echo "YES"; exit(); } else { echo "NO"; } } else { echo "YES"; } }