#include <iostream>
#include <string>
#include <sstream>
int main()
{
std::cout << "Please enter a date MM/DD/YY:" << std::endl;
std::string m, d, y;
std::getline(std::cin, m, '/'); //get month
std::getline(std::cin, d, '/'); //get day
std::getline(std::cin, y); //get year
int month, day, year;
std::istringstream(m) >> month;
std::istringstream(d) >> day;
std::istringstream(y) >> year;
std::cout << "Month: " << month << std::endl;
std::cout << "Day: " << day << std::endl;
std::cout << "Year: " << year << std::endl;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8c3RyaW5nPgojaW5jbHVkZSA8c3N0cmVhbT4KCmludCBtYWluKCkKewogICAgc3RkOjpjb3V0IDw8ICJQbGVhc2UgZW50ZXIgYSBkYXRlIE1NL0REL1lZOiIgPDwgc3RkOjplbmRsOwogICAgc3RkOjpzdHJpbmcgbSwgZCwgeTsKICAgIHN0ZDo6Z2V0bGluZShzdGQ6OmNpbiwgbSwgJy8nKTsgLy9nZXQgbW9udGgKICAgIHN0ZDo6Z2V0bGluZShzdGQ6OmNpbiwgZCwgJy8nKTsgLy9nZXQgZGF5CiAgICBzdGQ6OmdldGxpbmUoc3RkOjpjaW4sIHkpOyAvL2dldCB5ZWFyCgogICAgaW50IG1vbnRoLCBkYXksIHllYXI7CiAgICBzdGQ6OmlzdHJpbmdzdHJlYW0obSkgPj4gbW9udGg7CiAgICBzdGQ6OmlzdHJpbmdzdHJlYW0oZCkgPj4gZGF5OwogICAgc3RkOjppc3RyaW5nc3RyZWFtKHkpID4+IHllYXI7CgogICAgc3RkOjpjb3V0IDw8ICJNb250aDogIiA8PCBtb250aCA8PCBzdGQ6OmVuZGw7CiAgICBzdGQ6OmNvdXQgPDwgIkRheTogIiA8PCBkYXkgPDwgc3RkOjplbmRsOwogICAgc3RkOjpjb3V0IDw8ICJZZWFyOiAiIDw8IHllYXIgPDwgc3RkOjplbmRsOwp9