Wonseop is a fan of AFC Wimbledon, a club playing in England's fourth tier (League Two). The club was founded in 2002 by Wimbledon's supporters themselves after Wimbledon FC relocated to Milton Keynes, a move they opposed.
Wimbledon FC was once strong enough to beat Liverpool, then the best team in the country, and win the 1988 FA Cup. But on 15 April 1989 the Hillsborough disaster, one of the most tragic events in football history, took place, and the Taylor Report was published in January 1990. In 1991, following the Taylor Report's requirement that top-flight clubs convert their home grounds to all-seater stadiums, Wimbledon had to leave their home ground of Plough Lane. For the next ten years they shared a stadium with the neighbouring club Crystal Palace and gradually fell into financial trouble. In 2002 they made the unprecedented move of relocating to Milton Keynes, about 90 km from Wimbledon. Wimbledon FC went bankrupt in 2004, and Winkelman, who had bought the club, renamed it Milton Keynes Dons FC (MK Dons) that July.
Hearing this news back in Korea, Wonseop was furious and longed to see MK Dons lose a match as soon as possible.
However, in 2004 MK Dons were in the third tier while AFC Wimbledon were in the eighth tier. The only chance for the two clubs to meet in an official match was the FA Cup, but since lower-league teams enter the FA Cup from the early rounds and the draw is random, it seemed all but impossible for the two teams to meet.
AFC Wimbledon began their history in the ninth tier in 2002 and were promoted step by step, reaching the eighth tier in 2004, the seventh in 2005, the sixth in 2008, and the fifth in 2009, and in 2011, just nine years after being founded, they reached the fourth tier (League Two).
MK Dons had been in the third tier ever since 2004, except for two seasons (06-07 and 07-08). Now, if MK Dons were relegated or AFC Wimbledon were promoted, the two teams could finally meet in the league.
On 2 December 2012, what had seemed impossible happened: the two clubs were drawn against each other in the second round of the 2012-13 FA Cup. Eager to watch the match, Wonseop looked through the schedule of SBS ESPN, which broadcast the FA Cup, but the match drew little interest among Korean viewers and was not scheduled to be aired.
So Wonseop asked Jisu, who lives in England, for the result. Jisu is not particularly interested in football but enjoys teasing Wonseop. Instead of telling him the final score directly, Jisu told him the sum and the difference of the goals the two teams scored.
Given the sum and the difference of the goals scored by MK Dons and AFC Wimbledon, write a program that finds the final score of each team.
For reference, Korea has a similar case. In 2007, supporters who opposed Bucheon SK's relocation to Jeju founded Bucheon FC 1995, which has competed in the K League since 2013 and is a sister club of AFC Wimbledon.
The first line contains the sum and the difference of the goals scored by the two teams, separated by a space. A football score is always a non-negative integer, and both the sum and the difference are non-negative integers not greater than 1000.
Print the result of the match on the first line, with the score of the team that scored more goals first. If no match result has the given sum and difference, print -1.
There is a highlight video of the FA Cup second-round match between MK Dons and AFC Wimbledon.