import java.util.*; |
public class Main{ |
public static void main(String[] args) { |
Scanner scan = new Scanner(System.in); |
String s = scan.nextLine(); |
int row = 0 , i, j, flag= 0 ; |
for (i = 0 , j = 0 ; i < s.length(); i++) { |
if (s.charAt(i) == ';' ) { |
row++; |
j = 0 ; |
i++; |
flag = i; |
System.out.println(); |
} |
if (s.charAt(i) == ',' ) { |
i++; |
j++; |
flag = i; |
} |
if (flag == i) { |
if (j == 0 ) { |
System.out.print( "d[" +row + "," +j + "] = " ); |
} |
else { |
System.out.print( " d[" +row + "," +j + "] = " ); |
} |
} |
System.out.print(s.charAt(i)); |
} |
scan.close(); |
} |
} |