using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Circle { class Program { static void Main(string[] args) { int x1, y1, x2, y2, r1, r2; double d; string s = Convert.ToString(Console.ReadLine()); string[] s1 = s.Split(' '); x1 = Convert.ToInt32(s1[0]); y1 = Convert.ToInt32(s1[1]); r1 = Convert.ToInt32(s1[2]); string s2 = Convert.ToString(Console.ReadLine()); string[] s3 = s2.Split(' '); x2 = Convert.ToInt32(s3[0]); y2 = Convert.ToInt32(s3[1]); r2 = Convert.ToInt32(s3[2]); d = Math.Sqrt((x2 - x1) * (x2 - x1) +(y2-y1)*(y2-y1)); if ((r1+r2 >= d) && (r1+d >= r2) && (r2 + d >= r1)) { Console.WriteLine("YES"); } else { Console.WriteLine("NO"); } } } }