[AC] SPOJ/FCTRL2
[AC] SPOJ/FCTRL2 (Ruby)