import java.io.* ;
import java.net.* ;

class AdresyIP
{
    public static void main (String[] args) throws IOException
    {
        PrintWriter scr = new PrintWriter(System.out,true) ;
        BufferedReader kbd = new BufferedReader(new InputStreamReader(System.in)) ;
        while (true)
            try
            {
                scr.print("host: ") ; scr.flush() ;
                String host = kbd.readLine().trim() ;
                if (host.equals("")) break ;
                InetAddress[] tia = InetAddress.getAllByName(host) ;
                for (InetAddress ia : tia)
                    scr.println("    "+ia.getHostAddress()+"/"+ia.getHostName()) ;
            }
            catch (UnknownHostException ex)
            { scr.println("nie ma takiego hosta") ; }
            catch (IOException ex)
            { scr.println("niepowodzenie operacji we/wy") ; }
    }
}
