s=1 for k in map(int,raw_input().split(',')):s*=k print s