Pusheen is playing Neko Atsume! She has a lot of toys and has laid them out to maximize her fish income. She wants to know how efficient her layout will be though.
After doing a lot of critical thinking and real-time programming, Pusheen has boiled down the fish income in terms
of a single variable - the beauty of the arrangement of toys. She thus defines
Pusheen has
Constraints
Input Specification
The first line contains five space-separated integers,
The next
Output Specification
Output
Sample Input
Copy
2 0 2 0 3
1
2
3
Sample Output
Copy
2
4
4
Comments