#include <iostream>
int _tmain(int argc, _TCHAR* argv[])
{
	int n;
	scanf("%d",&n);
	printf("%d\n",52-n);
#include <iostream>
int _tmain(int argc, _TCHAR* argv[])
{
	int n;
	scanf("%d",&n);
	printf("%d\n",52-n);

	return 0;
}


	return 0;
}