#include<bits/stdc++.h>
using namespace std;
signed main(){
int n;
cin>>n;
cout<<48-n<<'\n';
return 0;
}
I2luY2x1ZGU8Yml0cy9zdGRjKysuaD4KdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCnNpZ25lZCBtYWluKCl7CiAgICAgaW50IG47CiAgICAgY2luPj5uOwogICAgIGNvdXQ8PDQ4LW48PCdcbic7CiAgICByZXR1cm4gMDsKfQoK