fork download
  1. main = readLn >>= print . ( until(((==).head>>=all).show)(+1)>>=(-) )
Success #stdin #stdout 0s 4532KB
stdin
123
stdout
99