Control C201A P38614


Statement
 

pdf   zip

html

A natural number is called cool if the sum of the digits which are in odd positions (starting to count on the right) is an even number. For instance, 2 and 679031 are cool, but 357199 and 607 are not.

Your task is to write a program that prints if a given number is cool or is not.

Input

The input is a natural number n.

Output

Your program must print in a line if n is cool or is not, following the format of the instaces.

Public test cases
  • Input

    2 
    

    Output

    2 IS COOL
    
  • Input

    357199
    

    Output

    357199 IS NOT COOL
    
  • Input

    679031 
    

    Output

    679031 IS COOL
    
  • Input

    607
    

    Output

    607 IS NOT COOL
    
  • Input

    0
    

    Output

    0 IS COOL
    
  • Input

    1
    

    Output

    1 IS NOT COOL
    
  • Input

    999999999
    

    Output

    999999999 IS NOT COOL
    
  • Information
    Author
    Professorat de P1
    Language
    English
    Translator
    Carlos Molina
    Original language
    Catalan
    Other languages
    Catalan
    Official solutions
    C++
    User solutions
    C C++ Java Python