Training Site
Sideways banner

Welcome to the NZIC 2018

Input: Standard Input (stdin)
Output: Standard Output (stdout)
Memory limit: 100 megabytes
Time limit: 1.0 seconds

Welcome to the New Zealand Informatics Competition (NZIC).

We hope you enjoy these contests and take the opportunity to learn more about informatics. When you compete in the NZIC, there is a possibility you could be invited to join us in Christchurch for our January informatics camp. Camp is a chance to meet more people like you who love to code.

You have three hours to complete as many problems as you can (including this one). Some problems are divided into subtasks which give you partial points. Even if you don’t think you can solve the full problem, have a go at the subtasks. If you get stuck on a question, we suggest moving onto the next one and coming back to it. Questions are not always in order of difficulty. Don't worry if you can't complete all the problems. Participation is more important than how well you do.

To get you started, we’ll give you some easy points if you can say hello. Good luck!

Input

Input will be a single line with a name on it. The name will never be longer than 100 characters.

Output

You should output the word “Hello” followed by a space, then the name you are addressing. For example, if “NZIC” was the input, your program should output “Hello NZIC”.

If you are having issues, please email nzic@nzoi.org.nz. Also please let us know if you spot mistakes so we can fix them.

Hints

  • Use the submit tab above to select your language and upload your code.
  • Don't waste time dealing with invalid cases or testing user input! In contests, you may always assume the input is valid.
  • A warning to Python users: Don't use prompts with Python's input() function. The computer will think the prompt is your answer and mark you incorrect.

In Python 3, you might like to use

name = input()
print("Hello " + name)

In C++

#include <iostream>
using namespace std;

int main()
{
    string name;
    cin >> name;
    cout << "Hello " << name << endl;
}

In Java

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in); 
        System.out.println("Hello " + scan.next());
    }
}

Note: Don't define any packages for Java. Copy and paste the above as a complete template.

  • Sample Input 1

    NZIC
    

    Sample Output 1

    Hello NZIC