Thanks for your answer.
Although I'm not sure that you discovered the right "track". I doubt that natural language processing would be that relevant for SPOJ problem solving to lead to an installation of NLTK ...
A short test with Problem TEST resulted in NZEC:
import sys
import nltk
pass