SPOJ-MINCOUNT