#include using namespace std; int main() { long long a; cin >> a; cout << 90ll - a << endl; return 0; }