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.

Examples

Input

21


Output

27


Input

12


Output

36


import java.util.Scanner;

class Main {
  public static void main(String[] args){

    Scanner sc = new Scanner(System.in);

    int M = sc.nextInt();

    if (M > 24 ){
      System.out.println(24 + Math.abs(24 - M)) ;
    }
    else {
      System.out.println(Math.abs(M - 24) + 24);
    }
  }
}
