F. Ace It!time limit per test2 secondsmemory limit per test64 megabytesinputstandard inputoutputstandard outputInputThe only line of the input is a string of 7 characters. The first character is letter A, followed by 6 digits. The input is guaranteed to be valid (for certain definition of "valid").OutputOutput a single integer.ExamplesInputA221033Output21InputA223635Output22InputA232726Output23 
InputA221033
Output21
['*special problem', '*1900']