print result for the first problem
print result