Control C101C P96589


Statement
 

pdf   zip

html

Your task is to write a program that reads a character and prints if this is a letter, a digit, or it is not either a letter nor digit.

Input

The input is a character.

Output

The output is a line with the text “lletra” (for letters), “digit” (for digits) or “res” (for nothing) as required. [Those funny labels are due to a problem in the translation.]

Public test cases
  • Input

    6
    

    Output

    digit
    
  • Input

    C
    

    Output

    lletra
    
  • Input

    Z
    

    Output

    lletra
    
  • Input

    $
    

    Output

    res
    
  • Input

    f
    

    Output

    lletra
    
  • Input

    .
    

    Output

    res
    
  • 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