#!/usr/bin/env python3 import math YES = 'Yes' NO = 'No' def solve(a: int, b: int, c: int, d: int) -> str: pos = (a - c) ** 2 neg = 8 * (b - d) if pos > neg: x1 = (- a + c + math.sqrt(pos - neg)) / 4 x2 = (- a + c - math.sqrt(pos - neg)) / 4 y1 = x1 ** 2 + a * x1 + b y2 = x2 ** 2 + a * x2 + b p = (y1 - y2) / (x1 - x2) q = y1 - p * x1 return '{} {}'.format(p, q) elif pos == neg: return YES else: return NO # generated by online-judge-template-generator v4.1.1 (https://github.com/kmyk/online-judge-template-generator) def main(): a, b, c, d = map(int, input().split()) ans = solve(a, b, c, d) print(ans) if __name__ == '__main__': main()