#!/usr/bin/env python3 # -*- coding: utf-8 -*- def answer(pmax, pmin): print("{:.11f} {:.11f}".format(pmax, pmin)) def main(): X, Y = map(float, input().split()) if X == 0.0: answer(0.0, 0.0) return pmax = 1-Y pmin = (1-Y) + (X-1) answer(pmax, pmin) if __name__ == "__main__": main()