Back
Close

decode it

Statement
For decode it foloow rules: 1) Convert each characters to integer 2) Make the sum of each caraceters 3) Multiply it by 2 4) Replace all odd numbers by "@" 5) Add " thnx tanana"

Input description
One string.

Output description
One string decoded.

Constraints

Game modes

Test cases
Test 1 Test
Input
5121321321321321321
Output
@8 thnx tanana

Validator 1 Validator
Input
1111111111111
Output
26 thnx tanana

Test 2 Test
Input
132132132
Output
@6 thnx tanana

Validator 2 Validator
Input
555555555555555
Output
@@0 thnx tanana

Test 3 Test
Input
46789789745646415
Output
200 thnx tanana

Validator 3 Validator
Input
3333
Output
24 thnx tanana

Test 4 Test
Input
5555555555555555555555
Output
220 thnx tanana

Validator 4 Validator
Input
101010101
Output
@0 thnx tanana

Solution language

Solution

Stub generator input