import java.net.*;

public class GetIP
  {
  public static void main(String [] args) {
    InetAddress address=null;
    if (args.length==0) {
       System.out.println("usage: GetIP host");
       System.exit(1);
       }
    try {
      address=InetAddress.getByName(args[0]);
      }
    catch (UnknownHostException e) {
      System.out.println("I can't find " + args[0]);
      System.exit(2);
      }
    System.out.println(address.getHostName() + "="
       + address.getHostAddress());
    System.exit(0);
    }
  }
