Insidious hackers

Report a typo

Some supervillain hacked Ryan Gosling's notebook and messed up his film data base. To each film, he added the prefix "he-he-he" and deleted the absolutely necessary phrase "with a great actor Ryan Gosling". Help Ryan to fix it and insert suitable scope functions in this code instead of <scope function>.

Sample Input 1:

he-he-heThe Believer

Sample Output 1:

THE BELIEVER WITH GREAT ACTOR RYAN GOSLING
Write a program in Kotlin
fun main() {
val title = readln()
val filmTitle = title
.removePrefix("he-he-he")
.<scope function> { "$it with great actor Ryan Gosling" }
.uppercase()
.<scope function>(::println)
}
___

Create a free account to access the full topic