Why am I WA'ing on Vasya and Big Integers??
Link to code with comments: https://mirror.codeforces.com/contest/1051/submission/52986742 Thanks!!