import java.util.Scanner; public class kaomoji { public static void main(String[] args) { // TODO Auto-generated method stub Scanner sc = new Scanner(System.in); char[] emotions = sc.next().toCharArray(); int CountLeft = 0; int CountRight = 0; for(int i=0; i