Input Format
The first line of input contains an integer , the number of mobile phone numbers.
lines follow each containing a mobile number.
Output Format
Print  mobile numbers on separate lines in the required format.

### Problem solution in Python 3 programming language.

number = list()
N = int(input())
for i in range(N):
number.append(str(input()))

def mobile(function):
def input(number):
return sorted([function(i) for i in number])
return input

@mobile
def standardize(number):
return "+91" + " " + number[-10:-5] + " " + number[-5:]

print('\n'.join(standardize(number)))

#### Second solution

def wrapper(f):
def fun(l):
f(["+91 "+c[-10:-5]+" "+c[-5:] for c in l])
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)

### Problem solution in Python 2 programming language.

number = list()
N = int(raw_input())
for i in range(N):
number.append(str(raw_input()))

def mobile(function):
def input(number):
return sorted([function(i) for i in number])
return input

@mobile
def standardize(number):
return "+91" + " " + number[-10:-5] + " " + number[-5:]

print '\n'.join(standardize(number))