#include<bits/stdc++.h>
using namespace std;
int p[4][13];

int n;
int main(){
cout.tie(0);
cin.tie(0);
cin>>n;
while(n--){
int x,y;
char a,b;
cin>>a>>b;
if(a=='D') x=0;
else if(a=='C') x=1;
else if(a=='H') x=2;
else if(a=='S') x=3;
if(b=='A') y=0;
else if(b=='2') y=1;
else if(b=='3') y=2;
else if(b=='4') y=3;
else if(b=='5') y=4;
else if(b=='6') y=5;
else if(b=='7') y=6;
else if(b=='8') y=7;
else if(b=='9') y=8;
else if(b=='T') y=9;
else if(b=='J') y=10;
else if(b=='Q') y=11;
else if(b=='K') y=12;
		p[x][y]++;
	}
	int cnt = 0;
	for(int i=0;i<4;i++){
		for(int j=0;j<13;j++){
			if(p[i][j]==0) cnt++;
		}
	}
	cout<<cnt;
	return 0;
}

0 条评论

目前还没有评论...