using System;

public class hello
{
    public static void Main()
    {
        var n = int.Parse(Console.ReadLine().Trim());
        var s = Console.ReadLine().Trim();
        var a = s.IndexOf("xx");
        if (a == -1) Console.WriteLine(s.Length);
        else Console.WriteLine(a + 1);
    }
}