function skeleton(varargin)
% example code demonstrating input/output processing for the contest
%
% Author:  Charles Riedesel
% Date:    July 21, 2015
%
% ----------------- Sample Code to determine input/output ---

if nargin == 0                 % keyboard in, screen out
   fidIn = 0;
   fidOut = 1;
elseif nargin >= 1             % file in (not keyboard in)
   fidIn = fopen(varargin{1});
   if fidIn == -1
      fprintf(2, 'Can''t open %s for input\n', varargin{1})
      return
   end
   fidOut = 1;
end
if nargin == 2                 % file out (not screen out)
   fidOut = fopen(varargin{2}, 'w');
   if fidOut == -1
      fprintf(2, 'Can''t open %s for output\n', varargin{2})
      return
   end
end

% ------------------- Continue with the problem -------------

% --- Bring in a line of input (text), presumably the count ---
if fidIn == 0
   bufferIn = input('', 's');
else
   bufferIn = fgetl(fidIn);
end

for ii = 1:str2num(bufferIn)
   % -------- Bring in stuff to process ---------------
   if fidIn == 0
      bufferIn = input('', 's');
   else
      bufferIn = fgetl(fidIn);
   end
   % -------- Use bufferIn as your input line ----------
   % -------- Do Stuff ---------------------------------
   bufferOut = bufferIn;
   % -------- Use bufferOut as your output line --------
   fprintf(fidOut, 'Case %d: %s\n', ii, bufferOut);
end

% ------------------- Close up files when done --------------

if nargin >= 1
   fclose(fidIn);
end
if nargin == 2
   fclose(fidOut);
end

% ------------------- End of Program -------------------------

