#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>

main()
{
	int j, L, h, m;
	int data[10] = { 8,15,35,55,60,61,70,80,92,99 };
	scanf("%d", &j);
	L = 0;
	h = 9;
	while (1)
	{
		if (L <= h)
		{
			m = (L + h) / 2;
			if (j == data[m])
			{
				printf("%d %d", j, m + 1);
				break;
			}
			if (j < data[m])
				h = m - 1;
			else
				L = m + 1;
		}
		else
		{
			printf("%d NOT FOUND", j);
			break;
		}
	}
}