#include <bits/stdc++.h>
using namespace std;

int main() {
    int N, a, b, c;
    cin >> N;
    a = N % 100;
    N /= 100;
    b = N % 100;
    c = N / 100;
    cout << "year=" << c << "\n" << "month=" << setw(2) << setfill('0') << b << "\n"
         << "date=" << setw(2) << setfill('0') << a << endl;
    return 0;

}
// 64 位输出请用 printf("%lld")