Manthan, Codefest 16A Ebony and Lvory
Read on →Problem - A - Codeforces
Dante is engaged in a fight with "The Savior". Before he can fight it with his sword, he needs to break its shields. He has two guns, Ebony and Ivory, each of them is able to perform any non-negative number of shots.