
import java.util.Scanner; |
public class Main { |
public static void main(String[] args) { |
Scanner scan = new Scanner(System.in); |
|
String s = scan.next();//以换行为结束 |
int i = 0, j = 0, k = 1; |
System.out.print("d[0,0] = "+s.charAt(0)); |
while( k < s.length()) |
{ |
if(s.charAt(k) == ',') |
{ |
System.out.print(" "); |
j++; |
System.out.print("d["+i+","+j+"] = "); |
} |
else if(s.charAt(k) == ';') |
{ |
System.out.println(); |
i++; |
j = 0; |
System.out.print("d["+i+","+j+"] = "); |
} |
else |
System.out.print(s.charAt(k)); |
k++; |
} |
} |
} |



