#define _CRT_SECURE_NO_WARNINGS
#include<iostream>
using namespace std;
void A() {
//string file("test.txt.zip");
//FILE* fout = fopen(file.c_str(), "w");
//size_t pos = file.rfind('.');
//if (pos != string::npos) {
// //string suf = file.substr(pos, file.size() - pos);
// string suf = file.substr(pos);
// cout << suf << endl;
//}
string url("https://www.2345.com/?38001");
size_t pos1 = url.find(':');
string p = url.substr(0, pos1 - 0);
cout << p << endl;
size_t post = url.find('//', pos1 + 3);
string doi = url.substr(pos1 + 3, post - (pos1 + 3));
cout << doi << endl;
//size_t post2 = url.find('/',post+1);
//string domian1 = url.substr(post + 1, post2 - (post + 1));
//cout << domian1 << endl;
};
void B() {
A();
}
int main() {
B();
getchar();
return 0;
}