import java.net.URL;
import java.net.URLConnection;
import java.io.*;
import java.util.Scanner;

public class FindImg
{
  public static void main(String args[])
  {
    Scanner net = null;
    URL url = null; 
    URLConnection urlCon = null;

    if(args.length != 1)
    {
      System.out.println("Usage: java Connect1 <url>");
      System.exit(1);
    }

    String myURL = args[0];
    if(!myURL.toLowerCase().startsWith("http://"))
    {
      myURL = "http://" + myURL;
    }

    try
    {
      url = new URL(myURL);
    }
    catch(Exception e)
    {
      System.out.println("Exception forming url " + e);
    }
    try
    {
      urlCon = url.openConnection();
      net = new Scanner(new BufferedReader(new InputStreamReader(urlCon.getInputStream())));
    }
    catch (IOException e)
    {
      System.out.println("Exception opening Scanner" + e);
    }
    
    while(net.hasNext())
    {
      String line = net.nextLine();
      if(line.contains("img"))
      {
        int where = line.indexOf("SRC");
        where = where + 5;
        while(line.charAt(where) != '\"')
        {
          System.out.print(line.charAt(where));
          where++;
      }
        System.out.println();      
      }
    }
    net.close();
  }
}
   
