EasyRating 800
Lucky Ticket
A six-digit ticket is lucky if the sum of the first three digits equals the sum of the last three. Print YES or NO.
Input
A six-digit string.
Output
YES or NO.
Sample 1
Input
123321
Output
YES
Sample 2
Input
123456
Output
NO
Output appears here