import java.net.*;
import java.io.*;

public class LycosUltraSeeker
{
  public static void main ( String[] args )
  {
    String s = "";
    
    for ( int i = 0; i < args.length; i++ )
      s += args[i] + " ";
    s.trim();
    s = "query=" + URLEncoder.encode( s );
    try {
   
      URL u = new URL( "http://www.lycos.com/cgi-bin/pursuit?" + s );
      System.out.println( (String) u.getContent() );
    }
    catch ( MalformedURLException e ) {
      System.err.println(e);
    }
    catch ( IOException e ) {
      System.err.println( e );
    }
    catch ( Exception e ) {
      System.err.println( e );
    }
  }
}
