Codeforces Round #168 Problem E Mirror Room
Codeforces Beta Round #95 Problem C The World is Theatre