print$/=$",(<>+<>)*(<>+1)