import static java.lang.System.*; import java.util.*; public class Main { static Scanner sc = new Scanner(System.in); static int[] dy = {-1,0,1,0}; static int[] dx = {0,1,0,-1}; public static void main(String[] args) { String s = sc.next(); int oNum = 0; int xNum = 0; for (int i=0; i