IntermediateRating 1200
One Edit Away
One edit is inserting, deleting or replacing one character. Print YES if the two strings are equal or one edit apart.
Input
Two strings, one per line.
Output
YES or NO.
Sample 1
Input
pale ple
Output
YES
Sample 2
Input
pales pale
Output
YES
Output appears here