function main(input) {
  var answer = 0;
  var input = input.split('\n');
  var str_input = input[0];
  for (var j = 0; j < str_input.length; j++) {
    var str_number = str_input[j];
    if(str_number != '1'){
      answer = str_input[j];
      break;
    }
  }

  console.log(1);
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));
