Codeforces Beta Round #77 (Div. 2 Only)B. Lucky Numbers (easy)

NoSuchKey