two problems from mitbbs