Given as input a square distance matrix, where a[i,j] is the distance between point i and point j, determine if the distance matrix is "a metric" or not.
A distance matrix a[x,y] is a metric if and only if
A single line with a single digit, which is the lowest digit of the possible facts on this list: