var input = require('fs').readFileSync('/dev/stdin', 'utf8');
var arr=input.trim().split("\n");
var n = arr.shift()-0;
var s = arr.shift();
var i = s.indexOf("xx");
if(i==-1)console.log(n);
else console.log(i+1);
