Олимпиадный тренинг

Задача 38658. Point belonging to a line


Input
Five numbers – point coordinates and coefficients A, B and C of the equation of a straight line.

Imprint
One line “YES” if the point belongs to a line, and “NO” otherwise.

Examples
# Input Output
1 8 7 2 -3 5 YES