UCalgary Competitive Programming Week 1

Start

2021-09-10 14:00 AKDT

UCalgary Competitive Programming Week 1

End

2021-09-17 14:00 AKDT
The end is near!
Contest is over.
Not yet started.
Contest is starting in -45 days 11:44:19

Time elapsed

168:00:00

Time remaining

0:00:00

Problem A
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

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

Output the given word three times, separated by spaces.

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