#include <iostream>
#include <cmath>
using namespace std;
#define ld long double
struct triangle{
ld a;
ld b;
ld c;
};
ld square(triangle t){
ld p = (t.a + t.b + t.c)/2;
return sqrt(p * (p - t.a) * (p - t.b) * (p - t.c));
}
triangle t1,t2;
void solve(){
if(square(t1) == square(t2))
cout << "ИСТИНА";
else
cout << "ЛОЖЬ";
}
signed main() {
ios_base::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
cin >> t1.a >> t1.b >> t1.c >> t2.a >> t2.b >> t2.c;
solve();
}