#include <iostream>

using namespace std;

int main() {
    int a,b,c,d;
    cin>>a;
    b=a%10000;
    d=b/100;
    
    c=b%100;
    cout<<"year="<<a/10000<<endl;
    if(d<10)cout<<"month=0"<<d<<endl;
    else cout<<"month="<<d<<endl;
    if(c<10)cout<<"date=0"<<c;
    else cout<<"date="<<c;
}
// 64 位输出请用 printf("%lld")