import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class HelloWorld 
{
    public static void main(String[] args) {
        BufferedReader in  = new BufferedReader(new InputStreamReader(System.in));
        String text = "";
        
        while(true)
        {
            try {
                text = in.readLine();
                System.out.println("Java program: "+ text);
            }
            catch (IOException e)
            {
                System.err.println("Exception while reading the input. " + e);
            }
        }
        
    }
    
}