#include<stdio.h>
#include<string.h>

FILE *out, *sol, *score;
char a [1005], b [1005];

	int main()
	{
		out = fopen ("sifra.out", "r");
		sol = fopen ("sifra.sol", "r");
		score = fopen ("score.tmp", "w");

		fscanf (out, "%s", a);
		fscanf (sol, "%s", b);
		fprintf (score, "%d\n", (strcmp(a, b) == 0 ? 10 : 0));

		fclose(out);
		fclose(sol);
		fclose(score);

		return 0;
	}