public class ıtppro {
public static void main(String[] args) {
int x;
int count=0;
Scanner input = new Scanner(System.in);
System.out.println("Please enter your Account Number");
String ID = input.nextLine();
x=ID.length();
char[] analiz = new char[x];
for(int i = 0;i<x;i++){
analiz=ID.charAt(i);
}
if(x!=16){
count++;
}
if(x==16){
int ascii1=analiz[0];
int ascii2=analiz[1];
if(ascii2<66){
count++;
}
else if (ascii1>ascii2){
count++;
}
int x1= Character.getNumericValue(analiz[2]);
int x2= Character.getNumericValue(analiz[3]);
int[] witcher = new int[12];
int d = 4;
for(int u=0;u<12;u++){
witcher=Character.getNumericValue(analiz[d]);
d=+1;
}
for(int i=2;i<=4;i++){
if(x1%i==0){
count++;
}
else if(x2%i==0){
count++;
}
}
int toplam = 0;
int toplam1= 0;
int sayi1,sayi2,sayi3,sayi4;
for(int y=0;y<12;y=+2){
if(witcher[y]>=5){
sayi1 = witcher[y]*2/10;
sayi2= witcher[y]*2%10;
sayi3=sayi1+sayi2;
}
else{
sayi3=witcher[y]*2;
}
toplam = toplam + sayi3;
}
for(int t=11;t>=0;t=-2){
sayi4=witcher[t];
toplam1=toplam1+sayi4;
}
int geneltoplam = toplam1+toplam;
if(geneltoplam%10==0){
System.out.println("Tebrikler Hesap Numaranız Gayet Geçerlidir");
}
else{
count++;
}
if(count!=0){
System.out.println("Yanlış");
}
}
}
}