import java.io.*; import java.util.*; import java.text.*; import java.math.*; import java.util.regex.*; public class Solution { public static int absolute(int a,int b) { if(a>=b) return a-b; return b-a; } public static void main(String[] args) { /* Enter your code here. Read input from STDIN. Print output to STDOUT. Your class should be named Solution. int cost=0; int arr[][]=new int[3][3]; int n=3; Scanner scan=new Scanner(System.in); for(int i=0;i