EPROBLEM - A Very Easy Problem! (Challenge Mode)

This is challenge version of A Very Easy Problem!. Given integer i, Your task is to convert integer i into http://www.spoj.com/problems/EASYPROB/ format.

Score is the length of your source.

Input

There are multiple test cases, each line contain an integer i(0 < i < 264). Process input until EOF.

Output

For each case, output the converted number in separate line.

Example

Input:
137
1315

Output:
137=2(2(2)+2+2(0))+2(2+2(0))+2(0)
1315=2(2(2+2(0))+2)+2(2(2+2(0)))+2(2(2)+2(0))+2+2(0)

 

See also: Another problem added by Tjandra Satria Gunawan


Added by:Tjandra Satria Gunawan
Date:2012-07-13
Time limit:1.997s
Source limit:300B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Languages:All except: ASM32-GCC ASM64 MAWK BC C-CLANG NCSHARP CPP14 CPP14-CLANG COBOL COFFEE D-CLANG D-DMD DART ELIXIR FANTOM FORTH GOSU GRV JS-MONKEY JULIA KTLN NIM NODEJS OBJC OBJC-CLANG OCT PICO PROLOG PYPY PYPY3 PY_NBC R RACKET RUST CHICKEN SQLITE SWIFT UNLAMBDA VB.NET
Resource:A Very Easy Problem! (Classical Mode)

hide comments
2012-07-13 22:15:49 Francky
Warning, input should be big !!! Why ?
Edit : Can I have a tricky case ? Mine are OK.
Edit : It was the end of file, or something strange like that, I changed my IO and AC.

Info: Your code (ID:7311932) wrong for case with large integer, example:
Correct Output: 19165698963070314=...
Your Output: 19165698963070314L=...
Edit:Thanks for the info, I'm mostly a Py3 user, and those trailing 'L' didn't came in mind...


Last edit: 2012-07-14 13:28:36
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.