Related sum of the halves of a number X84338


Statement
 

pdf   zip

Given a non-negative integer nn, compute the sum of the digits in the first and in the second halves of nn. Your program must also indicate the order relationship among those quantities. This computation has to be done only when the number of digits of nn is even.

 
The first half of a number with ll digits (for even ll) is formed by the l2\frac{l}{2} left digits and the second half is formed by the l2\frac{l}{2} right digits. For example, the number 7072444470724444, has first half 70727072 and second half 44444444.

Input

The input is a non-negative integer nn with 0n<2310 \leq n < 2^{31}.

Output

The sum of the digits of the first half and the sum of the digits of the second half together with their relationship, provided that the number of digits is even.

 
Follow the format of the examples.

Public test cases
  • Input

    0
    

    Output

    nothing
    
  • Input

    78
    

    Output

    7 < 8
    
  • Input

    787
    

    Output

    nothing
    
  • Input

    9787
    

    Output

    16 > 15
    
  • Input

    70724444
    

    Output

    16 = 16
    
  • Information
    Author
    Maria J. Blesa
    Language
    English
    Translator
    Maria J. Serna
    Original language
    Catalan
    Other languages
    Catalan Spanish
    Official solutions
    Unknown.
    User solutions
    C++ Python