1099_C. Postcard
Andrey received a postcard from Irina. It contained only the words "Hello, Andrey!", and a strange string consisting of lowercase Latin letters, snowflakes and candy canes. Andrey thought that this string is an encrypted message, and decided to decrypt it.

Andrey noticed that snowflakes and candy canes always stand after the letters, so he supposed that the message was encrypted as follows. Candy cane means that the letter before it can be removed, or can be left. A snowflake means that the letter before it can be removed, left, or repeated several times.

For example, consider the following string: 

<image>

This string can encode the message «happynewyear». For this, candy canes and snowflakes should be used as follows: 

  * candy cane 1: remove the letter w, 
  * snowflake 1: repeat the letter p twice, 
  * candy cane 2: leave the letter n, 
  * snowflake 2: remove the letter w, 
  * snowflake 3: leave the letter e. 

<image>

Please note that the same string can encode different messages. For example, the string above can encode «hayewyar», «happpppynewwwwwyear», and other messages.

Andrey knows that messages from Irina usually have a length of k letters. Help him to find out if a given string can encode a message of k letters, and if so, give an example of such a message.

Input

The first line contains the string received in the postcard. The string consists only of lowercase Latin letters, as well as the characters «*» and «?», meaning snowflake and candy cone, respectively. These characters can only appear immediately after the letter. The length of the string does not exceed 200.

The second line contains an integer number k (1 ≤ k ≤ 200), the required message length.

Output

Print any message of length k that the given string can encode, or «Impossible» if such a message does not exist.

Examples

Input


hw?ap*yn?eww*ye*ar
12


Output


happynewyear


Input


ab?a
2


Output


aa

Input


ab?a
3


Output


aba

Input


ababb
5


Output


ababb

Input


ab?a
1


Output


Impossible
```python
s=input()
k=int(input())
temp=""
cnt=0
for i in range(len(s)):
	if(s[i]=="?" or s[i]=="*"):
		cnt+=1
		continue
	else:
		temp+=s[i]
#print(temp,len(temp))
if(len(temp)-cnt>k):
	print("Impossible")
elif(len(temp)==k):
	print(temp)
elif(len(temp)<k):
	req=k-len(temp)
	temp2=""
	flag=0
	for i in range(len(s)):
		if(s[i]=="?"):
			continue
		elif(s[i]=="*" and flag==0):
			if(i>0):
				temp2+=(req*s[i-1])
				flag=1
		elif(s[i]!="*"):
			temp2+=s[i]
	if(len(temp2)==k):
		print(temp2)
	else:
		print("Impossible")
elif(len(temp)>k):
	temp3=s
	for i in range(len(temp3)):
		if(i<len(temp3)-1):
			if(temp3[i+1]=="?" or temp3[i+1]=="*"):
				temp3=temp3[:i]+temp3[i+1:]
			if(len(temp3)-cnt==k):
				break
	temp4=""
	for i in range(len(temp3)):
		if(temp3[i]=="?" or temp3[i]=="*"):
			continue
		temp4+=temp3[i]
	# if(s[-1]=="?" or s[-1]=="*"):
	# 	if(len(temp4)-1==k):
	# 		temp4=temp4[:len(temp4)-1]
	#print(temp4)
	if(len(temp4)==k):
		print(temp4)
	else:
		print("Impossible")





```