CF484B Maximum Value
Description
You are given a sequence $ a $ consisting of $ n $ integers. Find the maximum possible value of  (integer remainder of $ a_{i} $ divided by $ a_{j} $ ), where $ 1
Input Format
You are given a sequence $ a $ consisting of $ n $ integers. Find the maximum possible value of  (integer remainder of $ a_{i} $ divided by $ a_{j} $ ), where $ 1
Output Format
Print the answer to the problem.