Zack Greinke pitched eight solid innings in a 4-1 win over the Marlins, and Hanley Ramirez keyed a three-run fourth inning with an RBI double against the team that traded him and the pitcher for which he was traded.