public class test2 {
public static void main(String[] args)throws ParseException {
// TODO Auto-generated method stub
method1();
}
public static void method1(){
Scanner sc=new Scanner(System.in);
System.out.println("输入一个字符串");
String a=sc.next();
int num=0;
char b = 0;
for(int i=0;i<a.length();i++){
b=a.charAt(i);
System.out.print(b+" ");
if(b=='e'){
num+=1;
}
}
System.out.println();
System.out.println(num);
}
}