m = 3;
n = 5;
s = [ 239 225 184 ] ;
d = [ 92 82 83 69 74 ] ;
f = [ 589 766 886 ];
c = [ 14   5   6  24   6  
       9  22  26   5  21  
      16  11  23  28  24 ];

