var Digit = {
  maxLines: 200,
  filePath: '/dev/stdin',
  isValid: function() {
    var flag = false, data = this.getFile();
    if(data.length > 200) {
      console.log('Max number of lines.');
    } else {
      for(k=0; k<data.length; k++) {
        var val = data[k].split(' ').map(function(i){return +i})
        if(this.isNumeric(val[0]) === false || this.isNumeric(val[1]) === false) {
          console.log('Error with value.');
        } else {
          var res = val[0].toString() + val[1].toString();
          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();