EasyRating 1000
Backspace Strings
In each string, # means backspace. Print YES if the two strings end up equal.
Input
Two lines.
Output
YES or NO.
Sample 1
Input
ab#c ad#c
Output
YES
Sample 2
Input
ab## c#d#
Output
YES
Output appears hereTwo lines.
YES or NO.
ab#c ad#c
YES
ab## c#d#
YES
Output appears here