eolymp
bolt
Try our new interface for solving problems
Problems

Flying Saucers

Flying Saucers

Recently, ufologists find that flying saucers are a square, and upon landing they leave traces on the ground in the "tops" of his plate. You got a secret mission, to determine whether the traces left by tonight, traces of a flying saucer. \InputFile he input file contains four pairs of numbers that specify the coordinates of the marks on the field. All coordinates are integers and do not exceed the modulo \textbf{32767}. \OutputFile The output file you want to display \textbf{YES} if the tracks by UFO, otherwise the output \textbf{NO}.
Time limit 1 second
Memory limit 64 MiB
Input example #1
100 100 
32000 32000 
100 32000
32000 100
Output example #1
YES