Compose a word
Very easy
Execution time limit is 1 second
Runtime memory usage limit is 64 megabytes
Can the letters of the word a be rearranged to form the word b, using each letter exactly once?
Input
The first line contains the word a, and the second line contains the word b. Both consist of English letters.
Output
Print Ok if it is possible to rearrange the letters of a to form b. Otherwise, print No.
Examples
Input #1
Answer #1
Input #2
Answer #2
Submissions 3K
Acceptance rate 44%