print(sum(sum(map(int, (c for c in str(x)))) == sum(map(int, (c for c in str(y)))) for x in range(100, 1000) for y in range(0, 1000)))# your code goes here
cHJpbnQoc3VtKHN1bShtYXAoaW50LCAoYyBmb3IgYyBpbiBzdHIoeCkpKSkgPT0gc3VtKG1hcChpbnQsIChjIGZvciBjIGluIHN0cih5KSkpKSBmb3IgeCBpbiByYW5nZSgxMDAsIDEwMDApIGZvciB5IGluIHJhbmdlKDAsIDEwMDApKSkjIHlvdXIgY29kZSBnb2VzIGhlcmU=