import java.io.IOException; import java.io.InputStream; import java.util.Arrays; import java.util.HashSet; import java.util.NoSuchElementException; import java.util.Set; public class Main { public static void main(String args[]) { FastScanner scanner = new FastScanner(); String sb=scanner.next(); int n = scanner.nextInt(); String sa=scanner.next(); Setbs=new HashSet<>(); Setas=new HashSet<>(); int cnto=0; int cntx=0; int io=0; int ix=0; for(int i=0;i<3;i++) { String cb=sb.substring(i, i+1); String ca=sa.substring(i, i+1); if(cb.equals("o")) { cnto++; io=i; } else { cntx++; ix=i; } bs.add(cb); as.add(ca); } int indb=cnto Integer.MAX_VALUE) throw new NumberFormatException(); return (int) nl; } public double nextDouble() { return Double.parseDouble(next());} }