while 1:
try:
nums = input()+"#"
dp = []
temp = ""
for c in nums:
if &
while 1:
try:
nums = input()+"#"
dp = []
temp = ""
for c in nums:
if &