Hello coders..
- Use sys module in your code for taking input. input = sys.stdin.readline
- Don't convert input array into list while taking input like this ->> "(a = list(map(int,input().split(' '))))" , use "(input().split())" and for iterating this input use enumerators.