a.cpp added for 279 div2