solve p018
remove debug statements