Joint Venture

Time Limit: 5000 ms Memory Limit: 65536 KiB

Problem Description

 
 
 

Input

Output


Sample Input

1 
4 
9999998 
1 
2 
9999999 

Sample Output

yes 1 9999999

Hint

 

Source