( AP ) - Daniel Cabrera threw a three-hitter to remain perfect against Kansas City , Nick Markakis backed him with a three-run home run , and the Baltimore Orioles snapped a five-game losing streak with a 4-1 victory against the Royals on Thursday night .