Practice on Toph

Participate in exhilarating programming contests, solve unique algorithm and data structure challenges and be a part of an awesome community.

Nusrat Weds Kadzz

By Mr.adnan · Limits 1s, 512 MB

Now a days Nusrat is having too much proposals every day! Batch mates, juniors, seniors, friends, friends of friends, friends of friends of friends, elder brothers from his nearby houses, rickshaw puller and even house guards is falling in love with her!

Everyone is trying to impress her by doing crazy things! But she isn’t this type of girl who keeps too much BF’s. She wants a special one in her life. Although you’re junior to her, it’s not a big problem. Nusrat will consider you if you can complete a task for her. She loves Villains from movies more than Hiro’s! She wants her BF to be a serial killer! And you know, girls like something different.

Kuddus is a rickshaw puller who loves Nusrat very much! He wants to make Nusrat Happy. Nusrat doesn’t like the name “Kuddus”, so he changed his name to “Kadzz”. He has N bullets with some colors, and wants to practice shooting at night. As Nusrat likes something different, Kadzz wants to choose his bullet which is different from all other bullets!

Input

The first line will have an integer N (0 ≤ N ≤ 20) which denotes the number of bullets Kadzz has. The next line will have N integers denotes i’th bullets color. Colors will be between 1 and 10.

Output

If Kadzz doesn’t have any bullet which is different from others print “Sorry Kadzz!”, if Kadzz have more than one bullet which is different from others, also print “Sorry Kadzz!”. And you know, if there is just a single different bullet you just print the bullets color, also don’t forget to print “Nusrat weds Kadzz!” in the second line.

Samples

InputOutput
3
5 5 6
6
Nusrat weds Kadzz!
InputOutput
5
1 2 3 4 5
Sorry Kadzz!
InputOutput
2
10 10
Sorry Kadzz!


Discussion
Statistics

88% Solution Ratio

sarwarITEarliest, Jul '17

AdnanAlMaruf_9Fastest, 0.0s

code_firesLightest, 0 B

touhidurShortest, 187B

Submit

Login to submit