#include <stdio.h>
#include <stdlib.h>
int main()
{
int m;
scanf("%d",&m);
printf("%d",(m>25)?85-m:25-m);
return 0;
}