use std::io::{Read,self}; fn main(){ let mut buf = String::new(); io::stdin().read_to_string(&mut buf).unwrap(); let mut input = buf.split_ascii_whitespace(); let n:usize = input.next().unwrap().parse().unwrap(); let m:usize = input.next().unwrap().parse().unwrap(); let mut results:Vec> = vec![vec![];n]; for i in 0..n{ let result = input.next().unwrap().parse::().unwrap(); for j in result.chars(){ results[i].push(j.to_string()); } results[i].push(input.next().unwrap().parse::().unwrap()); } let mut down = 0; for i in 0..n{ let mut wa = false; if results[i][m].parse::().unwrap() < 1200{ continue; }else{ for j in 0..4{ if results[i][j].parse::().unwrap() == 'x'{ wa = true; break; } } } if wa { down += 1; //println!("down") }else{ //println!("ok") } } println!("{}", down) }