import java.net.* ;
import java.io.* ;

public class Client
{
   public Client()
   {
      try
      {
		// Cria um Soqurte e utilizaum endereço 
		//de IP especial conecido como Local Host 
         Socket s = new Socket("127.0.0.1",5155) ; 
         InputStream in = s.getInputStream() ;         
         BufferedReader bin = new BufferedReader(new InputStreamReader(in)) ;
         System.out.println(bin.readLine()) ;        
         s.close() ;                          // Fecha o soquete
      }
      catch(java.io.IOException e)
      {
         System.out.println(e) ;
         System.exit(1) ;
      }
   }
   public static void main(String args[])
   {
      Client client = new Client() ;         // Instancia um cliente
   }
}  
