```
class Solution:
# @param A : list of integers
# @return a list of integers
def solve(self, A):
for i in range (0,len(A)):
if(A[i] in A and A.index(A[i])<i):
A[A.index(A[i])] = A[A.index(A[i])]+1
return A
```

# Python - As short as it looks

**neelesh-jaisinghani**