Gambling#257

Gambling

1 second
64 megabytes
Very easy

Vitalik, a second-grade student, began studying computer science and decided to become a programmer. However, when he told his family about this decision, his older brother Lesha said that Vitalik could not become a programmer because his logical thinking was poorly developed. As proof, Lesha noted that Vitalik almost always loses to him in checkers.

Feeling hurt, Vitalik decided to train his logical thinking. He heard from Uncle Sasha, the janitor, that card games are suitable for this purpose. Therefore, Vitalik decided to start small by solving card problems. From Uncle Sasha, he learned about the card game "Poker." He hasn't mastered the game itself yet, but has started solving card-related problems, though not always successfully. Here's one of the problems Vitalik cannot solve:

A card combination in "Poker" is given. The combination consists of cards, with the following designations:

There can be no more than jokers. A joker can replace any card's value.

Determine, based on the input, whether the given cards can form a 2+2 combination; in other words, whether there are two pairs among the cards such that:

Help the unfortunate second-grader solve this difficult problem, or else his older brother will laugh at him!

Input

The input file lists the values of the cards. The numbers are separated by one or more spaces.

Output

Output the word "Yes" if it is possible to form such a combination. Otherwise, output "No".

Examples

Example 1

Loading
Loading