import struct


def inet_ntoa(packed_ip):
    """inet_ntoa(packed_ip) -> ip_address_string

    Convert an IP address from 32-bit packed binary format to string format"""
    return "{}.{}.{}.{}".format(*struct.unpack("BBBB", packed_ip))