Problem:
Score : 100 points

Problem Statement

How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December?

Constraints

1≤M≤23

M is an integer.

Input

Input is given from Standard Input in the following format:

M

Output

If we have x hours until New Year at M o'clock on 30th, December, print x.

Sample Input 1

21

Sample Output 1

27

We have 27 hours until New Year at 21 o'clock on 30th, December.

Sample Input 2

12

Sample Output 2

36

Solution in C (GCC 5.4.1) (judge verdict: Runtime Error)

#include <stdio.h>

int main(void)
{
        int a,b,i,n;
        char s[100];

        scanf("%d%d",&a,&b);

        scanf("%s",s);

        for (i=0;i<=a+b;i++)
                if (s[i]=='-')
                        n++;

        if (n!=1){
                printf("No\n");
                return 1;
        }

        printf("Yes\n");

        return 0;
}