
#include <iostream>
#include <vector>
#include <sstream>
using namespace std;

bool sorted(const vector<string>&);

int main() {
  string line, word;
  while (getline(cin, line)) {
    istringstream S(line);
    vector<string> v;
    while (S >> word) {
      v.push_back(word);
    }
    cout << sorted(v) << endl;
  }
}
