#include <iostream>
#include <fstream>
#include <string>
using namespace std;
int main() {
ifstream dataFS;
string dataFileName;
int cradleQuantity;
cin >> dataFileName;
dataFS.open(dataFileName);
if (!dataFS.is_open()) {
cout << dataFileName << ": error occurred while opening file" << endl;
return 1;
}
dataFS >> cradleQuantity;
cout << cradleQuantity << endl;
return 0;
}