'use strict';

const main = arg => {
    const input = arg.trim().split('\n').map(Number);		//Each line (l) of input is input[l]

    if (input.indexOf(1) === -1) {
        console.log(1);
    } else if (input.indexOf(2) === -1) {
        console.log(2);
    } else {
        console.log(3);
    }
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));