#define LOCAL
#include<cstdio>
#include<algorithm>
#include<cstring>
using namespace std;
int main()
{
#ifdef LOCAL
freopen("sscanf.in","r",stdin);
freopen("sscanf.out","w",stdout);
#endif
int a,b,c;
char ch1,ch2,s[50];
while(true)
{
scanf("%s",s);
reverse(s,s+strlen(s));
sscanf(s,"%d%c%d%c%d",&a,&ch1,&b,&ch2,&c);
if(!a&&!b&&!c) break;
if(a==b+c) printf("TRUE
");
else printf("FALSE
");
}
return 0;
}