{"problem":{"name":"AtCoder Cards","description":{"content":"A single-player card game is popular in AtCoder Inc. Each card in the game has a lowercase English letter or the symbol `@` written on it. There is plenty number of cards for each kind. The game goes ","description_type":"Markdown"},"platform":"AtCoder","limit":{"time_limit":2000,"memory_limit":262144},"difficulty":"None","is_remote":true,"is_sync":true,"sync_url":null,"sign":"abc301_c"},"statements":[{"statement_type":"Markdown","content":"A single-player card game is popular in AtCoder Inc. Each card in the game has a lowercase English letter or the symbol `@` written on it. There is plenty number of cards for each kind. The game goes as follows.\n\n1.  Arrange the same number of cards in two rows.\n2.  Replace each card with `@` with one of the following cards: `a`, `t`, `c`, `o`, `d`, `e`, `r`.\n3.  If the two rows of cards coincide, you win. Otherwise, you lose.\n\nTo win this game, you will do the following cheat.\n\n*   Freely rearrange the cards within a row whenever you want after step 1.\n\nYou are given two strings $S$ and $T$, representing the two rows you have after step 1. Determine whether it is possible to win with cheating allowed.\n\n## Constraints\n\n*   $S$ and $T$ consist of lowercase English letters and `@`.\n*   The lengths of $S$ and $T$ are equal and between $1$ and $2\\times 10^5$, inclusive.\n\n## Input\n\nThe input is given from Standard Input in the following format:\n\n$S$\n$T$\n\n[samples]","is_translate":false,"language":"English"}],"meta":{"iden":"abc301_c","tags":[],"sample_group":[["ch@ku@ai\nchoku@@i","Yes\n\nYou can replace the `@`s so that both rows become `chokudai`."],["ch@kud@i\nakidu@ho","Yes\n\nYou can cheat and replace the `@`s so that both rows become `chokudai`."],["aoki\n@ok@","No\n\nYou cannot win even with cheating."],["aa\nbb","No"]],"created_at":"2026-03-03 11:01:14"}}