問題一覧 > 通常問題

No.2041 E-mail Address

レベル : / 実行時間制限 : 1ケース 2.000秒 / メモリ制限 : 512 MB / 標準ジャッジ問題
タグ : (AC するまで非表示) / 解いたユーザー数 293
作問者 : 👑 箱星 / テスター : 👑 hitonanode harurun
お気に入りにしたユーザー ProblemId : 7148 / 自分の提出
問題文最終更新日: 2022-08-09 22:11:39
This statement was translated by AI (claude-opus-5-5, effort medium) and may contain errors or differ in nuance from the original. The original statement takes precedence. Show the original
yukicoder contest 357 (順位表) の他の問題:

Problem Statement

Koboshi's e-mail address is a string $S$. Here, $S$ satisfies the following conditions.

  • $S$ consists of lowercase English letters, ., and @.
  • $S$ contains exactly $1$ @.

Koboshi performed the following operation on $S$ and obtained a new string $T$.

  • Choose $1$ string of $0$ or more lowercase English letters. Let $U$ be the string obtained by adding ( to the left end and ) to the right end of the chosen string.
  • Let $T$ be the string obtained by replacing the @ appearing in $S$ with $U$.

Given $T$, find the original string $S$.

Constraints

  • $2\le |T|\le 10^5$
  • $T$ is a string created by the method described in the problem statement.

Input

$T$

Output

Output $S$.

Sample

Sample 1
Input
koboshi(atmark)inohara.ongeki
Output
koboshi@inohara.ongeki

$U$ is (atmark).

Sample 2
Input
(yuki)coder
Output
@coder

Sample 3
Input
...()...
Output
...@...

提出するには、Twitter 、GitHub、 Googleもしくは右上の雲マークをクリックしてアカウントを作成してください。