#include <iostream>
#include <string>
using namespace std;
int main() {
freopen("input.txt", "rt", stdin);
string a;
int birth_year, age;
cin >> a;
if(a[7] == '1' || a[7] == '2') {
birth_year = 1900 + ((a[0]-48)*10 + (a[1]-48));
}
else {
birth_year = 2000 + ((a[0]-48)*10 + (a[1]-48));
}
age = 2021 - birth_year + 1;
cout << age;
return 0;
}
ex)
a가 971208-1234789일 때,