#include <iostream>
using namespace std;
#include <ctime>
int main() {
tm _tm;
strptime("2017-04-17", "%Y-%m-%d", &_tm);
char buf[16];
strftime(buf, sizeof(buf), "%A", &_tm);
cout << buf << endl;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKI2luY2x1ZGUgPGN0aW1lPgoKaW50IG1haW4oKSB7CgkKCXRtIF90bTsKCXN0cnB0aW1lKCIyMDE3LTA0LTE3IiwgIiVZLSVtLSVkIiwgJl90bSk7CgoJY2hhciBidWZbMTZdOwoJc3RyZnRpbWUoYnVmLCBzaXplb2YoYnVmKSwgIiVBIiwgJl90bSk7CgkKCWNvdXQgPDwgYnVmIDw8IGVuZGw7CgoJcmV0dXJuIDA7Cn0=