AC to SPOJ HANGOVER problem
AC to FCTRL SPOJ problem