ATM - Máy ATM
https://www.facebook.com/1391989994220783/posts/2627725517313885/
Input
2 2 3 8 10 4 6
Output
2 0
Nguồn: https://www.hackerearth.com