#include<iostream>
using namespace std;
int main()
{
int i = 0;
for (int A = 1; A <= 5; A++)
{
for (int B = 1; B <=5; B++)
{
if (B == A) { continue; }
for (int C = 1; C <=5 ;C++)
{
if(C==A||C==B){ continue; }
cout << "A:" << A << "B:" << B << "C:" << C << endl; i++;
}
}
}
cout<< "一共有:" << i<<"种方法" << endl;
return 0;
}