OGGY AND JACK

3.3

52 votes
Easy
Problem

Oggy and his brother are on vacations and both of them are feeling bored. So they decided to play a game.

The game is such that Jack gives a number N to Oggy and ask him if it is possible to get the smallest number by reshuffling the digits without leading zeroes. Oggy tells the number M to Jack. But Jack dont want to check whether the answer is correct or not.

So he ask your help. If the answer is correct print "OK" else print "WRONG_ANSWER" without quotes.

INPUT:-
The first line contains the number N given by Jack and next line contains the number M given by Oggy as the answer.

OUTPUT:-
The only line of output contains, if the answer is correct print "OK" or "WRONG_ANSWER" else.
CONSTRAINT:-
0<=N<=10^9
0<=M<=10^9

Time Limit: 1
Memory Limit: 256
Source Limit:
Editor Image

?