#include <iostream>
using namespace std;

int main() {
	int l = 0;
	int lc = 0;
	int lct = 0;
	string str = "LCCCTCLLCT";
	for(char ch:str){
		if(ch == 'L') l++;
		if(ch =='C') lc += l;
		if(ch == 'T') lct += lc;
	}
	cout<<"The number of LCT's in the string is:"<<lct<<endl;
	return 0;
}