public static void main(String[] args) {
		try {
			Socket s = new Socket("127.0.0.1", 30000);
			new Thread(new ClientThread(s)).start();
			PrintStream ps = new PrintStream(s.getOutputStream());
			String line = null;
			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			while((line = br.readLine()) != null) {
				ps.println(line);
			}
		} catch (UnknownHostException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}
		
	}