#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>

void main()
{
	int theMark;
	printf("Please enter your mark: ");
	scanf("%d", &theMark);

	if (theMark >= 70)
	{
		printf("Distinction");
	}
	else if (theMark >= 60)
	{
		printf("Merit");
	}
	else if (theMark >= 40)
	{
		printf("Pass");
	}
	else
	{
		printf("Resit");
	}


}