import qualified Data.Text as T
import qualified Data.Text.IO as T
import qualified Data.Text.Read as T

main :: IO ()
main = do
  k <- unsafeTextToInt <$> T.getLine :: IO Int
  s <- T.getLine :: IO T.Text
  let
    (pf, sf) = T.splitAt k s :: (T.Text, T.Text)
  T.putStr pf
  T.putStrLn $ if T.null sf then T.empty else T.replicate 3 (T.singleton '.')

unsafeTextToInt :: T.Text -> Int
unsafeTextToInt s = case T.signed T.decimal s of
  Right (n, _) -> n
{-# INLINE unsafeTextToInt #-}
