AlgoLensArena
ContestlərProblemlərOtaqlar
Vizualizator
← Məsələlər

DAPC19-083.Greetings!

Medium · 1 s · 256 MB

  • icpc
  • dapc
  • 2019

Now that Snapchat and Slingshot are soooo 2018, the teenagers of the world have all switched to the new hot app called BAPC (Bidirectional and Private Communication). This app has some stricter social rules than previous iterations. For example, if someone says goodbye using Later!, the other person is expected to reply with Alligator!. You can not keep track of all these social conventions and decide to automate any necessary responses, starting with the most important one: the greetings. When your conversational partner opens with he… ey, you have to respond with hee… eey as well, but using twice as many e's!

Given a string of the form he… ey of length at most 100010001000, print the greeting you will respond with, containing twice as many e's.

Giriş formatı

• The input consists of one line containing a single string sss as specified, of length at least 333 and at most 100010001000.

Çıxış formatı

Output the required response.

Qeyd

Source: Delft Algorithm Programming Contest 2019 · Author: Onno Berrevoets · License: CC BY-SA 4.0 · Original: https://dapc.wisv.ch · Statement adapted for AlgoLens and shared under the same license.

Nümunələr

Giriş #1

hey

Çıxış #1

heey

Giriş #2

heeeeey

Çıxış #2

heeeeeeeeeey