import java.util.*; class Yukico204 { public static void main(String[] args) { Scanner stdio = new Scanner(System.in); int d = stdio.nextInt(); String s = stdio.next(); s += stdio.next(); s = "xxxxxxxxxxxxxx"+s+"xxxxxxxxxxxxxx"; int ans = d; int cnt=0; for(int i=0; i=0 && (j-i)