var Digit = {
  maxLines: 200,
  filePath: '/dev/stdin',
  isValid: function() {
    var flag = false, data = this.getFile();
      for(k=0; k<data.length; k++) {
        var val = data[k].split(' ').map(Number)
          var res = val[0] + val[1];
          console.log((res+'').length);
      }
  },
  isNumeric: function(n) {
    return !isNaN(parseFloat(n)) && isFinite(n);
  },
  getFile: function() {
    var input = require('fs').readFileSync(this.filePath, 'utf8');
    var lines = input.split('\n');
    return lines;
  }
}
Digit.isValid();