考点:邮箱正则
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
String a=sc.nextLine();
boolean flag =a.matches("^([a-z0-9A-Z+\\-]+@([a-z0-9A-Z]+)\\.)com$");
if(flag){
System.out.println(1);
}else{
System.out.println(0);
}
}
}