Hi this is yeon from korea
I'm always thanksful for all guys who help me to learn computer thing :)
Here is another question, I really not sure why my logic gets wrong with test 4.
I wonder about datatype problem, but figure out at python int could endure almost infinite.
This is my code and submission link https://codeforces.com/contest/1872/submission/226595199
Thanks for reading my blog :) and have good luck today for all readers!