// PR Bab 04, soal 4 -- pembahasan. #include using namespace std; int main() { int a, b, c; cin >> a >> b >> c; // Urutkan tiga nilai dengan tiga penukaran sehingga a <= b <= c. if (a > b) { int t = a; a = b; b = t; } if (b > c) { int t = b; b = c; c = t; } if (a > b) { int t = a; a = b; b = t; } if (a + b <= c) { cout << "BUKAN SEGITIGA\n"; } else if (a == b && b == c) { cout << "SAMA SISI\n"; } else if (a == b || b == c) { cout << "SAMA KAKI\n"; } else { cout << "SEMBARANG\n"; } return 0; }