public static void main(String[] args) throws IOException {

	    	int portNumber = 7777;//Integer.parseInt(args[0]);
	        ServerSocket serverSocket = new ServerSocket(portNumber);
	        try {
	        	
     	
		        while (true){
		        	
		        	Socket clientSocket = serverSocket.accept();
		        	
		        	PrintStream out = new PrintStream(clientSocket.getOutputStream(), true);
			        Scanner in = new Scanner(clientSocket.getInputStream());
			        
			  
			        out.println(in.nextLine().toUpperCase());
			        //out.println("You are at " + clientSocket.getInetAddress());
			        
			        out.close();
			 	    in.close();
			 	    clientSocket.close();
			        
		        }
		        
		     } catch (IOException e) {
		        System.err.println("IO exception");
		        System.exit(1);
		     } 
    
  	}