#include using namespace std; int main(){ char s[10]; int b,r; for(int i=0;i<3;i++){ scanf("%s",&s); if(strcmp(s,"BLUE")==0)r++; else b++; } if(b