Control C101B P99109


Statement
 

pdf   zip

thehtml

Your task is to write a program that reads three words and prints which one is the smallest in alphabetical order.

Input

The input is a sequence of three words, formed by lowercase letters.

Output

The output is a line, with the smallest word (alphabetically) of the three words given.

Public test cases
  • Input

    zebra antelope donkey
    

    Output

    antelope
    
  • Input

    x y z
    

    Output

    x
    
  • Input

    melchior caspar balthasar
    

    Output

    balthasar
    
  • Input

    balthasar caspar melchior
    

    Output

    balthasar
    
  • Input

    aaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa a
    

    Output

    a
    
  • Input

    less greater less
    

    Output

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