// 2019 IUSB Programming Competition // Round 1 Problem 6 // Can you reach a destination point from a source point // Solution by Liguo Yu import java.util.Scanner; public class round1_p6 { public static void main(String[] main) { Scanner scan = new Scanner(System.in); int x1 = scan.nextInt(); int y1 = scan.nextInt(); int x2 = scan.nextInt(); int y2 = scan.nextInt(); if ( isReachable(x1, y1, x2, y2) == true) System.out.println("yes"); else System.out.println("no"); } public static boolean isReachable(int sx, int sy, int dx, int dy) { if (sx > dx || sy > dy) return false; else if (sx == dx && sy == dy) return true; else return (isReachable(sx + sy, sy, dx, dy) || isReachable(sx, sy + sx, dx, dy)); } }