Incomplete implementation of SPOJ_LITE