# New Driver's Licence

You have to get a new driver's license and you show up at the office at the same time as 4 other people. The office says that they will see everyone in alphabetical order and it takes 20 minutes for them to process each new license. All of the agents are available now, and they can each see one customer at a time. How long will it take for you to walk out of the office with your new license? Task Given everyone's name that showed up at the same time, determine how long it will take to get your new license. Sample Input 'Eric' 2 'Adam Caroline Rebecca Frank' Sample Output 40 e = input() f = int(input()) a = input() g = a.split() g.append(e) g.sort() for i in g: if i == e: d = g.index(i) if f == 1: print((d+1)*20) elif f > 1 and d<=(f-1): print(20) elif f == 2 and d > (f-1) and d %2 == 0 and d > 3: print(40) else: print(20) In above 2 cases are approved rest 3 are locked and my attempt isn't getting approved. Where's I'm wrong?