Go with the Flow

Problem Name:
Go with the Flow
Site:CodeForces
Links:
Tags:
Problem setters: