what is the error in my code while solving "The Name List"

i am solving the name list problem link : CodeChef: Practical coding for everyone
and my code is here: import java.io.BufferedReader;import java.io.IOException;import java.io.Inpu - Pastebin.com . i am able to achieve proper output but while submitting it shows error… please suggest me .

hey hi shubh
i tried some sample tests on your code
here is the link

hope it will clear your doubt.