@Piyush-Pandey-2580479718941914 As the numbers are very large, you have to long long in place of int.