import pprint
def registerTreat(lis): #lis = a list of parameters
lSize = len(lis)
if lSize == 0 or lSize == 1 or lSize == 2:
print('error')
elif lSize == 3:
try:
t[lis[0]][lis[1]] = lis[-1]
except:
try:
t[lis[0]] = {}
t[lis[0]][lis[1]] = lis[-1]
except:
print('error 1')
elif lSize == 4:
try:
t[lis[0]][lis[1]][lis[2]] = lis[-1]
except:
try:
t[lis[0]][lis[1]] = {}
t[lis[0]][lis[1]][lis[2]] = lis[-1]
except:
try:
t[lis[0]] = {}
t[lis[0]][lis[1]] = {}