p=1;x=raw_input().split(',') for k in x:p=p*int(k) print p