#C10979. Cake Sharing: The 360° Problem
Cake Sharing: The 360° Problem
Cake Sharing: The 360° Problem
Three friends want to share a cake in such a way that each gets a slice corresponding to their desired angle. Given three integer angles a, b, and c, determine if it is possible to cut the cake so that the entire cake (which is 360°) is divided exactly among them without any leftover or overlapping.
The condition to satisfy is \[ a+b+c=360 \] If the sum exactly equals 360, output "Yes"; otherwise, output "No".
inputFormat
The input consists of a single line containing three space-separated integers a, b, and c (in degrees), where each represents the desired slice angle.
outputFormat
Output a single line with the word "Yes" if the sum of the three angles is equal to 360, and "No" otherwise.
## sample90 90 180
Yes