[Codeforces Round #447][Codeforces 894E]Ralph and Mushrooms