Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def change(position):
- return position[1], 4 - position[0]
- n = int(input())
- positions = [change((line, int(input()) - 1)) for line in range(n)]
- positions.sort()
- print(*(position[1] + 1 for position in positions), sep='\n')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement