UVa 11530 - SMS Typing

Summary
A straight forward simulation problem.

Explanation
A straight forward simulation problem.

Gotchas

 * Read the input carefully, refer to the input below.

Input
5

welcome to ulab good luck and have fun abcdefghijklmnopqrstuvwxyz a

Output
Case #1: 0 Case #2: 29 Case #3: 41 Case #4: 56 Case #5: 3