for spoj questions