#t67. 病毒检测
病毒检测
Virus Detection
Problem Description
Scientists are now working intensively on isolating and testing the novel coronavirus. But how do we recognise a virus?
Country has discovered a feature of a certain virus: it hides inside a gene sequence. If you find consecutive increasing numbers in the sequence that are all multiples of both and , then the virus is detected in that gene!
Please use a for loop in C/C++ or Python to help the scientists finish this urgent and difficult task.
Input Format
The first line contains a positive integer , the length of the gene sequence (at most ).
Then integers follow consecutively, the digits of the gene sequence (non-negative integers less than ).
Output Format
If a virus exists, print Yes on the first line, then on the second line print one integer: the position of the first number of the virus in the sequence.
If no virus exists, simply print No.
Sample Input 1
8
1 2 3 4 5 6 7 8
Sample Output 1
No
Sample Input 2
10
1 4 6 0 60 90 120 150 9 10
Sample Output 2
Yes
4