#include<bits/stdc++.h>

using namespace std;

int main(){

	ios::sync_with_stdio(false);
	cin.tie(NULL);

	string s;
	bool res=true;
	int ab=0;
	cin>>s;

	for(int i=0; i<s.size(); ++i){
		if(s[i]=='A'){
			ab++;
			if(ab>1){
				res=false;
				break;
			}
		}
		else if(s[i]=='L' && s[i+1]=='L' && s[i+2]=='L'){
			res=false;
			break;
		}
	}
	cout<<(res?"TRUE":"FALSE");

	return 0;
}

