Accepted :relaxed:

Implemented with bufferedReader instead of scanner and used BIGINTEGER.