SPOJ_FISHER bug fix