You are on page 1of 1

Saving the cinema

Input file: standard input


Output file: standard output
Time limit: 1 second
Memory limit: 256 megabytes

Those who are not familiar with movies often confuse the Star Wars and Star Trek sagas, which is
offensive because Star Wars is widely superior. Esomer is tired of these offenses, so he wants to create
a program that, given a character, responds whether it belongs to the Star Wars saga or the Star Trek
saga. Unfortunately, he is not very good at programming, so he needs your help.

Input
The input will consist of a single string s, which will be one of the following three options (without quotes):
“Yoda“, “Spock“, or “Frodo“.

Output
In the case that s is “Yoda“, you should print: “Pertenece a Star Wars.“.
In the case that s is “Spock“, you should print: “Pertenece a Star Trek.“.
In the case that s is “Frodo“, you should print: “No pertenece ni a Star Wars ni a Star Trek.“.
All of them without quotes.

Examples
standard input standard output
Spock Pertenece a Star Trek.
Yoda Pertenece a Star Wars.
Frodo No pertenece a Star Wars ni a Star Trek.

Page 1 of 1

You might also like