#include<iostream>
#include <iomanip>
#include<string>
#include<stdio.h>
#include"math.h"
using namespace std;
int main() {
string a;
int count = 1;
cin >> a;
const char *p = nullptr;
p = a.c_str();
while (*p != 0) {
if (*p != '"') {
cout << *p;
p++;
}
else if (*p == '"'&&count % 2 == 1) {
cout << "“";
count++;
p++;
}
else if(*p =='"'&&count % 2 == 0){
cout << "”";
count++;
p++;
}
}
}