#include <iostream>
#include <cmath>
using namespace std;
bool isTriangle(pair<int, int> A, pair<int, int> B, pair<int, int> C) {
int x1 = A.first, y1 = A.second; int x2 = B.first, y2 = B.second; int x3 = C.first, y3 = C.second;
float area = 0.5 * abs(x1 * (y2 - y3) + x2 * (y3 - y1) + x3 * (y1 - y2));
return area != 0;
}
int main() {
pair<int, int> A = {1, 2};
pair<int, int> B = {4, 6};
pair<int, int> C = {5, 8};
if (isTriangle(A, B, C)) {
cout << "Ba diem A, B, C tao thanh mot tam giac." << endl; } else {
cout << "Ba diem A, B, C khong tao thanh mot tam giac." << endl;
}
return 0;
}