$\=$/;/\(.*x/?$h{$`}=$':( $_=reverse,s/[a-z]/$h{$&}/g, y/()/)(/,print eval)for<>