SP2898 PARTY2 - Party of Cloaked Killers

Description

_N_ (1

Input Format

Ten test cases(given one after another, you have to process all!). For each test case: The first line contains two integers _N_ and _E_(1

Output Format

For each test case, output one line: If the information given is contradictory, output one line "-1 -1". Otherwise output the largest and the smallest possible value of _M_, seperated by a single space.