Problem:


Score: 200 points

Problem Statement

We have a string S consisting of lowercase English letters.

If the length of S is at most K, print S without change.

If the length of S exceeds K, extract the first K characters in S, append ... to the end of them, and print the result.

Constraints

K is an integer between 1 and 100 (inclusive).

S is a string consisting of lowercase English letters.

The length of S is between 1 and 100 (inclusive).

Input

Input is given from Standard Input in the following format:

K
S

Output

Print a string as stated in Problem Statement.

Sample Input 1

7
nikoandsolstice

Sample Output 1

nikoand...

nikoandsolstice has a length of 15, which exceeds K=7.

We should extract the first 7 characters in this string, append ... to the end of them, and print the result nikoand....

Sample Input 2

40
ferelibenterhominesidquodvoluntcredunt

Sample Output 2

ferelibenterhominesidquodvoluntcredunt

The famous quote from Gaius Julius Caesar.



Sample input:
7
nikoandsolstice


Sample output:
nikoand...

Submission status: Runtime Error

Solution code:
k = int(input())
s = input()

if len(s) <= k:
  print(s)
else:
  print(s[:k] + ...)

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-


S=input()
K=input()


if(len(K)>=S):
    print(K[0:S]+"...")

else:
    print(K)

Submission status: Runtime Error

Solution code:
import sys
#a = []
#for l in sys.stdin:
#    a.append(int(l))
k = input()
s = input()
if len(s) <= len(k):
   print(s)
else:
   print(k)
   while i in range(len(k)-len(s)):
      print('.')

Submission status: Runtime Error

Solution code:
k = int(input())
s = input()

print(s if len(s)<=k else s[0:k] + "...")a

Submission status: Runtime Error

Solution code:
x = input()
y = input()
z = len(y)
if z <= int(x):
  print(y)
else:
  print(y[:x])

Submission status: Runtime Error

Solution code:
x = input()
y = input()
z = len(y)
if z <= x:
  print(y)
else:
  print(y[:x])

Submission status: Runtime Error

Solution code:
x = input()
y = input()
z = len(y)
if z <= x:
  print(y)
else:
  print(y[:x]

Submission status: Runtime Error

Solution code:
#include <bits/stdc++.h>
using namespace std;

int main()
{
  int k;
  cin>>k;
  string s;
  cin>>s;
  int n=s.length();
  
  if(n<=k)
    cout<<s;
  else
  {
    string a=s.substr(0,k);
    a=a+"...";
    cout<<a;
  }
  return 0;
}

Submission status: Runtime Error

Solution code:
K=input()
S=input()

if len(S)>=K:
  print(s)
else:
  print(s[:K]+"...")

Submission status: Runtime Error

Solution code:
K = int(input())
S = list(input())

# print(K)
# print(S)

out = []

for i in range(K):
    out.append(S[i])
# print(out)
if len(S)>K:
    out.append("...")

for term in out:
    print(term, end="")

Submission status: Runtime Error

Solution code:
k=int(input())
s=str(input())
if len(s) <= k:
  print(s)
else:
  print(s in range k + "...")

Submission status: Runtime Error

Solution code:
K = int(input())
S = input()
if len(s)>K:
    s = s[:k] + "..."

print(s)

Submission status: Runtime Error

Solution code:
n= int(input())
a = input()
print(a[0:n] + n==len(a) ? " ":"...")

Submission status: Runtime Error

Solution code:
k = int(input())
s = input()
if int(len(s)) <= k:
  	print(str(s))
else:
  	print(((str(s))[0:k])

Submission status: Runtime Error

Solution code:
k = int(input())
s = input()
l = len(s)
if l <= k:
	print(s)
else: 
  	print(s[0:k]"...")

Submission status: Runtime Error

Solution code:
k = input()
w = input()
l = len(w)
if l <= k:
	print(w)
else:
    print(w[:k]"...")

Submission status: Runtime Error

Solution code:
S=input()
K=input()
if l>=int(S):
    print(K[:1]+'...')
else:
    print(K)

Submission status: Runtime Error

Solution code:
import math
a, b, h, m = map(int, input().split())
x = 360*(h/12)+30*(m/60)
y = 360*(m/60)
d = math.cos(math.radians(abs(x-y)))
z = a**2 + b**2 -2*a*b*d
print (math.sqrt(z))

Submission status: Runtime Error

Solution code:
S=input()
k=int(input())
if len(S)>k:
  S=S[:k]+"..."
print(S)

Submission status: Runtime Error

Solution code:
n=int(input())
chara=input()
nc=len(chara)

if n=>nc:
  print(chara)
else:	
  print(chara[1:n])

Submission status: Runtime Error

Solution code:
k = input()
w = input()
l = len(w)
if l <= k:
	print(w)
else:
    print(w[:k])

Submission status: Runtime Error

Solution code:
k = input()
w = input()
l = len(w)
if l <= k:
	print(w)
else:
    print(w[:k])

Submission status: Runtime Error

Solution code:
k = input()
w = input()
l = len(w)
if l <= k:
 	 print(w)
else:
   	 print(w[:k])

Submission status: Runtime Error

Solution code:
k = input()
w= input()
l = len(w)
if l <= k:
	print(w)
else:
	print(w[:k])

Submission status: Runtime Error

Solution code:
k = input()
w= input()
l = len(w)
if l <= k:
 	 
    print(w)
else:
   	 print(w[:k])

Submission status: Runtime Error

Solution code:
S=input()
K=int(input())
if len(S)<=K:
    print(S)
else:
    print(S[:K]+"...")

Submission status: Runtime Error

Solution code:
k = input()
w= input()
l = len(w)
	if l <= k:
 	 print(w)
  	else:
   	 print(w[:k])

Submission status: Runtime Error

Solution code:
k = input()
w= input()
l = len(str)
	if l <= k:
  print(str)
  	else:
    print(w[:k])

Submission status: Runtime Error

Solution code:
S=str(input())
K=int(input())
if len(S)<=K:
    print(S)
else:
    print(S[0:K]+"...")

Submission status: Runtime Error

Solution code:
S=input()
K=input()
if len(S)<=K:
    print(S)
else:
    print(S[:K]+"...")

Submission status: Runtime Error

Solution code:
S=str(input())
K=int(input())
if len(S)<=K:
    print(S)
else:
    print(S[:K]+"...")

Submission status: Runtime Error

Solution code:
k = input()
str = input()
l = len(str)
if l <= k:
  print(str)
  else:
    print(s[:k])

Submission status: Runtime Error

Solution code:
k = input()
str = input()
l = len(str)
if l <= k:
  print(str)
  else:
    print(s[:k])

Submission status: Runtime Error

Solution code:
k = input()
str = input()
l = len(str)
if l <= k:
  print(str)
  else:
    print(s[1:k])

Submission status: Runtime Error

Solution code:
k=int(input())
s=input()
if(k>s.length):
  print(s)
else:
  print(s[0,k],"...")

Submission status: Runtime Error

Solution code:
K = int(input())
S = input()

if len(S) > K:
    S = S[:k] + "..."

print(s)

Submission status: Runtime Error

Solution code:
K = int(input())
S = input()

if len(S) > K:
    S = s[:k] + "..."

print(s)

Submission status: Runtime Error

Solution code:
k = int(input())
s = input()

if k > s:
  print(s[0:k+1] + "...")
else:
  print(s)

Submission status: Runtime Error

Solution code:
K = input()
S = input()
if len(s) > int(k):
  print(s[:k]+'...')
else:
  print(s)

Submission status: Runtime Error

Solution code:
#dt = {} for i in x: dt[i] = dt.get(i,0)+1
#dt = {k:v for k,v in sorted(x.items(), key=lambda i: i[1])}
ipnl = lambda n: [int(input()) for _ in range(n)]
inp = lambda :int(input())
ip = lambda :[int(w) for w in input().split()]

k = inp()
s = input()
lf len(s) <= k:
    print(s)
else:
    print(s[:k]+"...")

Submission status: Runtime Error

Solution code:
[K,S] = input()

if len(S)>K:
     print(S[:K]+"...")
else:
    print(S)

Submission status: Runtime Error

Solution code:
i = int(input())
s= input()
if len(s) > k:
  s=s[:k] + "..."
print(s)

Submission status: Runtime Error

Solution code:
s= str(input())
k= int(input())


a=len(s)

if k >= a:
  print(s)

else :
  print(s[:k]+"...")

Submission status: Runtime Error

Solution code:
K = input()
S = input()
if len(S)<=K:
  print(S)
else:
  print(S[:K]+"...")

Submission status: Runtime Error

Solution code:
k=int(input())
s=input()

a=len(s)

if k>=a:
print(s)

else :
print(s[:k]+"...")

Submission status: Runtime Error

Solution code:
k=int(input())
s=str(input())

a=len(s)

if k>=a:
print(s)

else :
print(s[:k]+"...")

Submission status: Runtime Error

Solution code:
k=str(input())
s=int(input())

a=len(s)

if k>=a:
print(s)

else k<a:
print(s[k]+"...")

Submission status: Runtime Error

Solution code:
s=str(input())
k=int(input())
a=len(s)

if k<a
print(s)

elif k>a
print(k+"...")

Submission status: Runtime Error

Solution code:
s=input()
k=input()
a=len(k)

if s<a
print(s)

elif s>a
print(k+"...")

Submission status: Runtime Error

Solution code:
k=int(input())
s=input()   
if len(s)<=k:
  print(s)
  else:
    s=list(s)
    for i in range(k):
      s.pop()
      for i in range(3):
        s.append('.')
        print(''.join(s))

Submission status: Runtime Error

Solution code:
K, S = map(str, input().split())
K = int(K)

if len(S) <= K:
    print(S)
else:
    S = S[0:K]+"..."
    print(S)

Submission status: Runtime Error

Solution code:
K, S = map(str, input().split())
K = int(K)

if len(S) <= K:
    print(S)
else:
    S = (S[0:K]+"..."
    print(S)

Submission status: Runtime Error

Solution code:
K, S = map(str, input().split())
K = int(K)

if len(S) <= K:
    print(S)
else:
    print(S[0:K]+"...")

Submission status: Runtime Error

Solution code:
K, S = map(str, input().split())
K = int(K)

print(len(S))
print(K)

print(len(S) >= K)
if len(S) <= K:
    print(S)
else:
    print(S[0:K]+"...")

Submission status: Runtime Error

Solution code:
k = int(input())
s = input()
if len(s) >= k:
  print(s)
else:
  print(s[:k] + '.' * (k - len(s))

Submission status: Runtime Error

Solution code:
a, b, h, m = map(int,input().split())

hk = h * 30
mk = m * 6

kaku = mk - hk

print(((b ** 2)+(a ** 2)) - (2 * a * b * kaku))

Submission status: Runtime Error

Solution code:
K = input()
S = input()
print(S if len(S)<=K)

Submission status: Runtime Error

Solution code:
K = input()
S = input()
list = 0
a = ""
for i in raige(K):
  a = a+S[list]
  list = list + 1
print(S if len(S)<=K else a+"...")

Submission status: Runtime Error

Solution code:
#!/usr/bin/env python3
# atcoder 
# Türkçe konuşyorum
# Türkler var mı
# memnün oldum

K = int(input())
S = input()
slen = len(S)



if(slen < K):
    print(S)
else:
    change = S[K:]
    for i in range(3):
        change = change.replace(change[i], '.')
    print(S[:K] + change[:3])

Submission status: Runtime Error

Solution code:
K = input()
S = input()
s = len(S)
if s<=K:
  print(S)

Submission status: Runtime Error

Solution code:
K = input()
S = input()
count = len(S)
list = 0
a = ""
for i in raige(K):
  a = a+S[list]
  list = list + 1

if count <= K:
  print(S)
else:
  print(a+"...")

Submission status: Runtime Error

Solution code:
K = input()
S = input()
count = len(S)
list = 0
List = []
for i in range(K):
  print(S[list])
  list = list + 1
if count <= K:
  print(S)
else:
  print( *i +"...")

Submission status: Runtime Error

Solution code:
K=int(input())
S=list(input())

if len(S) < K:
    print(S)
else:
    print(S[0:(SL-1):1],"...")

Submission status: Runtime Error

Solution code:
K=int(input())
S=list(input())

if (len(S)+1) <= K:
    print(S)
else:
    print(S[0:(SL-1):1],"...")

Submission status: Runtime Error

Solution code:
#!/usr/bin/env python3
# atcoder 
# Türkçe konuşyorum
# Türkler var mı
# memnün oldum

K = int(input())
S = input()
slen = len(S)



if(slen < K):
    print(S)
else: 
    change = S[K:]
    for i in range(3):
        change = change.replace(change[i], ".")
    print(S[:K] + change[:3])

Submission status: Runtime Error

Solution code:
K=int(input())
S=list(input())

if (len(S)+1) <= K:
    print(S)
elif (len(S)+1) > K:
    print(S[0:(SL-1):1],"...")

Submission status: Runtime Error

Solution code:
K = int(input())
S = input()
if int(len(S)) <= K:
  print(S)
else:
  for i in range(len(S))
  	if i <= K:
      print(S[i],end="")
    else:
      print("...")
      break

Submission status: Runtime Error

Solution code:
a = int(input())
b = input()
if len(a) < b:
    print(b[:a]+'...')
else:
    print(b)

Submission status: Runtime Error

Solution code:
K=int(input())
S=list(input())

LS=len(S)

if (LS+1) <= K:
    print(S)
elif (LS+1) > K:
    print(S[0:(SL-1):1],"...")

Submission status: Runtime Error

Solution code:
k = int,input()
l = input()
if(len(l)<k):
    print(l)
else:
    print(l)
    print("...")

Submission status: Runtime Error

Solution code:
S=input()
K=int(input())

if len(S) <= K:
    print(S)
else :
    print(S[0:K]+"...")

Submission status: Runtime Error

Solution code:
K=int(input())
S=list(input())

LS=len(S)+1

if LS <= K:
    print(S)
elif LS > K:
    print(S[0:(SL-1):1],"...")

Submission status: Runtime Error

Solution code:
K=int(K)
if len(S)<=K:
    print(S)
else:
    print(S[:K]+"...")

Submission status: Runtime Error

Solution code:
import math
def heikatu(A,B):
    if A % abs(B) ==0:
        return (A//abs(B),B//abs(B))
    if abs(B) % A == 0:
        return (1,B//A)
    
    c = 2
    while c <=math.sqrt(max(A,abs(B))):
        while A % c ==0 and B% c ==0:
            A //=c
            B//=c
        c+=1

    return (A,B)


def pow_r(x, n,mod=10**9+7):
    """
    O(log n)
    """
    if n == 0:  # exit case
        return 1
    if n % 2 == 0:  # standard case ① n is even
        return pow_r((x ** 2)%1000000007 , n // 2) % mod
    else:  # standard case ② n is odd
        return (x * pow_r((x ** 2)%1000000007, (n - 1) // 2) % mod) % mod



def resolve():
    N = int(input())

    kp = dict()
    km = dict()
    zero = [0,0]
    zerozero = 0
    for i in range(N):
        A,B = map(int,input().split())
        if A <0:
            A *= -1
            B *= -1
        if A == 0 and B == 0:
            zerozero+=1
            continue

        if A == 0:
            zero[0]+=1
            continue
        if B == 0:
            zero[1]+=1
            continue

        xx = heikatu(A,B)



        if B < 0:
            if not xx in km:
                km[xx]=0
            km[xx]+=1
        else:
            if not xx in kp:
                kp[xx]=0
            kp[xx]+=1

    tx = []
    if zero != [0,0]:
        tx.append(zero)

    for key in kp:
        A,B = key
        cou = kp[key]    
        if (B,-A) in km:
            tx.append([cou,km[(B,-A)]])
            km.pop((B,-A))
        else:
            tx.append([cou,0])
    for key in km:
        tx.append([0,km[key]])

    ans = 1
    mod = 1000000007
    for a,b in tx:
        xxx = 0
        if a != 0:
            xxx=(xxx+pow_r(2,a)) %mod
        if b != 0:
            xxx=(xxx+pow_r(2,a)) %mod
        if a !=0 and b!=0:
            xxx-=1
        ans = (ans*xxx) % mod

    ans = (ans+mod-1+zerozero) % mod 

    print(ans)       


        







resolve()

Submission status: Runtime Error

Solution code:
K=int(input())
S=list(input())

LS==len(S)+1

if LS <= K:
    print(S)
elif LS > K:
    print(S[0:(SL-1):1],"...")

Submission status: Runtime Error

Solution code:
k=int(input())
s=input()
if len(s)<=k:
  print(k)
else:
  print(s[:k]&"...")

Submission status: Runtime Error

Solution code:
k=int(input())
s=input()
if len(s)<=k:
  print(k)
else:
  print(k[:k]&"...")

Submission status: Runtime Error

Solution code:
k = int(input())
s = input()
i = ""
if len(s) <= k:
  print(s)
  else: 
    for j in range(k):
      i = i + s[j]
    print(i + '...')

Submission status: Runtime Error

Solution code:
K=int(input())
S=list(input())

LS==len(S)

if LS <= K:
    print(S)
elif LS > K:
    print(S[0:(SL-1):1],"...")

Submission status: Runtime Error

Solution code:
#!/usr/bin/env python3
# atcoder 
# Türkçe konuşyorum
# Türkler var mı
# memnün oldum

K = int(input())
S = input()
slen = len(S)

if(slen >= 100):
    S = S[:99]


if(slen < K):
    print(S)
else: 
    pr = S[:K]
    #
    change = S[K:]
    #print(change)
    for i in range(3):
        change = change.replace(change[i], ".")
    print(pr + change[:3])

Submission status: Runtime Error

Solution code:
K = int(input())
S = input()
 
if len(S) =< len(K):
    print(S)
    
else:
    print(S[1:len(S)]+'...')

Submission status: Runtime Error

Solution code:
K=int(input())
S=list(input())

LS=len(S)

if LS <= K:
    print(S)
elif LS > K:
    print(S[0:(SL-1):1],"...")

Submission status: Runtime Error

Solution code:
K=int(input())
S=list(input())

if len(S) < K:
    print(S)
elif len(S) > K:
    print(S[0:(SL-1):1],"...")

Submission status: Runtime Error

Solution code:
K = int(input())
S = input()

if len(S) =< len(K):
    print(S)
    
else:
    print((str[1:S])+'...')

Submission status: Runtime Error

Solution code:
K=int(input())
S=list(input())

if len(S) =< K:
    print(S)
elif len(S) > K:
    print(S[0:(SL-1):1],"...")

Submission status: Runtime Error

Solution code:
k = int(input())
s = input()
if len(s) <= k:
  print(s)
else:
  print(s[:k] _ '...')

Submission status: Runtime Error

Solution code:
K=int(input())
S=list(input())

SL==len(S)

if SL =< K:
    print(S)
elif SL > K:
    print(S[0:(SL-1):1],"...")

Submission status: Runtime Error

Solution code:
#!/usr/bin/env python3
# atcoder 
# Türkçe konuşyorum
# Türkler var mı
# memnün oldum

K = int(input())
S = input()


slen = len(S)
if(slen < K):
    print(S)
else: 
    pr = S[:K]
    #
    change = S[K:]
    #print(change)
    for i in range(3):
        change = change.replace(change[i], ".")
    print(pr + change[:3])

Submission status: Runtime Error

Solution code:
K = int(input())
S = input()

x = len(S)

if x >= K:
    print(S)
else x < K:
    print(S[:K] + '...')

Submission status: Runtime Error

Solution code:
K=int(input())
S=input()

SL=len(S)

if SL =< K:
    print(S)
elif SL > K:
    print(S[0:(SL-1):1],"...")

Submission status: Runtime Error

Solution code:
K, S = input().split()
K = int(K)

if len(S) <= K:
    print(S)
else:
    print(S[0:K] + '...')

Submission status: Runtime Error

Solution code:
#!/usr/bin/env python3
# atcoder 
# Türkçe konuşyorum
# Türkler var mı
# memnün oldum

K = int(input())
S = input()


slen = len(S)
if(slen < K):
    print(S)
else: 
    pr = S[:K]
    change = S[K:K+3]
    #print(change)
    for i in range(3):
        change = change.replace(change[i], ".")
    print(pr + change)

Submission status: Runtime Error

Solution code:
K=int(input())
S=list(input())

SL=len(S)

if SL =< K:
    print(S)
elif SL > K:
    print(S[0:(SL-1):1])

Submission status: Runtime Error

Solution code:
K,S=map(int, input().split())
if len(S)<=K:
     print(K)
else:
     A=S[0:K]
     print(A+"...")

Submission status: Runtime Error

Solution code:
K, S = input().split()
K = int(k)

if len(s) <= k:
    print(s)
else:
    print(s[0:k] + '...')

Submission status: Runtime Error

Solution code:
K = input() 
S = input() 
if　len(S) < K
    print(S)
else:
    print(S[0:K] + '...')

Submission status: Runtime Error

Solution code:
#!/usr/bin/env python3
# coding: utf-8
import math
# def debug(arg):
#     if __debug__:
#         pass
#     else:
#         import sys
#         print(arg, file=sys.stderr)

def main():
    A, B, H, M = map(int, input().split())

    vh = ((H * 60 + M) / (12 * 60))
    vm = (M / 60)

    theta = (vh - vm) * math.tau
    d = math.sqrt(A ** 2 + B ** 2 - 2 * A * B * math.cos(theta))

    print(d)

if __name__ == "__main__":
    main()

Submission status: Runtime Error

Solution code:
#!/usr/bin/env python3
# atcoder 
# Türkçe konuşyorum
# Türkler var mı
# memnün oldum

K = int(input())
S = input()


slen = len(S)
if(slen < K):
    print(S)
else: 
    pr = S[:K]
    change = S[K:K+3]
    for i in range(3):
        change = change.replace(change[i], ".")
    print(pr + change)

Submission status: Runtime Error

Solution code:
K = input()
S = input()
if (len(S) <= K):
  print(S)

Submission status: Runtime Error

Solution code:
K = int(input())
S = input()
if int(len(S)) == K:
  print(S)
else:
  sth = S.split(S[K])
  print(sth[0]+"...")

Submission status: Runtime Error

Solution code:
K=int(input())
S=list(input())
answer=[]
for i in range(K):
  answer.append(S[i])
  
answer.append('...')
s=''
for i in range(len(answer)):
  s+=answer[i]
  
print(s)

Submission status: Runtime Error

Solution code:
K, S = input().split()
K = int(k)

if len(s) <= k:
    print(s)
else:
    print(s[0:k] + "...")

Submission status: Runtime Error

Solution code:
K = input()
S = input()
s = len(S)
if (s <= K):
  print(S)

Submission status: Runtime Error

Solution code:
K = int(input())
S = input()
SS = (int(len(S)))
if S <= 0:
  print(s)
else:
print(S[:SS-K])+print('.',K)

Submission status: Runtime Error

Solution code:
S = input()
K = int(input())

if len(S) <= K:
  print(S)
else:
  print(S[0:K],"...")

Submission status: Runtime Error

Solution code:
K = input()
S = input()
s = len(S)
if (s <= K):
  print(S)

Submission status: Runtime Error

Solution code:
K = int(input())
S = raw_input()
if (len(S) == K):
  print(S)
else: print(S[0:K] + '...')

Submission status: Runtime Error

Solution code:
K = input()
S = input()
if (len(S) <= K):
  print(S)
else:
  print(S[K]+"...")

Submission status: Runtime Error

Solution code:
K = int(input())
S = input()
if len(S) > K:
    print(s[:k]+'...')
else:
    print(S)

Submission status: Runtime Error

Solution code:
K = int(input())
S = input()
if len(S) =< K:
 print(S)
else:
 print(S[:K+1] + '...')

Submission status: Runtime Error

Solution code:
S = str(input())
K = int(input())

if len(S) <= K:
  print(S)
else:
  print(S[0:K],"...")

Submission status: Runtime Error

Solution code:
K = int(input())
S = input()
sth = S.split(S[K])
print(sth[0]+"...")

Submission status: Runtime Error

Solution code:
K = int(input())
S = input()
if (len(S) == K):
  print(S)
else: print( S[0:K].join('...')

Submission status: Runtime Error

Solution code:
K = input()
S = input()
list = 0
a = ""
for i in raige(K):
  a = "a+S[list]"
  list = list + 1

if (len(S) <= K):
  print(S)

Submission status: Runtime Error

Solution code:
S = map(str, input())
K = input()

if len(S) <= K:
  print(S)
else:
  print(S[0:K],"...")

Submission status: Runtime Error

Solution code:
K,S = input().split()
K = int(K)
if len(S) <= K:
    print(S)
else:
    print(S[0:K]+"...")

Submission status: Runtime Error

Solution code:
K = int(input())
S = input()
if len(S) =< K:
 print(S)
else:
 print(S[:K+1]+'...')

Submission status: Runtime Error

Solution code:
k, s = input().split()
k = int(k)

if len(s) <= k:
    print(s)
else:
    print(s[0:k] + "...")

Submission status: Runtime Error

Solution code:
K = input()
S = input()
count = len(S)
list = 0
a = ""
for i in raige(K):
  a = "a+S[list]"
  list = list + 1

if (count <= K):
  print(S)
else:
  print(a+"...")

Submission status: Runtime Error

Solution code:
k = int(input())
s = str(input())
e = len(s)

if k < int(len(s)):
  print(n[0:int(e-k)-1]+'.'*3)
else:
  print(s)

Submission status: Runtime Error

Solution code:
k = int(input())
s = input()
tyai = [s[i] for i in range(k)]
print(tyai + '...')

Submission status: Runtime Error

Solution code:
k, s = input().split()
k = int(k)

if len(s) <= k:
    print(s)
else:
    print(s[0:k] + "...")

Submission status: Runtime Error

Solution code:
K = input()
S = input()
count = len(S)
list = 0
a = ""
for i in raige(K):
  a = a+S[list]
  list = list + 1

if (count <= K):
  print(S)
else:
  print(a+"...")

Submission status: Runtime Error

Solution code:
n = int(input())
s = input()
a = len(s)
if s <= n:
  print(s)
else:
  print(s[0:n-1] + '...')

Submission status: Runtime Error

Solution code:
if len(S)<=K:
    print(K)
else:
    A=S[0:K]
    print(A+"...")

Submission status: Runtime Error

Solution code:
a = int(input())
b = input()
if len(b) <= a:
  print(b)
else:
  list = [b]
  g = len(b)
  
  for i in range(1,g):
    print("{}".format(list[i-1]),end="")
    print('...')

Submission status: Runtime Error

Solution code:
k, s = input().split()
k = int(k)

if len(s) <= k:
    print(s)
else:
    print(s[1:k] + "...")

Submission status: Runtime Error

Solution code:
K = int(input())
S = input()
if len(S) =< int(K):
 print(S)
else:
 print(S[:int(K)]+'...')

Submission status: Runtime Error

Solution code:
if len(S)<=K:
...     print(K)
... else:
...     A=S[0:K]
...     print(A+"...")

Submission status: Runtime Error

Solution code:
K = int(input())
S = input()
if len(S) =< int(K):
 print(S)
else:
 print(S[0:K]+'...')

Submission status: Runtime Error

Solution code:
K = int(input())
S = input()
x = len(S)
 
if x <= K:
  print(S)
else:
  print(S[K - 1:]　+ '...')

Submission status: Runtime Error

Solution code:
K = int(input())
S = input()
x = len(S)
 
if x <= K:
  print(S)
else:
  print(S[K:]　+ '...')

Submission status: Runtime Error

Solution code:
k = input()
s = input()
if(len(s)<=k):
  print(s)
else:
  print(s[:k])

Submission status: Runtime Error

Solution code:
K = int(input())
S = input()
x = len(s)
 
if x <= K:
  print(S)
else:
  print(S[K:])

Submission status: Runtime Error

Solution code:
K = int(input())
S = input()
Sl = len(S)
if Sl <= K:
  ans = S
else:
  newS = S[0 :: K - 1]
  ans = (newS + "...")
print(ans)

Submission status: Runtime Error

Solution code:
K=int(input())
S=input()
B=0
D=0
B=len(S)
B=int(B)
B=B+1
D=S+...
if B>=K:
    print(S)
else:
    print(D)

Submission status: Runtime Error

Solution code:
K = input()
S = input()
count = len(S)
if (count <= K):
  print(S)
else:
  print('{:.Kg}.format(S)'+"...")

Submission status: Runtime Error

Solution code:
K = int(input())
S = input()
x = len(s)

if x <= K:
  print(S)
else:
  print(S[K -1:])

Submission status: Runtime Error

Solution code:
K = int(input())
S = input()
if len(S)>K:
    print(S[:K]+"...")
else:
    print(S)
I did 2 only.

Submission status: Runtime Error

Solution code:
k = int(input())
s = list(input())
if k=>len(s):
    print(s)
else print(s[for k i in range k+1]+"...")

Submission status: Runtime Error

Solution code:
K = input()
S = str(input())
if len(S)<=K:
    print(S)
if len(S)>K:
    K = int(K)
    S = str(S[0:K])+ "..."
    print(S)

Submission status: Runtime Error

Solution code:
K = input()
S = input()
count = len(S)
list = 0
for i in range(K):
  i = S[list]
  list = list + 1
if (count <= K):
  print(S)
else:
  print(i+"...")

Submission status: Runtime Error

Solution code:
K = int(input())
S = input()
Sl = len(S)
if Sl <= K:
  ans = S
else:
  newS = S[0 : Sl - 1].append("...")
  ans = newS
print(ans)

Submission status: Runtime Error

Solution code:
K = int(input())
S = int(input())
if len(S) <= K:
  print(S)
else:
  print(S[:K]+"...")

Submission status: Runtime Error

Solution code:
K = int(input())
S = input()
if len(S) =< int(K):
 print(S)
else:
 print(S[:int(K)+1]+'...')

Submission status: Runtime Error

Solution code:
K = int(input())
S = input()
a = ""
if len(S)<=K:
    exit(S)
else:
    for i in range(K):
        a+=S[i]
print(a,"...")

Submission status: Runtime Error

Solution code:
K = int(input())
S = input()

x = len(s)

if x > K:
  print(S[1:] + '...')
else:
  print(S)

Submission status: Runtime Error

Solution code:
K=int(input())
S=input()
B=0
D=0
B=len(S)
B=int(B)
D=S+'...'
if S>=K:
    print(S)
else:
    print(D)

Submission status: Runtime Error

Solution code:
n = int(input())
s = str(input())
print(s[:n] + "...")

Submission status: Runtime Error

Solution code:
K = int(input())
S = input()

if len(S) =< K:
 print(S)
else:
 print(S[1:K+1]+'...')

Submission status: Runtime Error

Solution code:
import sys
import math
input = sys.stdin.readline

############ ---- Input Functions ---- ############
def inp():
    return(int(input()))
def inlt():
    return(list(map(int,input().split())))
def insr():
    s = input()

def invr():
    return(map(int,input().split()))

def solve(s,k):
    len1 = len(s)
    if len1 > k:
        corte = ''
        for i in range(k):
            corte += s[i]
        corte += '...'
        return corte
	else :
      return s
def main():
    k = inp()
    print(solve(input(),k))


main()

Submission status: Runtime Error

Solution code:
K=int(input())
S=input()
B=0
D=0
B=len(S)
B=int(B)
D=S+'...'
if S=>K:
    print(S)
else:
    print(D)

Submission status: Runtime Error

Solution code:
K = input()
S = input()
count = len(S)
list = 0
List = []
for i in range(K):
  print(S[list])
  list = list + 1
if (count <= K):
  print(S)
else:
  print( *i +"...")

Submission status: Runtime Error

Solution code:
umber=int(input())
word=input()
length=len(word)
if length<=number:
  print(word)
if length>number:
  word=word[0:number-1]
  print(word+"...")

Submission status: Runtime Error

Solution code:
K = int(input())
S = input()
if int(len(S)) <= K:
    print(S)
else:
    print(S[0:K]...)

Submission status: Runtime Error

Solution code:
K = input()
S = input()
count = len(S)
list = 0
List = []
for i in range(K):
  a = S[list]
  a.attend(List)
  list = list + 1
if (count <= K):
  print(S)
else:
  print(List+"...")

Submission status: Runtime Error

Solution code:
K = int(input())
S = input()

if len(S) =< int(K):
 print(S)
else:
 print(S[1:K+1])

Submission status: Runtime Error

Solution code:
Kkk = int(input())  
String = str(input())
if len(String)==Kkk :
  print(String) 
else : 
  String.translate({ord(i): None for i in range(Kkk+1,len(String)-1)})
  print(String.append("..."))

Submission status: Runtime Error

Solution code:
K = int(input())
S = input()

if len(S) =< K:
 print(S)
else:
 print(S[1:K+1])

Submission status: Runtime Error

Solution code:
k=int(input())
s=input()
if len(s)<=k
    print('s')
else:
  print('s[:k+1]'+'...')

Submission status: Runtime Error

Solution code:
K=int(input())
S=input()

n=len(S)

if n<=K:
    print(S)
else:
    for i in range(7):
        print(S[i],end="")
    print("...")

Submission status: Runtime Error

Solution code:
k = int(input())
s = list(input())
if k == len(s):
  print(''.join(s))
else:
  l = []
  for i in range(k):
    l.append(s[i])
  l.append('...')
  m = ''.join(l)
  print(m)

Submission status: Runtime Error

Solution code:
K=int(input())
S=input()
D=[]
for i in range(K):
  D.append(S[i])
D.append("...")
P=''.join(D)  
if len(S)<=K:
  print(S)
else:
  print(P)

Submission status: Runtime Error

Solution code:
k=int(input())
s=str(input())
if len(s)>k:
  print(s[0:k]+"...")
elif:
  print(s)

Submission status: Runtime Error

Solution code:
K = int(input())
S = str(input())

if len(S) <= K:
    print(S)
else:

    print(S[:K+1]+...)

Submission status: Runtime Error

Solution code:
s = input()
k = int(input())
if len(s) <= k:
  print(s)
else:
  print("...{}".format(s[:k]))

Submission status: Runtime Error

Solution code:
k = int(input())
s  = input()

if  len(s)<=k:
 print(s)
else:
print(s[:k]+'...')

Submission status: Runtime Error

Solution code:
s=input()
k=int(input())
if len(s)> k:
  print(s[:k]+'...')
if len(s)<=k:
  print(s)

Submission status: Runtime Error

Solution code:
a = int(input())
b = input()
i = 0
while i < a :
    print(end = b[i])
    i = i + 1
if a < len(b) :
    print(end = "...")

Submission status: Runtime Error

Solution code:

 k = int(input())

 s = input()


if k < len(s):  ##以上の時
    print(s[:k] + "...")
else:
    print(s)

Submission status: Runtime Error

Solution code:
k = int(input())
s = raw_input()

if k >= len(s):
    print(s)
else:
    print(s[0:k]+"...")

Submission status: Runtime Error

Solution code:
length = input()
input_str = input()

if len(input_str) > length:
    print(input_str + '...')
else:
    print(input_str)

Submission status: Runtime Error

Solution code:
length = input()
input_str = input()

if len(input_str) > length:
    print(input_str + '...')
else:
    input_str

Submission status: Runtime Error

Solution code:
k=int(input())
s=input()
l=len(s)
if(l<=k):
  print(s)
else:
  s=s[k:]
  print(s,end=" ",...)

Submission status: Runtime Error

Solution code:
k = int(input())
s = input()
if len(s) =< k:
    print(s)
else:
    s1 = s[0:k]
    s1 = s1 + '...'
    print(s1)

Submission status: Runtime Error

Solution code:
K = int(input()) 
S = input()

if len(S) > K:
    S = S[:K]  + '...'

print(a)

Submission status: Runtime Error

Solution code:
k = input()
s = input()

if len(s) <= int(k):
  print(s)
else:
  print(s[0:k] + "...")

Submission status: Runtime Error

Solution code:
a=int(input())
b=input()
i=0
while i<a:
    print(end=str(b[i]))
    i=i+1
if len(b)>a:
    print(end='...')