Pouring water: python version

http://www.codechef.com/problems/POUR1

This did not pass though. Got NZEC.
Pouring water: input

Correct output:
2
-1