Solution to SRM 152,first two problems