A good problem involving cataln numbers ans inverse modulo (BRPAR on spoj).