from decimal import * print(sum(sum(int(s) for s in str(Decimal(n).sqrt(Context(102)))[:-2] if s!=".") for n in [i for i in range(2,100) if i not in [4,9,16,25,36,49,64,81]]))