SP2130 TROLLS - Trolls
Description
In a secret forest, there are many trolls. They are intelligent and most of them even knows programming languages C or PASCAL. They have written many programs. With their super computers, their programs will run for a very short time and they can get the correct answer. Being an excellent programmer, you can even come up with the answer without computers!!!
Input Format
There's no real input file. The four programs can be downloaded [here](http://www.spoj.com/content/john_jones:trolls.zip).
Output Format
For **program1.txt** and **program2.txt** in the zip file:
Your output should contain a single integer denoting the number of "\*" the program will output.
For **program3.txt** and **program4.txt** in the zip file:
Your output should contain a single integer denoting the number the program will output.
You can merge the 4 output lines together to get the real output file and submit it.