def adriatic_name(p, i, j, a):
    """ Return the name for given parameters of Adriatic indices"""
    #(j)
    name1 = {1:'Randic type ',\
             2:'sum ',\
             3:'inverse sum ', \
             4:'misbalance ', \
             5:'inverse misbalance ', \
             6:'min-max ', \
             7:'max-min ', \
             8:'symmetric division '}
    # (i,a)
    name2 = {(1, 0.5):'lor',\
             (1,1):'lo', \
             (1,2):'los', \
             (2,-1):'in', \
             (2, -0.5):'ir', \
             (2, 0.5):'ro', \
             (2,1):'', \
             (2,2):'s', \
             (3, 0.5):'ha', \
             (3,2):'two'}
    #(p)
    name3 = {0: 'deg', 1: 'di'}

    return (name1[j] + name2[(i, a)] + name3[p])