puts STDIN.read.split.join('').split("x").map{|s| s.length}.max