while(<>){ if(<>=~/ 1$/){ print"Yes"; exit; } } print"No";