def int2ddn(val):
    """
    Convert simple integer represented IP adresses into DDN (Dotted
    Decimal Notation)

    :param val: an IP address stored as integer

    :returns out: a string containing the DDN represented IP address
    """
    out = '{}.{}.{}.{}'.format((val & 4278190080) >> 24, (val & 16711680) >>
        16, (val & 65280) >> 8, val & 255)
    return out
