High School: Become Human

CodeForces - 987B