Foxy Information Processing System is the Next Generation Information Processing System. We can call it FIPS or NGIPS.
Let's see how foxy it is:
We assume there're two servers with FIPS are receiving information from clients. So there's a message queue. Strictly speaking, there's a message doubly linked list.
Two servers get messages in turns. But they only can get the message in the front or back of message list.
Each FIPS will analyze the amount of information of each message in the list. Then it will get a message in the front or back of message list. For each getting, it will change strategy to make sure that after getting all of the messages in queue it can get the maximum amount of information.
Now give you a message list. Please tell me the amount of information that FIPS I and FIPS II can get.
For each case, you should output the amount of information that FIPS I and FIPS II can get.
Leave a blank line between two cases.
FIPS I : 8
FIPS II: 12
FIPS I : 20
FIPS II: 16