You are given four single-digit integers: ( N_1, N_2, N_3, ) and ( N_4 ). Your task is to determine if these digits can be rearranged to form the sequence "1974".
Input Format
Four integers ( N_1, N_2, N_3, ) and ( N_4 ) where each ( N_i ) (for ( i = 1, 2, 3, 4 )) is a digit in the range [0, 9].
Output Format
Output "YES" if the digits can be rearranged to form the sequence "1974".
Output "NO" otherwise.
Examples
Example 1
Input:
text
1 9 7 4
Output:
text
YES
Example 2
Input:
text
7 1 4 9
Output:
text
YES
Example 3
Input:
text
2 0 1 7
Output:
text
NO
Notes
The order of the digits may vary; you need to check if all four digits can be arranged in any order to match "1974".
Solution
The solution should be implemented in the directory /app/.
Important: place your implementation at /app/solution.py so the verifier can run it.