#include <iostream>

using namespace std;

int main() {
  long x;
  cin >> x;
  cout << 90 - x;
  return 0;
}