LAPAO translator P68483


Statement
 

pdf   zip

html

LAPAO is a fascinating language spoken near Catalonia. Therefore, it is important to have a translator from Catalan to LAPAO, and from LAPAO to Catalan. Your help is needed.

Input

Input consists of several cases, each one in two lines. The first line has a character ‘C’ or ‘L’. The second line has a text to translate. If the character is ‘C’, the given text is in Catalan. Otherwise, the given text is in LAPAO. Only English characters are used in the text. That is, there are no accents or alike.

Output

For every case, print a line with the text translated to the other language.

Public test cases
  • Input

    C
    Baixant de la Font del Gat, una noia, una noia,
    C
    baixant de la Font del Gat, una noia i un soldat.
    L
    Pregunteu-li com se diu: Marieta, Marieta,
    L
    pregunteu-li com se diu: Marieta de l'ull viu.
    

    Output

    Baixant de la Font del Gat, una noia, una noia,
    baixant de la Font del Gat, una noia i un soldat.
    Pregunteu-li com se diu: Marieta, Marieta,
    pregunteu-li com se diu: Marieta de l'ull viu.
    
  • Information
    Author
    Salvador Roura
    Language
    English
    Official solutions
    C++
    User solutions
    C++
    Event
    Onzè Concurs de Programació de la UPC - Semifinal
    Date
    2013-06-19