Codeforces 1149 B - Three Religions

NoSuchKey