var input = require('fs').readFileSync('/dev/stdin', 'utf8');
var array = input.trim().split('\n');

for (val of input) {
	var arr = input.split(' ');
	let hit = 0, blow = 0;
	for (let a=0; a<3; a++) {
		for (let b=0; b<3; b++) {
			if (call[a]==nums[b]) {
				(a==b) ? hit++ : blow++;
			}
		}
	}
	console.log(`${h} ${b}`);
}