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