LMP - Python 1/14/22


2022-01-14 04:35 AKST

LMP - Python 1/14/22


2022-01-14 06:35 AKST
The end is near!
Contest is over.
Not yet started.
Contest is starting in -126 days 23:45:38

Time elapsed


Time remaining


Problem C
Echo Echo Echo

If you have ever visited a canyon or a cave, you may have yelled and heard the echo of your own voice. In this problem, you should simulate that effect:

Hello! Hello! Hello!

Your program will be given as input a single word, and it should print out that word three times, separating the words with spaces.

As a refresher, here are some ways to read a single word from standard input (when the first line of input contains a single word), in a few different languages:

# Python 3
# input() reads a whole line, and strip() removes trailing whitespace/newline
word = input().strip()

// C++
// make sure to first "#include <iostream>"
std::string word;
std::cin >> word;

// Java
// make sure to first "import java.util.Scanner;"
Scanner s = new Scanner(System.in);
String word = s.next();


Input is a single line, containing exactly one word. The only characters used are upper and/or lowercase letters (a–z). The word contains at least one and at most $15$ characters.


Output the given word three times, separated by spaces.

Sample Input 1 Sample Output 1
Hello Hello Hello
Sample Input 2 Sample Output 2