On February, 30th n students came in the Center for Training Olympiad Programmers (CTOP) of the Berland State University. They came one by one, one after another. Each of them went in, and before sitting down at his desk, greeted with those who were present in the room by shaking hands. Each of the students who came in stayed in CTOP until the end of the day and never left.

At any time any three students could join together and start participating in a team contest, which lasted until the end of the day. The team did not distract from the contest for a minute, so when another student came in and greeted those who were present, he did not shake hands with the members of the contest writing team. Each team consisted of exactly three students, and each student could not become a member of more than one team. Different teams could start writing contest at different times.

Given how many present people shook the hands of each student, get a possible order in which the students could have come to CTOP. If such an order does not exist, then print that this is impossible.

Please note that some students could work independently until the end of the day, without participating in a team contest.


-----Input-----

The first line contains integer n (1 ≤ n ≤ 2·10^5) — the number of students who came to CTOP. The next line contains n integers a_1, a_2, ..., a_{n} (0 ≤ a_{i} < n), where a_{i} is the number of students with who the i-th student shook hands.


-----Output-----

If the sought order of students exists, print in the first line "Possible" and in the second line print the permutation of the students' numbers defining the order in which the students entered the center. Number i that stands to the left of number j in this permutation means that the i-th student came earlier than the j-th student. If there are multiple answers, print any of them.

If the sought order of students doesn't exist, in a single line print "Impossible".


-----Examples-----
Input
5
2 1 3 0 1

Output
Possible
4 5 1 3 2 
Input
9
0 2 3 4 1 1 0 2 2

Output
Possible
7 5 2 1 6 8 3 4 9
Input
4
0 2 1 1

Output
Impossible



-----Note-----

In the first sample from the statement the order of events could be as follows:   student 4 comes in (a_4 = 0), he has no one to greet;  student 5 comes in (a_5 = 1), he shakes hands with student 4;  student 1 comes in (a_1 = 2), he shakes hands with two students (students 4, 5);  student 3 comes in (a_3 = 3), he shakes hands with three students (students 4, 5, 1);  students 4, 5, 3 form a team and start writing a contest;  student 2 comes in (a_2 = 1), he shakes hands with one student (number 1). 

In the second sample from the statement the order of events could be as follows:   student 7 comes in (a_7 = 0), he has nobody to greet;  student 5 comes in (a_5 = 1), he shakes hands with student 7;  student 2 comes in (a_2 = 2), he shakes hands with two students (students 7, 5);  students 7, 5, 2 form a team and start writing a contest;  student 1 comes in(a_1 = 0), he has no one to greet (everyone is busy with the contest);  student 6 comes in (a_6 = 1), he shakes hands with student 1;  student 8 comes in (a_8 = 2), he shakes hands with two students (students 1, 6);  student 3 comes in (a_3 = 3), he shakes hands with three students (students 1, 6, 8);  student 4 comes in (a_4 = 4), he shakes hands with four students (students 1, 6, 8, 3);  students 8, 3, 4 form a team and start writing a contest;  student 9 comes in (a_9 = 2), he shakes hands with two students (students 1, 6). 

In the third sample from the statement the order of events is restored unambiguously:   student 1 comes in (a_1 = 0), he has no one to greet;  student 3 comes in (or student 4) (a_3 = a_4 = 1), he shakes hands with student 1;  student 2 comes in (a_2 = 2), he shakes hands with two students (students 1, 3 (or 4));  the remaining student 4 (or student 3), must shake one student's hand (a_3 = a_4 = 1) but it is impossible as there are only two scenarios: either a team formed and he doesn't greet anyone, or he greets all the three present people who work individually.

Difficulty: interview

Starter code:

Solutions:
n=int(input())
c=[[] for i in range(n)]
[c[int(x)].append(i+1) for i,x in enumerate(input().split())]
s=0;r=[]
for i in range(n):
    while len(c[s])==0 and s>=0:
        s-=3
    if s<0:
        print('Impossible')
        break
    else:
        r+=[c[s].pop()]
        s+=1
else:
     print('Possible')
     print(*r)

import sys
from pprint import pprint

n  = int(sys.stdin.readline().strip())
a = list(map(int, sys.stdin.readline().strip().split(' ')))

s = [[] for i in range(0, n+1)]

for i, ai in enumerate(a, start=1):
	s[ai].append(i)

#pprint(s)
i = 0
q = []

while True:
	if len(s[i]) > 0:
		# Greedy: Add as many students to the room as possible.
		q.append( str( s[i][-1] ) )
		i += 1
	else:
		# Remove a team
		if i < 3:
			break
		s[i-1].pop()
		s[i-2].pop()
		s[i-3].pop()
		i -= 3
if len(q) == n:
	print('Possible')
	print(' '.join(q) )
else:
	print('Impossible')

n = int(input())
c = [[] for i in range(n)]
[c[int(x)].append(i + 1) for i, x in enumerate(input().split())]
s = 0; r = []
for i in range(n):
    while len(c[s]) == 0 and s >= 0: s -= 3
    if s < 0: print('Impossible'); break
    r += [c[s].pop()]; s += 1
else: print('Possible\n', *r)

n = int(input())
c = [[] for i in range(n)]
[c[int(x)].append(i + 1) for i, x in enumerate(input().split())]
s = 0; r = []
for i in range(n):
    while len(c[s]) == 0 and s >= 0: s -= 3
    if s < 0: print('Impossible'); break
    r += [c[s].pop()]; s += 1
else: print('Possible\n', *r)


n = int(input())
c = [[] for i in range(n)]
[c[int(x)].append(i + 1) for i, x in enumerate(input().split())]
s = 0; r = []
for i in range(n):
    while len(c[s]) == 0 and s >= 0: s -= 3
    if s < 0: print('Impossible'); break
    r += [c[s].pop()]; s += 1
else: print('Possible\n', *r)


n = int(input())
c = [[] for i in range(n)]
[c[int(x)].append(i + 1) for i, x in enumerate(input().split())]
s = 0; r = []
for i in range(n):
    while len(c[s]) == 0 and s >= 0: s -= 3
    if s < 0: print('Impossible'); break
    r += [c[s].pop()]; s += 1
else: print('Possible\n', *r)


n = int(input())
c = [[] for i in range(n)]
[c[int(x)].append(i + 1) for i, x in enumerate(input().split())]
s = 0; r = []
for i in range(n):
    while len(c[s]) == 0 and s >= 0: s -= 3
    if s < 0: print('Impossible'); break
    r += [c[s].pop()]; s += 1
else: print('Possible\n', *r)


n = int(input())
c = [[] for i in range(n)]
[c[int(x)].append(i + 1) for i, x in enumerate(input().split())]
s = 0; r = []
for i in range(n):
    while len(c[s]) == 0 and s >= 0: s -= 3
    if s < 0: print('Impossible'); break
    r += [c[s].pop()]; s += 1
else: print('Possible\n', *r)


n = int(input())
c = [[] for i in range(n)]
[c[int(x)].append(i + 1) for i, x in enumerate(input().split())]
s = 0; r = []
for i in range(n):
    while len(c[s]) == 0 and s >= 0: s -= 3
    if s < 0: print('Impossible'); break
    r += [c[s].pop()]; s += 1
else: print('Possible\n', *r)


n = int(input())
c = [[] for i in range(n)]
[c[int(x)].append(i + 1) for i, x in enumerate(input().split())]
s = 0; r = []
for i in range(n):
    while len(c[s]) == 0 and s >= 0: s -= 3
    if s < 0: print('Impossible'); break
    r += [c[s].pop()]; s += 1
else: print('Possible\n', *r)


n = int(input())
c = [[] for i in range(n)]
[c[int(x)].append(i + 1) for i, x in enumerate(input().split())]
s = 0; r = []
for i in range(n):
    while len(c[s]) == 0 and s >= 0: s -= 3
    if s < 0: print('Impossible'); break
    r += [c[s].pop()]; s += 1
else: print('Possible\n', *r)


n = int(input())

p = [int(x) for x in input().split()]

c = [[] for _ in range(n)]

t = 0

for i,x in enumerate(p):
    c[x].append(i)

res = []

while True:
    while t < n and len(c[t]) == 0 and t > 0:
        t -= 3
    if t >= n or len(c[t]) == 0:
        break
    res.append(c[t].pop()+1)
    t += 1

if all(len(x) == 0 for x in c):
    print("Possible")
    print(" ".join(map(str, res)))
else: print("Impossible")



def read_int():
    return int(input().strip())


def read_ints():
    return list(map(int, input().strip().split(' ')))


def solve():
    """
    4 2 1 3 5

    0 2 3 4 1 1 0 2 2
    x x x x x x x x x

    1 5 8 3 4 2 7 6 9

10
0 3 4 2

0 1 2 3 4 5
    """
    N = read_int()
    shakes = [[] for _ in range(N)]

    for i, a in enumerate(read_ints(), start=1):
        shakes[a].append(i)
    i = 0
    answer = []
    while N > 0:
        if len(shakes[i]) > 0:
            answer.append(shakes[i].pop())
            N -= 1
            i += 1
        else:
            j = i
            while j >= 0 and len(shakes[j]) == 0:
                j -= 3
            if j < 0:
                break
            i = j
    if N != 0:
        return 'Impossible'
    print('Possible')
    return ' '.join(map(str, answer))


def __starting_point():
    print(solve())

__starting_point()

def main():
    n = int(input())
    a = list(map(int, input().split()))
    dic = [[] for i in range(n)]
    
    for i, item in enumerate(a, start=1):
        dic[item].append(i)
    
    if not dic[0]:
        print("Impossible")
        return
    route = [dic[0].pop()]
    s = 0

    for i in range(1, n):
        s += 1
        while s >= 0:
            if dic[s]:
                route.append(dic[s].pop())
                break
            else:
                s -= 3
        else:
            print("Impossible")
            return
    
    if len(route) == n:
        print("Possible")
        print(' '.join(str(i) for i in route))
    else:
        print("Impossible")

main()


n = int(input())
a = list(map(int, input().split()))
dic = [[] for i in range(n)]
    
for i, item in enumerate(a, start=1):
    dic[item].append(i)

if not dic[0]:
    print("Impossible")
    return
route = [dic[0].pop()]
s = 0

for i in range(1, n):
    s += 1
    while s >= 0:
        if dic[s]:
            route.append(dic[s].pop())
            break
        else:
            s -= 3
    else:
        print("Impossible")
        return

if len(route) == n:
    print("Possible")
    print(' '.join(str(i) for i in route))
else:
    print("Impossible")