SPOJ.com - Problem MULTQ3
...