#K15081. Formalize Casual Email
Formalize Casual Email
Formalize Casual Email
In this problem, you are given an informal email that follows a casual template. Your task is to convert this email into a formal correspondence template. The input email follows the format:
Hey [recipient], [sender] here. [greeting_start] [message_body] [greeting_end]
and the desired output should be in the format:
Dear [recipient],
[sender] would like to request:
[trimmed_message_body]
Best regards,
[sender]
Note that the email is composed of two parts: an introduction containing the greeting and sender information, and the subsequent message body. You must extract the recipient and sender names from the introduction and then format the remainder of the email (the message body) accordingly.
Formally, if we denote the casual email as a string S, then you are required to produce the following output:
[
\text{Formal Email} = \text{``Dear
inputFormat
The input consists of a single line, a string representing a casual email. The format is: Hey [recipient], [sender] here. [greeting_start] [message_body] [greeting_end]
outputFormat
Output the formalized email exactly in the following format: Dear [recipient],
## sample
[sender] would like to request:
[trimmed_message_body]
Best regards,
[sender]
Hey John, Mike here. Hope you're doing well. Could you please send me the project updates? Thanks!
Dear John,
Mike would like to request:
Hope you're doing well. Could you please send me the project updates? Thanks!
Best regards,
Mike
</p>