Primero igual al último
        
            Submit solution
        
    
    
    
    
    
    
    
    
    
                    
                
        
            
        
        Points:
        
                10        
    
    
        Time limit:
        5.0s
    
    
        Memory limit:
        256M
    
    
                        Author:
                        
                    
        
                    Problem types                
                
        
                Allowed languages
            
            
C#, C++, Go, Java, Python            
        Se deben ir leyendo números hasta que se lea un 0. El programa debe
mostrar SI en caso de que el primer número leído sea igual al último
número leído antes que el 0. En caso contrario debe mostrar NO.
Input Format
Un secuencia de N números enteros que finaliza con un 0.
Constraints
1 <= N <= 10^7Output Format
SI o NOSample Input 0
1 2 3 2 1 0Sample Output 0
SISample Input 1
1 0Sample Output 1
SISample Input 2
1 2 0Sample Output 2
NOSample Input 3
1 2 1 2 1 2 1 0Sample Output 3
SISample Input 4
-1 1 -1 1 -1 0Sample Output 4
SISample Input 5
4 7 12 15 26 46 3 2 1 4 0Sample Output 5
SISample Input 6
1 2 3 4 0Sample Output 6
NOAutoria: Rusben