#include<iostream>
#include <iomanip>
#include<string>
#include<stdio.h>
#include"math.h"
using namespace std;
int main() {
int c;
int q = 1;
int count = 1;
while ((c = getchar()) != EOF) {
if (c == '"'&&count%2==1) {
printf("%s", "“" );
q != q;
count++;
}
else if (c == '"'&&count % 2 == 0) {
printf("%s", "”");
q != q;
count++;
}
else {
printf("%c", c);
}
}
cout << c;
}