Uppercase and lowercase letters P98960


Statement
 

pdf   zip

thehtml

Write a program that reads a letter and prints it in lowercase if it was uppercase, or prints it in uppercase if it was lowercase.

Input

Input consists of a letter.

Output

Print a line with the given letter in lowercase if it was uppercase, or in uppercase if it was lowercase.

Public test cases
  • Input

    r
    

    Output

    R
    
  • Input

    F
    

    Output

    f
    
  • Information
    Author
    Jordi Petit
    Language
    English
    Translator
    Carlos Molina
    Original language
    Catalan
    Other languages
    Catalan
    Official solutions
    C++ Java Pascal Python
    User solutions
    Brainfuck C C++ Haskell Java Lisp Lua Perl PHP Python Ruby Rust