using namespace std;
#include <iostream>
#include <fstream>
#include <vector>
bool is_possible(const int a, const int b, const int c){
return !(((a+b <= c) || (a+c <= b) || (b+c <= a)));
}
int main(){
unsigned int possible = 0;
ifstream infile;
infile.open("input", ios::in);
int read[3];
vector<int> v(9);
unsigned int collectedCounter = 0;
while(infile >> read[0] >> read[1] >> read[2]){
if(collectedCounter != 3){
for(int j=0; j<3; j++){
v[j*3 + collectedCounter] = read[j];
}
collectedCounter++;
}
if(collectedCounter == 3) {
for(int i=0; i<3; i++){
possible += is_possible(v[3*i], v[3*i+1], v[3*i+2]);
}
collectedCounter = 0;
}
}
cout << "Possible: " << possible;
infile.close();
return 0;
}
dXNpbmcgbmFtZXNwYWNlIHN0ZDsKI2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8ZnN0cmVhbT4KI2luY2x1ZGUgPHZlY3Rvcj4KCmJvb2wgaXNfcG9zc2libGUoY29uc3QgaW50IGEsIGNvbnN0IGludCBiLCBjb25zdCBpbnQgYyl7CglyZXR1cm4gISgoKGErYiA8PSBjKSB8fCAoYStjIDw9IGIpIHx8IChiK2MgPD0gYSkpKTsKfQoKaW50IG1haW4oKXsKCXVuc2lnbmVkIGludCBwb3NzaWJsZSA9IDA7CglpZnN0cmVhbSBpbmZpbGU7CglpbmZpbGUub3BlbigiaW5wdXQiLCBpb3M6OmluKTsKCWludCByZWFkWzNdOwoJdmVjdG9yPGludD4gdig5KTsKCgoJdW5zaWduZWQgaW50IGNvbGxlY3RlZENvdW50ZXIgPSAwOwoJd2hpbGUoaW5maWxlID4+IHJlYWRbMF0gPj4gcmVhZFsxXSA+PiByZWFkWzJdKXsKCQlpZihjb2xsZWN0ZWRDb3VudGVyICE9IDMpewoJCQlmb3IoaW50IGo9MDsgajwzOyBqKyspewoJCQkJdltqKjMgKyBjb2xsZWN0ZWRDb3VudGVyXSA9IHJlYWRbal07CgkJCX0KCQkJY29sbGVjdGVkQ291bnRlcisrOwoJCX0KCQlpZihjb2xsZWN0ZWRDb3VudGVyID09IDMpIHsKCQkJZm9yKGludCBpPTA7IGk8MzsgaSsrKXsKCQkJCXBvc3NpYmxlICs9IGlzX3Bvc3NpYmxlKHZbMyppXSwgdlszKmkrMV0sIHZbMyppKzJdKTsKCQkJfQoJCQljb2xsZWN0ZWRDb3VudGVyID0gMDsKCQl9Cgl9Cgljb3V0IDw8ICJQb3NzaWJsZTogIiA8PCBwb3NzaWJsZTsKCglpbmZpbGUuY2xvc2UoKTsKCglyZXR1cm4gMDsKfQo=