=====Problem Statement=====
Let's dive into decorators! You are given N mobile numbers. Sort them in ascending order then print them in the standard format shown below:
+91 xxxxx xxxxx

The given mobile numbers may have +91, 91 or 0 written before the actual 10 digit number. Alternatively, there may not be any prefix at all. Alternatively, there may not be any prefix at all.

=====Input Format=====
The first line of input contains an integer N, the number of mobile phone numbers. N lines follow each containing a mobile number.

=====Output Format=====
Print N mobile numbers on separate lines in the required format.

Difficulty: introductory

Starter code:

def wrapper(f):
    def fun(l):
        # complete the function
    return fun

@wrapper
def sort_phone(l):
    print(*sorted(l), sep='\n')

if __name__ == '__main__':
    l = [input() for _ in range(int(input()))]
    sort_phone(l) 




Solutions:
# Enter your code here. Read input from STDIN. Print output to STDOUT
n=int(input())
ar=[]
for i in range(0,n):
    tmp_str=input()
    tmp_str=tmp_str[len(tmp_str)-10:]
    ar.append(tmp_str)
    
ar.sort()
for i in range(0,len(ar)):
    print(("+91 "+ar[i][:5]+" "+ar[i][5:]))