Codeforces Round #138 Problem E Planar Graph