C:
C++:
#include <iostream>
using namespace std;
int main() {
string s;
while(cin >> s){
cout << "hello, "<< s << endl;
}
return 0;
}
JAVA:
import java.util.Scanner;
public class JAVA {
public static void main(String[] args) {
Scanner cin= new Scanner(System.in);
String s;
while (cin.hasNext()) {
s=cin.nextLine();
System.out.println("hello, " + s);
}
}
}
PYTHON:
while True:
try:
s = input()
print('hello, '+s)
except:
break