#C3128. Assembly Process Memory Check
Assembly Process Memory Check
Assembly Process Memory Check
A robot factory performs a crucial assembly process dictated by a sequence of commands. Given the number of commands to be executed along with the robot's memory capacity, determine whether the robot can complete the assembly process. Essentially, if the robot's memory capacity is at least equal to the number of commands, it can execute the complete sequence.
Formally, given two integers \( n \) and \( m \), output "YES" if \( n \le m \), else output "NO".
inputFormat
The input is provided via standard input (stdin) and consists of three lines:
- The first line contains an integer \( n \), representing the number of commands.
- The second line contains a string of characters, which represents the command sequence.
- The third line contains an integer \( m \), representing the robot's memory capacity.
outputFormat
Output a single line to standard output (stdout) containing either "YES" if the robot can complete the assembly process, or "NO" otherwise.
## sample8
abcdefgh
5
NO