getting wa chefluck

http://www.codechef.com/viewsolution/3283054
please help tried many test cases

cout<<"-1"<<endl;

//