Search is not available for this dataset
name
stringlengths
2
112
description
stringlengths
29
13k
source
int64
1
7
difficulty
int64
0
25
solution
stringlengths
7
983k
language
stringclasses
4 values
p03636 AtCoder Beginner Contest 069 - i18n
The word `internationalization` is sometimes abbreviated to `i18n`. This comes from the fact that there are 18 letters between the first `i` and the last `n`. You are given a string s of length at least 3 consisting of lowercase English letters. Abbreviate s in the same way. Constraints * 3 ≤ |s| ≤ 100 (|s| denotes the length of s.) * s consists of lowercase English letters. Input Input is given from Standard Input in the following format: s Output Print the abbreviation of s. Examples Input internationalization Output i18n Input smiles Output s4s Input xyz Output x1z
6
0
N=input() print(N[0]+str(len(N)-2)+N[-1])
PYTHON3
p03636 AtCoder Beginner Contest 069 - i18n
The word `internationalization` is sometimes abbreviated to `i18n`. This comes from the fact that there are 18 letters between the first `i` and the last `n`. You are given a string s of length at least 3 consisting of lowercase English letters. Abbreviate s in the same way. Constraints * 3 ≤ |s| ≤ 100 (|s| denotes the length of s.) * s consists of lowercase English letters. Input Input is given from Standard Input in the following format: s Output Print the abbreviation of s. Examples Input internationalization Output i18n Input smiles Output s4s Input xyz Output x1z
6
0
S = raw_input() print "{}{}{}".format(S[0], len(S)-2, S[-1])
PYTHON
p03636 AtCoder Beginner Contest 069 - i18n
The word `internationalization` is sometimes abbreviated to `i18n`. This comes from the fact that there are 18 letters between the first `i` and the last `n`. You are given a string s of length at least 3 consisting of lowercase English letters. Abbreviate s in the same way. Constraints * 3 ≤ |s| ≤ 100 (|s| denotes the length of s.) * s consists of lowercase English letters. Input Input is given from Standard Input in the following format: s Output Print the abbreviation of s. Examples Input internationalization Output i18n Input smiles Output s4s Input xyz Output x1z
6
0
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); String s = sc.next(); String S[] = s.split(""); System.out.print(S[0]); System.out.print(S.length-2); System.out.print(S[S.length-1]); System.out.println(); } }
JAVA
p03636 AtCoder Beginner Contest 069 - i18n
The word `internationalization` is sometimes abbreviated to `i18n`. This comes from the fact that there are 18 letters between the first `i` and the last `n`. You are given a string s of length at least 3 consisting of lowercase English letters. Abbreviate s in the same way. Constraints * 3 ≤ |s| ≤ 100 (|s| denotes the length of s.) * s consists of lowercase English letters. Input Input is given from Standard Input in the following format: s Output Print the abbreviation of s. Examples Input internationalization Output i18n Input smiles Output s4s Input xyz Output x1z
6
0
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String s = sc.next(); int n = s.length() - 2; System.out.print(s.charAt(0) + String.valueOf(n) + s.charAt(n+1)); } }
JAVA
p03636 AtCoder Beginner Contest 069 - i18n
The word `internationalization` is sometimes abbreviated to `i18n`. This comes from the fact that there are 18 letters between the first `i` and the last `n`. You are given a string s of length at least 3 consisting of lowercase English letters. Abbreviate s in the same way. Constraints * 3 ≤ |s| ≤ 100 (|s| denotes the length of s.) * s consists of lowercase English letters. Input Input is given from Standard Input in the following format: s Output Print the abbreviation of s. Examples Input internationalization Output i18n Input smiles Output s4s Input xyz Output x1z
6
0
s = input() print(f'{s[0]}{len(s[1:-1])}{s[-1]}')
PYTHON3
p03636 AtCoder Beginner Contest 069 - i18n
The word `internationalization` is sometimes abbreviated to `i18n`. This comes from the fact that there are 18 letters between the first `i` and the last `n`. You are given a string s of length at least 3 consisting of lowercase English letters. Abbreviate s in the same way. Constraints * 3 ≤ |s| ≤ 100 (|s| denotes the length of s.) * s consists of lowercase English letters. Input Input is given from Standard Input in the following format: s Output Print the abbreviation of s. Examples Input internationalization Output i18n Input smiles Output s4s Input xyz Output x1z
6
0
S=raw_input() print S[0]+str(len(S[1:-1]))+S[-1]
PYTHON
p03636 AtCoder Beginner Contest 069 - i18n
The word `internationalization` is sometimes abbreviated to `i18n`. This comes from the fact that there are 18 letters between the first `i` and the last `n`. You are given a string s of length at least 3 consisting of lowercase English letters. Abbreviate s in the same way. Constraints * 3 ≤ |s| ≤ 100 (|s| denotes the length of s.) * s consists of lowercase English letters. Input Input is given from Standard Input in the following format: s Output Print the abbreviation of s. Examples Input internationalization Output i18n Input smiles Output s4s Input xyz Output x1z
6
0
#include<bits/stdc++.h> using namespace std; int main() { char s[102]; gets(s); int l=strlen(s); cout<<s[0]<<l-2<<s[l-1]; }
CPP
p03636 AtCoder Beginner Contest 069 - i18n
The word `internationalization` is sometimes abbreviated to `i18n`. This comes from the fact that there are 18 letters between the first `i` and the last `n`. You are given a string s of length at least 3 consisting of lowercase English letters. Abbreviate s in the same way. Constraints * 3 ≤ |s| ≤ 100 (|s| denotes the length of s.) * s consists of lowercase English letters. Input Input is given from Standard Input in the following format: s Output Print the abbreviation of s. Examples Input internationalization Output i18n Input smiles Output s4s Input xyz Output x1z
6
0
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); String line = in.nextLine(); String count = String.valueOf(line.length() - 2); String ans = line.substring(0,1) + count + line.substring(line.length() - 1,line.length()); System.out.println(ans); } }
JAVA
p03636 AtCoder Beginner Contest 069 - i18n
The word `internationalization` is sometimes abbreviated to `i18n`. This comes from the fact that there are 18 letters between the first `i` and the last `n`. You are given a string s of length at least 3 consisting of lowercase English letters. Abbreviate s in the same way. Constraints * 3 ≤ |s| ≤ 100 (|s| denotes the length of s.) * s consists of lowercase English letters. Input Input is given from Standard Input in the following format: s Output Print the abbreviation of s. Examples Input internationalization Output i18n Input smiles Output s4s Input xyz Output x1z
6
0
s=input() l=len(s) print(s[0],l-2,s[l-1],sep='')
PYTHON3
p03636 AtCoder Beginner Contest 069 - i18n
The word `internationalization` is sometimes abbreviated to `i18n`. This comes from the fact that there are 18 letters between the first `i` and the last `n`. You are given a string s of length at least 3 consisting of lowercase English letters. Abbreviate s in the same way. Constraints * 3 ≤ |s| ≤ 100 (|s| denotes the length of s.) * s consists of lowercase English letters. Input Input is given from Standard Input in the following format: s Output Print the abbreviation of s. Examples Input internationalization Output i18n Input smiles Output s4s Input xyz Output x1z
6
0
#include<bits/stdc++.h> char s[101];int main(){std::cin>>s;int l=strlen(s);std::cout<<s[0]<<l-2<<s[l-1];}
CPP
p03636 AtCoder Beginner Contest 069 - i18n
The word `internationalization` is sometimes abbreviated to `i18n`. This comes from the fact that there are 18 letters between the first `i` and the last `n`. You are given a string s of length at least 3 consisting of lowercase English letters. Abbreviate s in the same way. Constraints * 3 ≤ |s| ≤ 100 (|s| denotes the length of s.) * s consists of lowercase English letters. Input Input is given from Standard Input in the following format: s Output Print the abbreviation of s. Examples Input internationalization Output i18n Input smiles Output s4s Input xyz Output x1z
6
0
#include<iostream> using namespace std; string a; int main(void) { cin>>a; cout<<a[0]<<a.size() - 2<<a[a.size() - 1]<<endl; return 0; }
CPP
p03636 AtCoder Beginner Contest 069 - i18n
The word `internationalization` is sometimes abbreviated to `i18n`. This comes from the fact that there are 18 letters between the first `i` and the last `n`. You are given a string s of length at least 3 consisting of lowercase English letters. Abbreviate s in the same way. Constraints * 3 ≤ |s| ≤ 100 (|s| denotes the length of s.) * s consists of lowercase English letters. Input Input is given from Standard Input in the following format: s Output Print the abbreviation of s. Examples Input internationalization Output i18n Input smiles Output s4s Input xyz Output x1z
6
0
#include<bits/stdc++.h> using namespace std; int main() { string s; cin>>s; int l=s.size(); cout<<s[0]<<l-2<<s[l-1]<<endl;; }
CPP
p03636 AtCoder Beginner Contest 069 - i18n
The word `internationalization` is sometimes abbreviated to `i18n`. This comes from the fact that there are 18 letters between the first `i` and the last `n`. You are given a string s of length at least 3 consisting of lowercase English letters. Abbreviate s in the same way. Constraints * 3 ≤ |s| ≤ 100 (|s| denotes the length of s.) * s consists of lowercase English letters. Input Input is given from Standard Input in the following format: s Output Print the abbreviation of s. Examples Input internationalization Output i18n Input smiles Output s4s Input xyz Output x1z
6
0
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); String s = sc.next(); int l = s.length(); System.out.println(s.substring(0,1) + String.valueOf(l-2) + s.substring(l-1)); } }
JAVA
p03636 AtCoder Beginner Contest 069 - i18n
The word `internationalization` is sometimes abbreviated to `i18n`. This comes from the fact that there are 18 letters between the first `i` and the last `n`. You are given a string s of length at least 3 consisting of lowercase English letters. Abbreviate s in the same way. Constraints * 3 ≤ |s| ≤ 100 (|s| denotes the length of s.) * s consists of lowercase English letters. Input Input is given from Standard Input in the following format: s Output Print the abbreviation of s. Examples Input internationalization Output i18n Input smiles Output s4s Input xyz Output x1z
6
0
#include <bits/stdc++.h> using namespace std; int main(){ string S; cin >> S; cout << S[0] << S.size()-2 << S[S.size()-1] << endl; }
CPP
p03636 AtCoder Beginner Contest 069 - i18n
The word `internationalization` is sometimes abbreviated to `i18n`. This comes from the fact that there are 18 letters between the first `i` and the last `n`. You are given a string s of length at least 3 consisting of lowercase English letters. Abbreviate s in the same way. Constraints * 3 ≤ |s| ≤ 100 (|s| denotes the length of s.) * s consists of lowercase English letters. Input Input is given from Standard Input in the following format: s Output Print the abbreviation of s. Examples Input internationalization Output i18n Input smiles Output s4s Input xyz Output x1z
6
0
import java.util.*; public class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); String s = scan.next(); int len = s.length(); String r = ""; r += s.charAt(0); r += (len-2); r += s.charAt(len-1); System.out.println(r); } }
JAVA
p03636 AtCoder Beginner Contest 069 - i18n
The word `internationalization` is sometimes abbreviated to `i18n`. This comes from the fact that there are 18 letters between the first `i` and the last `n`. You are given a string s of length at least 3 consisting of lowercase English letters. Abbreviate s in the same way. Constraints * 3 ≤ |s| ≤ 100 (|s| denotes the length of s.) * s consists of lowercase English letters. Input Input is given from Standard Input in the following format: s Output Print the abbreviation of s. Examples Input internationalization Output i18n Input smiles Output s4s Input xyz Output x1z
6
0
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String s = sc.next(); sc.close(); int l = s.length(); System.out.println(s.charAt(0) + "" + (l - 2) + "" + s.charAt(l - 1)); } }
JAVA
p03636 AtCoder Beginner Contest 069 - i18n
The word `internationalization` is sometimes abbreviated to `i18n`. This comes from the fact that there are 18 letters between the first `i` and the last `n`. You are given a string s of length at least 3 consisting of lowercase English letters. Abbreviate s in the same way. Constraints * 3 ≤ |s| ≤ 100 (|s| denotes the length of s.) * s consists of lowercase English letters. Input Input is given from Standard Input in the following format: s Output Print the abbreviation of s. Examples Input internationalization Output i18n Input smiles Output s4s Input xyz Output x1z
6
0
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String s = sc.next(); int N = s.substring(1, s.length() - 1).length(); System.out.println(s.substring(0, 1) + N + s.substring(s.length() - 1, s.length())); } }
JAVA
p03636 AtCoder Beginner Contest 069 - i18n
The word `internationalization` is sometimes abbreviated to `i18n`. This comes from the fact that there are 18 letters between the first `i` and the last `n`. You are given a string s of length at least 3 consisting of lowercase English letters. Abbreviate s in the same way. Constraints * 3 ≤ |s| ≤ 100 (|s| denotes the length of s.) * s consists of lowercase English letters. Input Input is given from Standard Input in the following format: s Output Print the abbreviation of s. Examples Input internationalization Output i18n Input smiles Output s4s Input xyz Output x1z
6
0
s = raw_input() print s[0]+str(len(s)-2)+s[-1]
PYTHON
p03636 AtCoder Beginner Contest 069 - i18n
The word `internationalization` is sometimes abbreviated to `i18n`. This comes from the fact that there are 18 letters between the first `i` and the last `n`. You are given a string s of length at least 3 consisting of lowercase English letters. Abbreviate s in the same way. Constraints * 3 ≤ |s| ≤ 100 (|s| denotes the length of s.) * s consists of lowercase English letters. Input Input is given from Standard Input in the following format: s Output Print the abbreviation of s. Examples Input internationalization Output i18n Input smiles Output s4s Input xyz Output x1z
6
0
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); String x = sc.next(); String y = Integer.toString(x.length() - 2); System.out.print(x.charAt(0) + y + x.charAt(x.length() -1)); } }
JAVA
p03636 AtCoder Beginner Contest 069 - i18n
The word `internationalization` is sometimes abbreviated to `i18n`. This comes from the fact that there are 18 letters between the first `i` and the last `n`. You are given a string s of length at least 3 consisting of lowercase English letters. Abbreviate s in the same way. Constraints * 3 ≤ |s| ≤ 100 (|s| denotes the length of s.) * s consists of lowercase English letters. Input Input is given from Standard Input in the following format: s Output Print the abbreviation of s. Examples Input internationalization Output i18n Input smiles Output s4s Input xyz Output x1z
6
0
n = input() print(n[0] + str(len(n)-2) + n[-1])
PYTHON3
p03636 AtCoder Beginner Contest 069 - i18n
The word `internationalization` is sometimes abbreviated to `i18n`. This comes from the fact that there are 18 letters between the first `i` and the last `n`. You are given a string s of length at least 3 consisting of lowercase English letters. Abbreviate s in the same way. Constraints * 3 ≤ |s| ≤ 100 (|s| denotes the length of s.) * s consists of lowercase English letters. Input Input is given from Standard Input in the following format: s Output Print the abbreviation of s. Examples Input internationalization Output i18n Input smiles Output s4s Input xyz Output x1z
6
0
s,*t,r = input() print(s+str(len(t))+r)
PYTHON3
p03636 AtCoder Beginner Contest 069 - i18n
The word `internationalization` is sometimes abbreviated to `i18n`. This comes from the fact that there are 18 letters between the first `i` and the last `n`. You are given a string s of length at least 3 consisting of lowercase English letters. Abbreviate s in the same way. Constraints * 3 ≤ |s| ≤ 100 (|s| denotes the length of s.) * s consists of lowercase English letters. Input Input is given from Standard Input in the following format: s Output Print the abbreviation of s. Examples Input internationalization Output i18n Input smiles Output s4s Input xyz Output x1z
6
0
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String s = sc.next(); String s1 = s.substring(0,1); String s2 = s.substring(s.length() - 1); int n = (s.length()-2); System.out.println(s1+n+s2); } }
JAVA
p03636 AtCoder Beginner Contest 069 - i18n
The word `internationalization` is sometimes abbreviated to `i18n`. This comes from the fact that there are 18 letters between the first `i` and the last `n`. You are given a string s of length at least 3 consisting of lowercase English letters. Abbreviate s in the same way. Constraints * 3 ≤ |s| ≤ 100 (|s| denotes the length of s.) * s consists of lowercase English letters. Input Input is given from Standard Input in the following format: s Output Print the abbreviation of s. Examples Input internationalization Output i18n Input smiles Output s4s Input xyz Output x1z
6
0
#include <bits/stdc++.h> using namespace std; int main() { string s; int n; cin >> s; n=s.size(); cout << s[0] << n-2 << s[n-1]; }
CPP
p03636 AtCoder Beginner Contest 069 - i18n
The word `internationalization` is sometimes abbreviated to `i18n`. This comes from the fact that there are 18 letters between the first `i` and the last `n`. You are given a string s of length at least 3 consisting of lowercase English letters. Abbreviate s in the same way. Constraints * 3 ≤ |s| ≤ 100 (|s| denotes the length of s.) * s consists of lowercase English letters. Input Input is given from Standard Input in the following format: s Output Print the abbreviation of s. Examples Input internationalization Output i18n Input smiles Output s4s Input xyz Output x1z
6
0
import java.util.*; public class Main{ public static void main(String[] args)throws Exception{ Scanner sc = new Scanner(System.in); String s = sc.nextLine(); System.out.println(s.charAt(0) +"" + (s.length()-2) + s.charAt(s.length()-1)); } }
JAVA
p03636 AtCoder Beginner Contest 069 - i18n
The word `internationalization` is sometimes abbreviated to `i18n`. This comes from the fact that there are 18 letters between the first `i` and the last `n`. You are given a string s of length at least 3 consisting of lowercase English letters. Abbreviate s in the same way. Constraints * 3 ≤ |s| ≤ 100 (|s| denotes the length of s.) * s consists of lowercase English letters. Input Input is given from Standard Input in the following format: s Output Print the abbreviation of s. Examples Input internationalization Output i18n Input smiles Output s4s Input xyz Output x1z
6
0
#include<bits/stdc++.h> using namespace std; int main() { string s; cin >> s; cout << s[0] << s.size()-2 << s[s.size()-1] << "\n"; }
CPP
p03636 AtCoder Beginner Contest 069 - i18n
The word `internationalization` is sometimes abbreviated to `i18n`. This comes from the fact that there are 18 letters between the first `i` and the last `n`. You are given a string s of length at least 3 consisting of lowercase English letters. Abbreviate s in the same way. Constraints * 3 ≤ |s| ≤ 100 (|s| denotes the length of s.) * s consists of lowercase English letters. Input Input is given from Standard Input in the following format: s Output Print the abbreviation of s. Examples Input internationalization Output i18n Input smiles Output s4s Input xyz Output x1z
6
0
s=input() N=len(s)-2 print(s[0]+str(N)+s[-1])
PYTHON3
p03636 AtCoder Beginner Contest 069 - i18n
The word `internationalization` is sometimes abbreviated to `i18n`. This comes from the fact that there are 18 letters between the first `i` and the last `n`. You are given a string s of length at least 3 consisting of lowercase English letters. Abbreviate s in the same way. Constraints * 3 ≤ |s| ≤ 100 (|s| denotes the length of s.) * s consists of lowercase English letters. Input Input is given from Standard Input in the following format: s Output Print the abbreviation of s. Examples Input internationalization Output i18n Input smiles Output s4s Input xyz Output x1z
6
0
#include<bits/stdc++.h> using namespace std; int main(){ string s; cin>>s; cout<<s[0]<<s.length()-2<<s[(int)s.length()-1]<<endl; }
CPP
p03636 AtCoder Beginner Contest 069 - i18n
The word `internationalization` is sometimes abbreviated to `i18n`. This comes from the fact that there are 18 letters between the first `i` and the last `n`. You are given a string s of length at least 3 consisting of lowercase English letters. Abbreviate s in the same way. Constraints * 3 ≤ |s| ≤ 100 (|s| denotes the length of s.) * s consists of lowercase English letters. Input Input is given from Standard Input in the following format: s Output Print the abbreviation of s. Examples Input internationalization Output i18n Input smiles Output s4s Input xyz Output x1z
6
0
import java.util.*; public class Main { public static void main (String[] args) { Scanner sc = new Scanner(System.in); String S = sc.next(); sc.close(); String r = S.substring(0,1) + (S.length() - 2) + S.substring(S.length() - 1); System.out.println(r); } }
JAVA
p03636 AtCoder Beginner Contest 069 - i18n
The word `internationalization` is sometimes abbreviated to `i18n`. This comes from the fact that there are 18 letters between the first `i` and the last `n`. You are given a string s of length at least 3 consisting of lowercase English letters. Abbreviate s in the same way. Constraints * 3 ≤ |s| ≤ 100 (|s| denotes the length of s.) * s consists of lowercase English letters. Input Input is given from Standard Input in the following format: s Output Print the abbreviation of s. Examples Input internationalization Output i18n Input smiles Output s4s Input xyz Output x1z
6
0
import java.util.*; public class Main { public static void main (String[] args) { Scanner sc = new Scanner(System.in); String s = sc.next(); StringBuilder sb = new StringBuilder(); sb.append(s.charAt(0)).append(s.length() - 2).append(s.charAt(s.length() - 1)); System.out.println(sb); } }
JAVA
p03636 AtCoder Beginner Contest 069 - i18n
The word `internationalization` is sometimes abbreviated to `i18n`. This comes from the fact that there are 18 letters between the first `i` and the last `n`. You are given a string s of length at least 3 consisting of lowercase English letters. Abbreviate s in the same way. Constraints * 3 ≤ |s| ≤ 100 (|s| denotes the length of s.) * s consists of lowercase English letters. Input Input is given from Standard Input in the following format: s Output Print the abbreviation of s. Examples Input internationalization Output i18n Input smiles Output s4s Input xyz Output x1z
6
0
s = input() n = len(s)-2 print (s[0]+str(n)+s[-1:])
PYTHON3
p03636 AtCoder Beginner Contest 069 - i18n
The word `internationalization` is sometimes abbreviated to `i18n`. This comes from the fact that there are 18 letters between the first `i` and the last `n`. You are given a string s of length at least 3 consisting of lowercase English letters. Abbreviate s in the same way. Constraints * 3 ≤ |s| ≤ 100 (|s| denotes the length of s.) * s consists of lowercase English letters. Input Input is given from Standard Input in the following format: s Output Print the abbreviation of s. Examples Input internationalization Output i18n Input smiles Output s4s Input xyz Output x1z
6
0
s = raw_input() st = s[0] en = s[len(s) - 1] ans = "" ans += st ans += str(len(s) - 2) ans += en print ans
PYTHON
p03636 AtCoder Beginner Contest 069 - i18n
The word `internationalization` is sometimes abbreviated to `i18n`. This comes from the fact that there are 18 letters between the first `i` and the last `n`. You are given a string s of length at least 3 consisting of lowercase English letters. Abbreviate s in the same way. Constraints * 3 ≤ |s| ≤ 100 (|s| denotes the length of s.) * s consists of lowercase English letters. Input Input is given from Standard Input in the following format: s Output Print the abbreviation of s. Examples Input internationalization Output i18n Input smiles Output s4s Input xyz Output x1z
6
0
#include <bits/stdc++.h> using namespace std; int main() { string S; int N; cin>>S; N=S.size(); cout<<S.at(0)<<N-2<<S.at(N-1)<<endl; }
CPP
p03636 AtCoder Beginner Contest 069 - i18n
The word `internationalization` is sometimes abbreviated to `i18n`. This comes from the fact that there are 18 letters between the first `i` and the last `n`. You are given a string s of length at least 3 consisting of lowercase English letters. Abbreviate s in the same way. Constraints * 3 ≤ |s| ≤ 100 (|s| denotes the length of s.) * s consists of lowercase English letters. Input Input is given from Standard Input in the following format: s Output Print the abbreviation of s. Examples Input internationalization Output i18n Input smiles Output s4s Input xyz Output x1z
6
0
#include<bits/stdc++.h> using namespace std; int main() { string s;cin>>s; cout<<s[0]<<s.size()-2; cout<<s[s.size()-1]; return 0; }
CPP
p03636 AtCoder Beginner Contest 069 - i18n
The word `internationalization` is sometimes abbreviated to `i18n`. This comes from the fact that there are 18 letters between the first `i` and the last `n`. You are given a string s of length at least 3 consisting of lowercase English letters. Abbreviate s in the same way. Constraints * 3 ≤ |s| ≤ 100 (|s| denotes the length of s.) * s consists of lowercase English letters. Input Input is given from Standard Input in the following format: s Output Print the abbreviation of s. Examples Input internationalization Output i18n Input smiles Output s4s Input xyz Output x1z
6
0
a=str(input()) print(a[0]+str(len(a)-2)+a[-1])
PYTHON3
p03636 AtCoder Beginner Contest 069 - i18n
The word `internationalization` is sometimes abbreviated to `i18n`. This comes from the fact that there are 18 letters between the first `i` and the last `n`. You are given a string s of length at least 3 consisting of lowercase English letters. Abbreviate s in the same way. Constraints * 3 ≤ |s| ≤ 100 (|s| denotes the length of s.) * s consists of lowercase English letters. Input Input is given from Standard Input in the following format: s Output Print the abbreviation of s. Examples Input internationalization Output i18n Input smiles Output s4s Input xyz Output x1z
6
0
s = input() S=s[0]+str(len(s)-2)+s[len(s)-1] print(S)
PYTHON3
p03636 AtCoder Beginner Contest 069 - i18n
The word `internationalization` is sometimes abbreviated to `i18n`. This comes from the fact that there are 18 letters between the first `i` and the last `n`. You are given a string s of length at least 3 consisting of lowercase English letters. Abbreviate s in the same way. Constraints * 3 ≤ |s| ≤ 100 (|s| denotes the length of s.) * s consists of lowercase English letters. Input Input is given from Standard Input in the following format: s Output Print the abbreviation of s. Examples Input internationalization Output i18n Input smiles Output s4s Input xyz Output x1z
6
0
import java.util.*; import java.lang.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String s = sc.next(); int n = s.length() - 2; System.out.println(String.valueOf(s.charAt(0)) + n + s.charAt(s.length() - 1)); } }
JAVA
p03636 AtCoder Beginner Contest 069 - i18n
The word `internationalization` is sometimes abbreviated to `i18n`. This comes from the fact that there are 18 letters between the first `i` and the last `n`. You are given a string s of length at least 3 consisting of lowercase English letters. Abbreviate s in the same way. Constraints * 3 ≤ |s| ≤ 100 (|s| denotes the length of s.) * s consists of lowercase English letters. Input Input is given from Standard Input in the following format: s Output Print the abbreviation of s. Examples Input internationalization Output i18n Input smiles Output s4s Input xyz Output x1z
6
0
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); String s = sc.next(); String first = s.substring(0,1),last = s.substring(s.length()-1,s.length()); int a = s.length() - 2; System.out.println(first + a + last); } }
JAVA
p03636 AtCoder Beginner Contest 069 - i18n
The word `internationalization` is sometimes abbreviated to `i18n`. This comes from the fact that there are 18 letters between the first `i` and the last `n`. You are given a string s of length at least 3 consisting of lowercase English letters. Abbreviate s in the same way. Constraints * 3 ≤ |s| ≤ 100 (|s| denotes the length of s.) * s consists of lowercase English letters. Input Input is given from Standard Input in the following format: s Output Print the abbreviation of s. Examples Input internationalization Output i18n Input smiles Output s4s Input xyz Output x1z
6
0
S=input();print(S[0]+str(len(S)-2)+S[-1])
PYTHON3
p03636 AtCoder Beginner Contest 069 - i18n
The word `internationalization` is sometimes abbreviated to `i18n`. This comes from the fact that there are 18 letters between the first `i` and the last `n`. You are given a string s of length at least 3 consisting of lowercase English letters. Abbreviate s in the same way. Constraints * 3 ≤ |s| ≤ 100 (|s| denotes the length of s.) * s consists of lowercase English letters. Input Input is given from Standard Input in the following format: s Output Print the abbreviation of s. Examples Input internationalization Output i18n Input smiles Output s4s Input xyz Output x1z
6
0
s=input() n=len(s)-2 print(s[:1]+str(n)+s[-1:])
PYTHON3
p03636 AtCoder Beginner Contest 069 - i18n
The word `internationalization` is sometimes abbreviated to `i18n`. This comes from the fact that there are 18 letters between the first `i` and the last `n`. You are given a string s of length at least 3 consisting of lowercase English letters. Abbreviate s in the same way. Constraints * 3 ≤ |s| ≤ 100 (|s| denotes the length of s.) * s consists of lowercase English letters. Input Input is given from Standard Input in the following format: s Output Print the abbreviation of s. Examples Input internationalization Output i18n Input smiles Output s4s Input xyz Output x1z
6
0
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String s = sc.next(); System.out.println("" + s.charAt(0) + (s.length() - 2) + s.charAt(s.length() - 1)); sc.close(); } }
JAVA
p03636 AtCoder Beginner Contest 069 - i18n
The word `internationalization` is sometimes abbreviated to `i18n`. This comes from the fact that there are 18 letters between the first `i` and the last `n`. You are given a string s of length at least 3 consisting of lowercase English letters. Abbreviate s in the same way. Constraints * 3 ≤ |s| ≤ 100 (|s| denotes the length of s.) * s consists of lowercase English letters. Input Input is given from Standard Input in the following format: s Output Print the abbreviation of s. Examples Input internationalization Output i18n Input smiles Output s4s Input xyz Output x1z
6
0
S = input() T = len(S)-2 print(S[0]+ str(T) + S[-1])
PYTHON3
p03636 AtCoder Beginner Contest 069 - i18n
The word `internationalization` is sometimes abbreviated to `i18n`. This comes from the fact that there are 18 letters between the first `i` and the last `n`. You are given a string s of length at least 3 consisting of lowercase English letters. Abbreviate s in the same way. Constraints * 3 ≤ |s| ≤ 100 (|s| denotes the length of s.) * s consists of lowercase English letters. Input Input is given from Standard Input in the following format: s Output Print the abbreviation of s. Examples Input internationalization Output i18n Input smiles Output s4s Input xyz Output x1z
6
0
s = str(input()) print(s[0]+str((len(s)-2))+s[-1])
PYTHON3
p03636 AtCoder Beginner Contest 069 - i18n
The word `internationalization` is sometimes abbreviated to `i18n`. This comes from the fact that there are 18 letters between the first `i` and the last `n`. You are given a string s of length at least 3 consisting of lowercase English letters. Abbreviate s in the same way. Constraints * 3 ≤ |s| ≤ 100 (|s| denotes the length of s.) * s consists of lowercase English letters. Input Input is given from Standard Input in the following format: s Output Print the abbreviation of s. Examples Input internationalization Output i18n Input smiles Output s4s Input xyz Output x1z
6
0
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String s = sc.next(); int length = s.length(); System.out.println("" + s.charAt(0) + (length - 2) + s.charAt(length - 1)) ; } }
JAVA
p03636 AtCoder Beginner Contest 069 - i18n
The word `internationalization` is sometimes abbreviated to `i18n`. This comes from the fact that there are 18 letters between the first `i` and the last `n`. You are given a string s of length at least 3 consisting of lowercase English letters. Abbreviate s in the same way. Constraints * 3 ≤ |s| ≤ 100 (|s| denotes the length of s.) * s consists of lowercase English letters. Input Input is given from Standard Input in the following format: s Output Print the abbreviation of s. Examples Input internationalization Output i18n Input smiles Output s4s Input xyz Output x1z
6
0
S=input() s_num=len(S)-2 print(S[0]+str(s_num)+S[-1])
PYTHON3
p03636 AtCoder Beginner Contest 069 - i18n
The word `internationalization` is sometimes abbreviated to `i18n`. This comes from the fact that there are 18 letters between the first `i` and the last `n`. You are given a string s of length at least 3 consisting of lowercase English letters. Abbreviate s in the same way. Constraints * 3 ≤ |s| ≤ 100 (|s| denotes the length of s.) * s consists of lowercase English letters. Input Input is given from Standard Input in the following format: s Output Print the abbreviation of s. Examples Input internationalization Output i18n Input smiles Output s4s Input xyz Output x1z
6
0
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String s = sc.next(); int count = 0; String t = s.substring(1,s.length()-1); count = t.length(); System.out.println(s.substring(0,1)+count+s.substring(s.length()-1,s.length())); } }
JAVA
p03636 AtCoder Beginner Contest 069 - i18n
The word `internationalization` is sometimes abbreviated to `i18n`. This comes from the fact that there are 18 letters between the first `i` and the last `n`. You are given a string s of length at least 3 consisting of lowercase English letters. Abbreviate s in the same way. Constraints * 3 ≤ |s| ≤ 100 (|s| denotes the length of s.) * s consists of lowercase English letters. Input Input is given from Standard Input in the following format: s Output Print the abbreviation of s. Examples Input internationalization Output i18n Input smiles Output s4s Input xyz Output x1z
6
0
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String s = sc.next(); int len = s.length(); int displayLen = len - 2; System.out.println(s.charAt(0) + String.valueOf(displayLen) + s.charAt(len-1)); } }
JAVA
p03636 AtCoder Beginner Contest 069 - i18n
The word `internationalization` is sometimes abbreviated to `i18n`. This comes from the fact that there are 18 letters between the first `i` and the last `n`. You are given a string s of length at least 3 consisting of lowercase English letters. Abbreviate s in the same way. Constraints * 3 ≤ |s| ≤ 100 (|s| denotes the length of s.) * s consists of lowercase English letters. Input Input is given from Standard Input in the following format: s Output Print the abbreviation of s. Examples Input internationalization Output i18n Input smiles Output s4s Input xyz Output x1z
6
0
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); String words = sc.next(); System.out.print(words.charAt(0)); System.out.print(words.length()-2); System.out.println(words.charAt(words.length()-1)); } }
JAVA
p03636 AtCoder Beginner Contest 069 - i18n
The word `internationalization` is sometimes abbreviated to `i18n`. This comes from the fact that there are 18 letters between the first `i` and the last `n`. You are given a string s of length at least 3 consisting of lowercase English letters. Abbreviate s in the same way. Constraints * 3 ≤ |s| ≤ 100 (|s| denotes the length of s.) * s consists of lowercase English letters. Input Input is given from Standard Input in the following format: s Output Print the abbreviation of s. Examples Input internationalization Output i18n Input smiles Output s4s Input xyz Output x1z
6
0
s = input() n = len(s[1:-1]) print(s[0]+str(n)+s[-1])
PYTHON3
p03636 AtCoder Beginner Contest 069 - i18n
The word `internationalization` is sometimes abbreviated to `i18n`. This comes from the fact that there are 18 letters between the first `i` and the last `n`. You are given a string s of length at least 3 consisting of lowercase English letters. Abbreviate s in the same way. Constraints * 3 ≤ |s| ≤ 100 (|s| denotes the length of s.) * s consists of lowercase English letters. Input Input is given from Standard Input in the following format: s Output Print the abbreviation of s. Examples Input internationalization Output i18n Input smiles Output s4s Input xyz Output x1z
6
0
S=str(input()) L=len(S) print(S[0]+str(L-2)+S[L-1])
PYTHON3
p03636 AtCoder Beginner Contest 069 - i18n
The word `internationalization` is sometimes abbreviated to `i18n`. This comes from the fact that there are 18 letters between the first `i` and the last `n`. You are given a string s of length at least 3 consisting of lowercase English letters. Abbreviate s in the same way. Constraints * 3 ≤ |s| ≤ 100 (|s| denotes the length of s.) * s consists of lowercase English letters. Input Input is given from Standard Input in the following format: s Output Print the abbreviation of s. Examples Input internationalization Output i18n Input smiles Output s4s Input xyz Output x1z
6
0
i=input();print(i[0]+str(len(i)-2)+i[-1])
PYTHON3
p03636 AtCoder Beginner Contest 069 - i18n
The word `internationalization` is sometimes abbreviated to `i18n`. This comes from the fact that there are 18 letters between the first `i` and the last `n`. You are given a string s of length at least 3 consisting of lowercase English letters. Abbreviate s in the same way. Constraints * 3 ≤ |s| ≤ 100 (|s| denotes the length of s.) * s consists of lowercase English letters. Input Input is given from Standard Input in the following format: s Output Print the abbreviation of s. Examples Input internationalization Output i18n Input smiles Output s4s Input xyz Output x1z
6
0
s = input().rstrip() print(s[0]+str(len(s)-2)+s[-1])
PYTHON3
p03636 AtCoder Beginner Contest 069 - i18n
The word `internationalization` is sometimes abbreviated to `i18n`. This comes from the fact that there are 18 letters between the first `i` and the last `n`. You are given a string s of length at least 3 consisting of lowercase English letters. Abbreviate s in the same way. Constraints * 3 ≤ |s| ≤ 100 (|s| denotes the length of s.) * s consists of lowercase English letters. Input Input is given from Standard Input in the following format: s Output Print the abbreviation of s. Examples Input internationalization Output i18n Input smiles Output s4s Input xyz Output x1z
6
0
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); String s = sc.next(); System.out.println(s.split("")[0] + (s.length() - 2) + s.split("")[s.length()-1]); } }
JAVA
p03636 AtCoder Beginner Contest 069 - i18n
The word `internationalization` is sometimes abbreviated to `i18n`. This comes from the fact that there are 18 letters between the first `i` and the last `n`. You are given a string s of length at least 3 consisting of lowercase English letters. Abbreviate s in the same way. Constraints * 3 ≤ |s| ≤ 100 (|s| denotes the length of s.) * s consists of lowercase English letters. Input Input is given from Standard Input in the following format: s Output Print the abbreviation of s. Examples Input internationalization Output i18n Input smiles Output s4s Input xyz Output x1z
6
0
#include <iostream> using namespace std; int main(){ string S; cin >> S; int N = S.size(); cout << S[0] << N-2 << S[N-1] << endl; }
CPP
p03636 AtCoder Beginner Contest 069 - i18n
The word `internationalization` is sometimes abbreviated to `i18n`. This comes from the fact that there are 18 letters between the first `i` and the last `n`. You are given a string s of length at least 3 consisting of lowercase English letters. Abbreviate s in the same way. Constraints * 3 ≤ |s| ≤ 100 (|s| denotes the length of s.) * s consists of lowercase English letters. Input Input is given from Standard Input in the following format: s Output Print the abbreviation of s. Examples Input internationalization Output i18n Input smiles Output s4s Input xyz Output x1z
6
0
import java.util.*; public class Main { public static void main(String[] args){ int x=0; int y; Scanner sc = new Scanner(System.in); String a = sc.next(); String data[] = a.split(""); System.out.println(data[0]+(a.length()-2)+data[a.length()-1]); } }
JAVA
p03636 AtCoder Beginner Contest 069 - i18n
The word `internationalization` is sometimes abbreviated to `i18n`. This comes from the fact that there are 18 letters between the first `i` and the last `n`. You are given a string s of length at least 3 consisting of lowercase English letters. Abbreviate s in the same way. Constraints * 3 ≤ |s| ≤ 100 (|s| denotes the length of s.) * s consists of lowercase English letters. Input Input is given from Standard Input in the following format: s Output Print the abbreviation of s. Examples Input internationalization Output i18n Input smiles Output s4s Input xyz Output x1z
6
0
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); String str = sc.nextLine(); int n = str.length(); char h = str.charAt(0); char t = str.charAt(n-1); System.out.println(h+""+(n-2)+""+t); } }
JAVA
p03636 AtCoder Beginner Contest 069 - i18n
The word `internationalization` is sometimes abbreviated to `i18n`. This comes from the fact that there are 18 letters between the first `i` and the last `n`. You are given a string s of length at least 3 consisting of lowercase English letters. Abbreviate s in the same way. Constraints * 3 ≤ |s| ≤ 100 (|s| denotes the length of s.) * s consists of lowercase English letters. Input Input is given from Standard Input in the following format: s Output Print the abbreviation of s. Examples Input internationalization Output i18n Input smiles Output s4s Input xyz Output x1z
6
0
w=input() print(w[0]+str(len(w)-2)+w[len(w)-1])
PYTHON3
p03636 AtCoder Beginner Contest 069 - i18n
The word `internationalization` is sometimes abbreviated to `i18n`. This comes from the fact that there are 18 letters between the first `i` and the last `n`. You are given a string s of length at least 3 consisting of lowercase English letters. Abbreviate s in the same way. Constraints * 3 ≤ |s| ≤ 100 (|s| denotes the length of s.) * s consists of lowercase English letters. Input Input is given from Standard Input in the following format: s Output Print the abbreviation of s. Examples Input internationalization Output i18n Input smiles Output s4s Input xyz Output x1z
6
0
#include <bits/stdc++.h> using namespace std; int main() { string S; cin >> S; cout << S[0] << S.size()-2 << S.back() << endl; }
CPP
p03636 AtCoder Beginner Contest 069 - i18n
The word `internationalization` is sometimes abbreviated to `i18n`. This comes from the fact that there are 18 letters between the first `i` and the last `n`. You are given a string s of length at least 3 consisting of lowercase English letters. Abbreviate s in the same way. Constraints * 3 ≤ |s| ≤ 100 (|s| denotes the length of s.) * s consists of lowercase English letters. Input Input is given from Standard Input in the following format: s Output Print the abbreviation of s. Examples Input internationalization Output i18n Input smiles Output s4s Input xyz Output x1z
6
0
s=input() n=int(len(s)) print(s[0]+str(n-2)+s[n-1])
PYTHON3
p03636 AtCoder Beginner Contest 069 - i18n
The word `internationalization` is sometimes abbreviated to `i18n`. This comes from the fact that there are 18 letters between the first `i` and the last `n`. You are given a string s of length at least 3 consisting of lowercase English letters. Abbreviate s in the same way. Constraints * 3 ≤ |s| ≤ 100 (|s| denotes the length of s.) * s consists of lowercase English letters. Input Input is given from Standard Input in the following format: s Output Print the abbreviation of s. Examples Input internationalization Output i18n Input smiles Output s4s Input xyz Output x1z
6
0
#include <bits/stdc++.h> using namespace std; string s; int main() { cin>>s; cout<<s[0]<<s.length()-2<<s[s.length()-1]; }
CPP
p03636 AtCoder Beginner Contest 069 - i18n
The word `internationalization` is sometimes abbreviated to `i18n`. This comes from the fact that there are 18 letters between the first `i` and the last `n`. You are given a string s of length at least 3 consisting of lowercase English letters. Abbreviate s in the same way. Constraints * 3 ≤ |s| ≤ 100 (|s| denotes the length of s.) * s consists of lowercase English letters. Input Input is given from Standard Input in the following format: s Output Print the abbreviation of s. Examples Input internationalization Output i18n Input smiles Output s4s Input xyz Output x1z
6
0
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); String str = in.nextLine(); int size = str.length() - 2; System.out.println(str.substring(0, 1) + size + str.substring(str.length() - 1)); } }
JAVA
p03636 AtCoder Beginner Contest 069 - i18n
The word `internationalization` is sometimes abbreviated to `i18n`. This comes from the fact that there are 18 letters between the first `i` and the last `n`. You are given a string s of length at least 3 consisting of lowercase English letters. Abbreviate s in the same way. Constraints * 3 ≤ |s| ≤ 100 (|s| denotes the length of s.) * s consists of lowercase English letters. Input Input is given from Standard Input in the following format: s Output Print the abbreviation of s. Examples Input internationalization Output i18n Input smiles Output s4s Input xyz Output x1z
6
0
import java.util.Scanner; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); String a = sc.next(); System.out.println(a.substring(0,1)+(a.length()-2)+a.substring(a.length()-1)); } }
JAVA
p03636 AtCoder Beginner Contest 069 - i18n
The word `internationalization` is sometimes abbreviated to `i18n`. This comes from the fact that there are 18 letters between the first `i` and the last `n`. You are given a string s of length at least 3 consisting of lowercase English letters. Abbreviate s in the same way. Constraints * 3 ≤ |s| ≤ 100 (|s| denotes the length of s.) * s consists of lowercase English letters. Input Input is given from Standard Input in the following format: s Output Print the abbreviation of s. Examples Input internationalization Output i18n Input smiles Output s4s Input xyz Output x1z
6
0
#include<iostream> using namespace std; int l; string a; int main() { cin>>a; l=a.size(); cout<<a[0]<<l-2<<a[l-1]; }
CPP
p03636 AtCoder Beginner Contest 069 - i18n
The word `internationalization` is sometimes abbreviated to `i18n`. This comes from the fact that there are 18 letters between the first `i` and the last `n`. You are given a string s of length at least 3 consisting of lowercase English letters. Abbreviate s in the same way. Constraints * 3 ≤ |s| ≤ 100 (|s| denotes the length of s.) * s consists of lowercase English letters. Input Input is given from Standard Input in the following format: s Output Print the abbreviation of s. Examples Input internationalization Output i18n Input smiles Output s4s Input xyz Output x1z
6
0
s = input() print(s[0] + str((len(s) - 2)) + s[-1])
PYTHON3
p03636 AtCoder Beginner Contest 069 - i18n
The word `internationalization` is sometimes abbreviated to `i18n`. This comes from the fact that there are 18 letters between the first `i` and the last `n`. You are given a string s of length at least 3 consisting of lowercase English letters. Abbreviate s in the same way. Constraints * 3 ≤ |s| ≤ 100 (|s| denotes the length of s.) * s consists of lowercase English letters. Input Input is given from Standard Input in the following format: s Output Print the abbreviation of s. Examples Input internationalization Output i18n Input smiles Output s4s Input xyz Output x1z
6
0
#!/usr/bin/python import sys s = sys.stdin.readline().strip() l = len(s) a = s[0] + str(l - 2) + s[-1] print(a)
PYTHON
p03636 AtCoder Beginner Contest 069 - i18n
The word `internationalization` is sometimes abbreviated to `i18n`. This comes from the fact that there are 18 letters between the first `i` and the last `n`. You are given a string s of length at least 3 consisting of lowercase English letters. Abbreviate s in the same way. Constraints * 3 ≤ |s| ≤ 100 (|s| denotes the length of s.) * s consists of lowercase English letters. Input Input is given from Standard Input in the following format: s Output Print the abbreviation of s. Examples Input internationalization Output i18n Input smiles Output s4s Input xyz Output x1z
6
0
s = raw_input() print s[0] + str(len(s[1:-1])) + s[-1]
PYTHON
p03636 AtCoder Beginner Contest 069 - i18n
The word `internationalization` is sometimes abbreviated to `i18n`. This comes from the fact that there are 18 letters between the first `i` and the last `n`. You are given a string s of length at least 3 consisting of lowercase English letters. Abbreviate s in the same way. Constraints * 3 ≤ |s| ≤ 100 (|s| denotes the length of s.) * s consists of lowercase English letters. Input Input is given from Standard Input in the following format: s Output Print the abbreviation of s. Examples Input internationalization Output i18n Input smiles Output s4s Input xyz Output x1z
6
0
#include<bits/stdc++.h> using namespace std; int main() { string s; cin>>s; cout<<s[0]<<(s.size()-2)<<s[s.size()-1]<<endl; return 0; }
CPP
p03636 AtCoder Beginner Contest 069 - i18n
The word `internationalization` is sometimes abbreviated to `i18n`. This comes from the fact that there are 18 letters between the first `i` and the last `n`. You are given a string s of length at least 3 consisting of lowercase English letters. Abbreviate s in the same way. Constraints * 3 ≤ |s| ≤ 100 (|s| denotes the length of s.) * s consists of lowercase English letters. Input Input is given from Standard Input in the following format: s Output Print the abbreviation of s. Examples Input internationalization Output i18n Input smiles Output s4s Input xyz Output x1z
6
0
#include<bits/stdc++.h> using namespace std; int main(){ string S;cin>>S; int l=S.size(); cout<<S.at(0)<<l-2<<S.at(l-1)<<endl; }
CPP
p03636 AtCoder Beginner Contest 069 - i18n
The word `internationalization` is sometimes abbreviated to `i18n`. This comes from the fact that there are 18 letters between the first `i` and the last `n`. You are given a string s of length at least 3 consisting of lowercase English letters. Abbreviate s in the same way. Constraints * 3 ≤ |s| ≤ 100 (|s| denotes the length of s.) * s consists of lowercase English letters. Input Input is given from Standard Input in the following format: s Output Print the abbreviation of s. Examples Input internationalization Output i18n Input smiles Output s4s Input xyz Output x1z
6
0
S=input() A=str(len(S)-2) print(S[0]+A+S[len(S)-1])
PYTHON3
p03636 AtCoder Beginner Contest 069 - i18n
The word `internationalization` is sometimes abbreviated to `i18n`. This comes from the fact that there are 18 letters between the first `i` and the last `n`. You are given a string s of length at least 3 consisting of lowercase English letters. Abbreviate s in the same way. Constraints * 3 ≤ |s| ≤ 100 (|s| denotes the length of s.) * s consists of lowercase English letters. Input Input is given from Standard Input in the following format: s Output Print the abbreviation of s. Examples Input internationalization Output i18n Input smiles Output s4s Input xyz Output x1z
6
0
a,*list,b = input() print(a+str(len(list))+b)
PYTHON3
p03636 AtCoder Beginner Contest 069 - i18n
The word `internationalization` is sometimes abbreviated to `i18n`. This comes from the fact that there are 18 letters between the first `i` and the last `n`. You are given a string s of length at least 3 consisting of lowercase English letters. Abbreviate s in the same way. Constraints * 3 ≤ |s| ≤ 100 (|s| denotes the length of s.) * s consists of lowercase English letters. Input Input is given from Standard Input in the following format: s Output Print the abbreviation of s. Examples Input internationalization Output i18n Input smiles Output s4s Input xyz Output x1z
6
0
#include<iostream> using namespace std; int main(){ string a; cin>>a; cout << a[0] << a.size()-2 << a[a.size()-1] << endl; }
CPP
p03636 AtCoder Beginner Contest 069 - i18n
The word `internationalization` is sometimes abbreviated to `i18n`. This comes from the fact that there are 18 letters between the first `i` and the last `n`. You are given a string s of length at least 3 consisting of lowercase English letters. Abbreviate s in the same way. Constraints * 3 ≤ |s| ≤ 100 (|s| denotes the length of s.) * s consists of lowercase English letters. Input Input is given from Standard Input in the following format: s Output Print the abbreviation of s. Examples Input internationalization Output i18n Input smiles Output s4s Input xyz Output x1z
6
0
#!usr/bim/python #! -*- coding: utf-8 -*- s = raw_input() n = len(s) ans = s[0] + str(n-2) + s[n-1] print ans
PYTHON
p03636 AtCoder Beginner Contest 069 - i18n
The word `internationalization` is sometimes abbreviated to `i18n`. This comes from the fact that there are 18 letters between the first `i` and the last `n`. You are given a string s of length at least 3 consisting of lowercase English letters. Abbreviate s in the same way. Constraints * 3 ≤ |s| ≤ 100 (|s| denotes the length of s.) * s consists of lowercase English letters. Input Input is given from Standard Input in the following format: s Output Print the abbreviation of s. Examples Input internationalization Output i18n Input smiles Output s4s Input xyz Output x1z
6
0
s = input() num=str(len(s)-2) print(s[0]+num+s[-1])
PYTHON3
p03636 AtCoder Beginner Contest 069 - i18n
The word `internationalization` is sometimes abbreviated to `i18n`. This comes from the fact that there are 18 letters between the first `i` and the last `n`. You are given a string s of length at least 3 consisting of lowercase English letters. Abbreviate s in the same way. Constraints * 3 ≤ |s| ≤ 100 (|s| denotes the length of s.) * s consists of lowercase English letters. Input Input is given from Standard Input in the following format: s Output Print the abbreviation of s. Examples Input internationalization Output i18n Input smiles Output s4s Input xyz Output x1z
6
0
s=input() a=s[0]+str(len(s)-2)+s[len(s)-1] print(a)
PYTHON3
p03636 AtCoder Beginner Contest 069 - i18n
The word `internationalization` is sometimes abbreviated to `i18n`. This comes from the fact that there are 18 letters between the first `i` and the last `n`. You are given a string s of length at least 3 consisting of lowercase English letters. Abbreviate s in the same way. Constraints * 3 ≤ |s| ≤ 100 (|s| denotes the length of s.) * s consists of lowercase English letters. Input Input is given from Standard Input in the following format: s Output Print the abbreviation of s. Examples Input internationalization Output i18n Input smiles Output s4s Input xyz Output x1z
6
0
N = input() print(N[0]+str(len(N)-2)+N[len(N)-1])
PYTHON3
p03636 AtCoder Beginner Contest 069 - i18n
The word `internationalization` is sometimes abbreviated to `i18n`. This comes from the fact that there are 18 letters between the first `i` and the last `n`. You are given a string s of length at least 3 consisting of lowercase English letters. Abbreviate s in the same way. Constraints * 3 ≤ |s| ≤ 100 (|s| denotes the length of s.) * s consists of lowercase English letters. Input Input is given from Standard Input in the following format: s Output Print the abbreviation of s. Examples Input internationalization Output i18n Input smiles Output s4s Input xyz Output x1z
6
0
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); String S = sc.next(); int n = S.length()-2; System.out.println(S.substring(0,1)+String.valueOf(n)+S.substring(n+1,n+2)); } }
JAVA
p03636 AtCoder Beginner Contest 069 - i18n
The word `internationalization` is sometimes abbreviated to `i18n`. This comes from the fact that there are 18 letters between the first `i` and the last `n`. You are given a string s of length at least 3 consisting of lowercase English letters. Abbreviate s in the same way. Constraints * 3 ≤ |s| ≤ 100 (|s| denotes the length of s.) * s consists of lowercase English letters. Input Input is given from Standard Input in the following format: s Output Print the abbreviation of s. Examples Input internationalization Output i18n Input smiles Output s4s Input xyz Output x1z
6
0
#include <iostream> using namespace std; int main(){ string s; cin>>s; cout<<s[0]<<s.length()-2<<s[s.length()-1]; return 0; }
CPP
p03636 AtCoder Beginner Contest 069 - i18n
The word `internationalization` is sometimes abbreviated to `i18n`. This comes from the fact that there are 18 letters between the first `i` and the last `n`. You are given a string s of length at least 3 consisting of lowercase English letters. Abbreviate s in the same way. Constraints * 3 ≤ |s| ≤ 100 (|s| denotes the length of s.) * s consists of lowercase English letters. Input Input is given from Standard Input in the following format: s Output Print the abbreviation of s. Examples Input internationalization Output i18n Input smiles Output s4s Input xyz Output x1z
6
0
S=str(input()) print(S[0]+str(len(S)-2)+S[len(S)-1])
PYTHON3
p03636 AtCoder Beginner Contest 069 - i18n
The word `internationalization` is sometimes abbreviated to `i18n`. This comes from the fact that there are 18 letters between the first `i` and the last `n`. You are given a string s of length at least 3 consisting of lowercase English letters. Abbreviate s in the same way. Constraints * 3 ≤ |s| ≤ 100 (|s| denotes the length of s.) * s consists of lowercase English letters. Input Input is given from Standard Input in the following format: s Output Print the abbreviation of s. Examples Input internationalization Output i18n Input smiles Output s4s Input xyz Output x1z
6
0
#include <bits/stdc++.h> using namespace std; int main() { string A; cin >> A; cout << A[0]<< A.size()-2 <<A[A.size()-1] << endl; }
CPP
p03636 AtCoder Beginner Contest 069 - i18n
The word `internationalization` is sometimes abbreviated to `i18n`. This comes from the fact that there are 18 letters between the first `i` and the last `n`. You are given a string s of length at least 3 consisting of lowercase English letters. Abbreviate s in the same way. Constraints * 3 ≤ |s| ≤ 100 (|s| denotes the length of s.) * s consists of lowercase English letters. Input Input is given from Standard Input in the following format: s Output Print the abbreviation of s. Examples Input internationalization Output i18n Input smiles Output s4s Input xyz Output x1z
6
0
#include<bits/stdc++.h> using namespace std; int main(){ string s; cin >> s; cout << s[0] << s.length()-2 << s[s.length()-1]; }
CPP
p03636 AtCoder Beginner Contest 069 - i18n
The word `internationalization` is sometimes abbreviated to `i18n`. This comes from the fact that there are 18 letters between the first `i` and the last `n`. You are given a string s of length at least 3 consisting of lowercase English letters. Abbreviate s in the same way. Constraints * 3 ≤ |s| ≤ 100 (|s| denotes the length of s.) * s consists of lowercase English letters. Input Input is given from Standard Input in the following format: s Output Print the abbreviation of s. Examples Input internationalization Output i18n Input smiles Output s4s Input xyz Output x1z
6
0
#include<bits/stdc++.h> using namespace std; int main(){ char a[2000]; int len,i; cin>>a; len=strlen(a); cout<<a[0]<<len-2<<a[len-1]; }
CPP
p03636 AtCoder Beginner Contest 069 - i18n
The word `internationalization` is sometimes abbreviated to `i18n`. This comes from the fact that there are 18 letters between the first `i` and the last `n`. You are given a string s of length at least 3 consisting of lowercase English letters. Abbreviate s in the same way. Constraints * 3 ≤ |s| ≤ 100 (|s| denotes the length of s.) * s consists of lowercase English letters. Input Input is given from Standard Input in the following format: s Output Print the abbreviation of s. Examples Input internationalization Output i18n Input smiles Output s4s Input xyz Output x1z
6
0
#include <bits/stdc++.h> using namespace std; int main() { string a; cin>>a; int b=a.size(); cout<<a[0]<<b-2<<a[b-1]<<endl; }
CPP
p03636 AtCoder Beginner Contest 069 - i18n
The word `internationalization` is sometimes abbreviated to `i18n`. This comes from the fact that there are 18 letters between the first `i` and the last `n`. You are given a string s of length at least 3 consisting of lowercase English letters. Abbreviate s in the same way. Constraints * 3 ≤ |s| ≤ 100 (|s| denotes the length of s.) * s consists of lowercase English letters. Input Input is given from Standard Input in the following format: s Output Print the abbreviation of s. Examples Input internationalization Output i18n Input smiles Output s4s Input xyz Output x1z
6
0
n = input() print(n[0] + str((len(n)- 2)) + n[-1])
PYTHON3
p03636 AtCoder Beginner Contest 069 - i18n
The word `internationalization` is sometimes abbreviated to `i18n`. This comes from the fact that there are 18 letters between the first `i` and the last `n`. You are given a string s of length at least 3 consisting of lowercase English letters. Abbreviate s in the same way. Constraints * 3 ≤ |s| ≤ 100 (|s| denotes the length of s.) * s consists of lowercase English letters. Input Input is given from Standard Input in the following format: s Output Print the abbreviation of s. Examples Input internationalization Output i18n Input smiles Output s4s Input xyz Output x1z
6
0
n=input() print(n[0:1]+str(len(n)-2)+n[len(n)-1:])
PYTHON3
p03636 AtCoder Beginner Contest 069 - i18n
The word `internationalization` is sometimes abbreviated to `i18n`. This comes from the fact that there are 18 letters between the first `i` and the last `n`. You are given a string s of length at least 3 consisting of lowercase English letters. Abbreviate s in the same way. Constraints * 3 ≤ |s| ≤ 100 (|s| denotes the length of s.) * s consists of lowercase English letters. Input Input is given from Standard Input in the following format: s Output Print the abbreviation of s. Examples Input internationalization Output i18n Input smiles Output s4s Input xyz Output x1z
6
0
#include<bits/stdc++.h> using namespace std; string s; int lens; int main(){ cin>>s; lens=s.size(); cout<<s[0]<<lens-2<<s[lens-1]<<endl; }
CPP
p03636 AtCoder Beginner Contest 069 - i18n
The word `internationalization` is sometimes abbreviated to `i18n`. This comes from the fact that there are 18 letters between the first `i` and the last `n`. You are given a string s of length at least 3 consisting of lowercase English letters. Abbreviate s in the same way. Constraints * 3 ≤ |s| ≤ 100 (|s| denotes the length of s.) * s consists of lowercase English letters. Input Input is given from Standard Input in the following format: s Output Print the abbreviation of s. Examples Input internationalization Output i18n Input smiles Output s4s Input xyz Output x1z
6
0
#include<iostream> using namespace std; int main() { string s; int i; cin>>s; cout<<s[0]<<s.length()-2<<s[s.length()-1]<<endl; }
CPP
p03636 AtCoder Beginner Contest 069 - i18n
The word `internationalization` is sometimes abbreviated to `i18n`. This comes from the fact that there are 18 letters between the first `i` and the last `n`. You are given a string s of length at least 3 consisting of lowercase English letters. Abbreviate s in the same way. Constraints * 3 ≤ |s| ≤ 100 (|s| denotes the length of s.) * s consists of lowercase English letters. Input Input is given from Standard Input in the following format: s Output Print the abbreviation of s. Examples Input internationalization Output i18n Input smiles Output s4s Input xyz Output x1z
6
0
import java.util.Scanner; public class Main { public static void main(String[] args) { String input=new Scanner(System.in).nextLine(); String output=input.substring(0,1)+(input.length()-2)+input.substring(input.length()-1); System.out.println(output); } }
JAVA
p03636 AtCoder Beginner Contest 069 - i18n
The word `internationalization` is sometimes abbreviated to `i18n`. This comes from the fact that there are 18 letters between the first `i` and the last `n`. You are given a string s of length at least 3 consisting of lowercase English letters. Abbreviate s in the same way. Constraints * 3 ≤ |s| ≤ 100 (|s| denotes the length of s.) * s consists of lowercase English letters. Input Input is given from Standard Input in the following format: s Output Print the abbreviation of s. Examples Input internationalization Output i18n Input smiles Output s4s Input xyz Output x1z
6
0
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); String s = scanner.next(); System.out.println(String.valueOf(s.charAt(0)) + (s.length() - 2) + String.valueOf(s.charAt(s.length()-1))); } }
JAVA
p03636 AtCoder Beginner Contest 069 - i18n
The word `internationalization` is sometimes abbreviated to `i18n`. This comes from the fact that there are 18 letters between the first `i` and the last `n`. You are given a string s of length at least 3 consisting of lowercase English letters. Abbreviate s in the same way. Constraints * 3 ≤ |s| ≤ 100 (|s| denotes the length of s.) * s consists of lowercase English letters. Input Input is given from Standard Input in the following format: s Output Print the abbreviation of s. Examples Input internationalization Output i18n Input smiles Output s4s Input xyz Output x1z
6
0
x,*y,z=input() print(x+str(len(y))+z)
PYTHON3
p03636 AtCoder Beginner Contest 069 - i18n
The word `internationalization` is sometimes abbreviated to `i18n`. This comes from the fact that there are 18 letters between the first `i` and the last `n`. You are given a string s of length at least 3 consisting of lowercase English letters. Abbreviate s in the same way. Constraints * 3 ≤ |s| ≤ 100 (|s| denotes the length of s.) * s consists of lowercase English letters. Input Input is given from Standard Input in the following format: s Output Print the abbreviation of s. Examples Input internationalization Output i18n Input smiles Output s4s Input xyz Output x1z
6
0
import java.io.IOException; import java.util.Scanner; public class Main { public static void main(String[] args) throws NumberFormatException, IOException { Scanner sc = new Scanner(System.in); String s = sc.next(); int len = s.length(); System.out.println(s.substring(0,1) + (len - 2) + s.substring(len - 1, len)); } }
JAVA
p03636 AtCoder Beginner Contest 069 - i18n
The word `internationalization` is sometimes abbreviated to `i18n`. This comes from the fact that there are 18 letters between the first `i` and the last `n`. You are given a string s of length at least 3 consisting of lowercase English letters. Abbreviate s in the same way. Constraints * 3 ≤ |s| ≤ 100 (|s| denotes the length of s.) * s consists of lowercase English letters. Input Input is given from Standard Input in the following format: s Output Print the abbreviation of s. Examples Input internationalization Output i18n Input smiles Output s4s Input xyz Output x1z
6
0
import java.util.Scanner; public class Main { public static void main(String[] args) { try (Scanner sc = new Scanner(System.in)) { String s = sc.next(); StringBuilder sb = new StringBuilder(); sb.append(s.charAt(0)); sb.append(s.length() - 2); sb.append(s.charAt(s.length() - 1)); System.out.println(sb); } } }
JAVA
p03636 AtCoder Beginner Contest 069 - i18n
The word `internationalization` is sometimes abbreviated to `i18n`. This comes from the fact that there are 18 letters between the first `i` and the last `n`. You are given a string s of length at least 3 consisting of lowercase English letters. Abbreviate s in the same way. Constraints * 3 ≤ |s| ≤ 100 (|s| denotes the length of s.) * s consists of lowercase English letters. Input Input is given from Standard Input in the following format: s Output Print the abbreviation of s. Examples Input internationalization Output i18n Input smiles Output s4s Input xyz Output x1z
6
0
s = raw_input() s = s[0] + str(len(s)-2) + s[-1] print(s)
PYTHON
p03636 AtCoder Beginner Contest 069 - i18n
The word `internationalization` is sometimes abbreviated to `i18n`. This comes from the fact that there are 18 letters between the first `i` and the last `n`. You are given a string s of length at least 3 consisting of lowercase English letters. Abbreviate s in the same way. Constraints * 3 ≤ |s| ≤ 100 (|s| denotes the length of s.) * s consists of lowercase English letters. Input Input is given from Standard Input in the following format: s Output Print the abbreviation of s. Examples Input internationalization Output i18n Input smiles Output s4s Input xyz Output x1z
6
0
# vim: set fileencoding=utf-8 : def main(): s = str(raw_input()) print(s[0] + str(len(s[0:-2])) + s[-1]) if __name__ == "__main__": main()
PYTHON
p03636 AtCoder Beginner Contest 069 - i18n
The word `internationalization` is sometimes abbreviated to `i18n`. This comes from the fact that there are 18 letters between the first `i` and the last `n`. You are given a string s of length at least 3 consisting of lowercase English letters. Abbreviate s in the same way. Constraints * 3 ≤ |s| ≤ 100 (|s| denotes the length of s.) * s consists of lowercase English letters. Input Input is given from Standard Input in the following format: s Output Print the abbreviation of s. Examples Input internationalization Output i18n Input smiles Output s4s Input xyz Output x1z
6
0
s=input() print(s[0],len(s)-2,s[len(s)-1],sep='')
PYTHON3
p03636 AtCoder Beginner Contest 069 - i18n
The word `internationalization` is sometimes abbreviated to `i18n`. This comes from the fact that there are 18 letters between the first `i` and the last `n`. You are given a string s of length at least 3 consisting of lowercase English letters. Abbreviate s in the same way. Constraints * 3 ≤ |s| ≤ 100 (|s| denotes the length of s.) * s consists of lowercase English letters. Input Input is given from Standard Input in the following format: s Output Print the abbreviation of s. Examples Input internationalization Output i18n Input smiles Output s4s Input xyz Output x1z
6
0
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String s = sc.next(); int len = s.length(); System.out.print(s.charAt(0)); System.out.print(len-2); System.out.println(s.charAt(len-1)); sc.close(); } }
JAVA
p03636 AtCoder Beginner Contest 069 - i18n
The word `internationalization` is sometimes abbreviated to `i18n`. This comes from the fact that there are 18 letters between the first `i` and the last `n`. You are given a string s of length at least 3 consisting of lowercase English letters. Abbreviate s in the same way. Constraints * 3 ≤ |s| ≤ 100 (|s| denotes the length of s.) * s consists of lowercase English letters. Input Input is given from Standard Input in the following format: s Output Print the abbreviation of s. Examples Input internationalization Output i18n Input smiles Output s4s Input xyz Output x1z
6
0
import java.util.*; public class Main{ static public void main(String[] args){ Scanner scan=new Scanner(System.in); String a=null; a=scan.next(); System.out.print(a.charAt(0)); System.out.print(a.length()-2); System.out.println(a.charAt(a.length()-1)); } }
JAVA
p03636 AtCoder Beginner Contest 069 - i18n
The word `internationalization` is sometimes abbreviated to `i18n`. This comes from the fact that there are 18 letters between the first `i` and the last `n`. You are given a string s of length at least 3 consisting of lowercase English letters. Abbreviate s in the same way. Constraints * 3 ≤ |s| ≤ 100 (|s| denotes the length of s.) * s consists of lowercase English letters. Input Input is given from Standard Input in the following format: s Output Print the abbreviation of s. Examples Input internationalization Output i18n Input smiles Output s4s Input xyz Output x1z
6
0
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); String tmp = sc.next(); //int tmp = sc.nextInt(); //Long tmp = sc.nextLong(); System.out.println(tmp.substring(0,1) + (tmp.length() - 2) + tmp.substring(tmp.length() - 1,tmp.length())); } }
JAVA
p03636 AtCoder Beginner Contest 069 - i18n
The word `internationalization` is sometimes abbreviated to `i18n`. This comes from the fact that there are 18 letters between the first `i` and the last `n`. You are given a string s of length at least 3 consisting of lowercase English letters. Abbreviate s in the same way. Constraints * 3 ≤ |s| ≤ 100 (|s| denotes the length of s.) * s consists of lowercase English letters. Input Input is given from Standard Input in the following format: s Output Print the abbreviation of s. Examples Input internationalization Output i18n Input smiles Output s4s Input xyz Output x1z
6
0
n = input() print(n[0] + str(len(n[1:-1])) + n[-1])
PYTHON3
p03636 AtCoder Beginner Contest 069 - i18n
The word `internationalization` is sometimes abbreviated to `i18n`. This comes from the fact that there are 18 letters between the first `i` and the last `n`. You are given a string s of length at least 3 consisting of lowercase English letters. Abbreviate s in the same way. Constraints * 3 ≤ |s| ≤ 100 (|s| denotes the length of s.) * s consists of lowercase English letters. Input Input is given from Standard Input in the following format: s Output Print the abbreviation of s. Examples Input internationalization Output i18n Input smiles Output s4s Input xyz Output x1z
6
0
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); String input = scan.nextLine(); int length = input.length(); System.out.println(input.charAt(0) + String.valueOf(length - 2) + input.charAt(length - 1)); } }
JAVA
p03636 AtCoder Beginner Contest 069 - i18n
The word `internationalization` is sometimes abbreviated to `i18n`. This comes from the fact that there are 18 letters between the first `i` and the last `n`. You are given a string s of length at least 3 consisting of lowercase English letters. Abbreviate s in the same way. Constraints * 3 ≤ |s| ≤ 100 (|s| denotes the length of s.) * s consists of lowercase English letters. Input Input is given from Standard Input in the following format: s Output Print the abbreviation of s. Examples Input internationalization Output i18n Input smiles Output s4s Input xyz Output x1z
6
0
#include<bits/stdc++.h> using namespace std; string s; int main(){ cin>>s; cout<<s[0]<<s.size()-2<<s[s.size()-1]<<"\n"; return 0; }
CPP
p03636 AtCoder Beginner Contest 069 - i18n
The word `internationalization` is sometimes abbreviated to `i18n`. This comes from the fact that there are 18 letters between the first `i` and the last `n`. You are given a string s of length at least 3 consisting of lowercase English letters. Abbreviate s in the same way. Constraints * 3 ≤ |s| ≤ 100 (|s| denotes the length of s.) * s consists of lowercase English letters. Input Input is given from Standard Input in the following format: s Output Print the abbreviation of s. Examples Input internationalization Output i18n Input smiles Output s4s Input xyz Output x1z
6
0
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); String s = scan.next(); int len = s.length(); System.out.println(s.charAt(0)+""+(len-2)+""+s.charAt(len-1)); } }
JAVA