Which tank will fill first?

Tank Fill First Puzzle

Tank-5

The connection between tank-5 and tank-2 is closed so water will go into tank-5 from tank-1 but not go to tank-2. Therefore tank-5 will be filled first.