problem2 output log