14673 - The Cipher of Vyasa Dev   

Description

You’ve been unexpectedly transported back in time to an ancient world, long before the advent of modern technology. You’ve discovered that Vyasa Dev, a great figure from history, left behind crucial knowledge encoded in numbers. This knowledge was once thought to be too complex to decipher. The people of that time could not solve it because they lacked the tools and mathematical understanding required.

For generations, the encoded knowledge remained inaccessible, hidden in a series of numbers, each holding a piece of a great puzzle. But now, with your modern laptop and coding skills, the challenge is no longer impossible. What was once a monumental task can now be solved quickly with the power of technology.

 

                                    Open photo

 

The knowledge is hidden in the even indices of the number, and you must calculate the sum of these digits to solve the puzzle. Without your ability to code, this problem would have remained unsolved for centuries. But with your help, the knowledge Vyasa Dev left behind is finally within reach.

 

TASK: 

Find the sum of all EVEN indices (0-Indexed)

EXAMPLE:

Given the number 123456, the digits at the even indices (0, 2, 4) are:

  • Index 0: 1

  • Index 2: 3

  • Index 4: 5

The sum of these digits is: 1 + 3 + 5 = 9

Input

A single line of numbers.

Output

Sum of digits at even indices followed by a newline.

Sample Input  Download

Sample Output  Download




Discuss