Write a program to calculate a sum of squares of some integers, excepting negatives