import sys x, y = map(float, sys.stdin.readline().split()) print(x * (3 if x == y else 1/3), y * (3 if y == x else 1/3))