Codeforces Round #100 Problem F New Year Snowflake