while[exec('x='+input().replace('*',';x=x*'))]:print(x)