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
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
#include<iostream> using namespace std; int M; int main(void){ cin>>M; cout<<48-M; return 0; }
CPP
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
print(str(48-int(input())))
PYTHON3
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
print((48-int(input())))
PYTHON3
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
n = int(input()) print(48 - n, flush=True)
PYTHON3
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
#include <iostream> using namespace std; int main() { int n; cin >> n; cout << 48 - n; return 0; }
CPP
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
#include <cstdio> int H; int main() { scanf("%d", &H); printf("%d\n", 48-H); return 0; }
CPP
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
m=input() print (48-m)
PYTHON
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
#include <bits/stdc++.h> using namespace std; int main(){ int N; cin >>N; cout << 24+24-N; }
CPP
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
#include <iostream> using namespace std; int main() { int x = 0; cin >> x; cout << 48 - x; }
CPP
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
import java.util.*; public class Main { Scanner in = new Scanner(System.in); public void run() { System.out.println(48 - in.nextInt()); } public static void main(String[] args) { new Main().run(); } }
JAVA
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
#include<bits/stdc++.h> using namespace std; int main(){ int i; cin>>i; cout<<48-i<<endl; }
CPP
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int m = sc.nextInt(); System.out.print(24 + (24 - m)); } }
JAVA
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int m = sc.nextInt(); System.out.println(24-m+24); } }
JAVA
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
print(21+27-int(input()))
PYTHON3
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
x=int(input()) print((24-x)+24)
PYTHON3
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
#ABC085 n = int(input()) print(48-n)
PYTHON3
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
m = input() ans = 48-int(m) print(ans)
PYTHON3
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
M = int(input()) A = 24+24-M print(A)
PYTHON3
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
#include<iostream> using namespace std; int main(){ int a; cin>>a; cout<<(24-a)+24<<endl; return 0; }
CPP
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
num = int(input()) print(24-num+24)
PYTHON3
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int M = sc.nextInt(); int x = 48 - M; System.out.println(x); } }
JAVA
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
import java.util.Scanner; public class Main { public static void main(String[] args) { @SuppressWarnings("resource") Scanner stdin = new Scanner(System.in); int inM = stdin.nextInt(); System.out.println(48 - inM); } }
JAVA
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
import java.util.*; class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int m = Integer.parseInt(scanner.nextLine()); System.out.println(48 - m); } }
JAVA
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int x = sc.nextInt(); int t = (24 - x) + 24; System.out.println(t); } }
JAVA
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
M = int(input("")) print(48-M)
PYTHON3
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
#include <bits/stdc++.h> using namespace std; int main() { int a; cin >> a ; cout << 48 - a; }
CPP
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
#include <bits/stdc++.h> using namespace std; int main(){ int x; cin >> x; cout << 24+24-x; }
CPP
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
#include<iostream> int main(){ int M; std::cin >> M; std::cout << 24 - M + 24; }
CPP
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int M = sc.nextInt(); System.out.println(24 - M + 24); } }
JAVA
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
M = int(raw_input()) print 24 + (24 - M)
PYTHON
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
#include<bits/stdc++.h> using namespace std; int main() { int a; cin>>a; printf("%d\n",48-a); }
CPP
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
#include<stdio.h> int main(){ int m; scanf("%d",&m); printf("%d",48-m); return 0; }
CPP
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
#include <iostream> using namespace std; int main() { int a; cin >> a; cout << 48-a<< endl; }
CPP
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
#include<cstdio> int main(){ int m;scanf("%d",&m); printf("%d",48-m); return 0; }
CPP
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
#include<bits/stdc++.h> using namespace std; int main(void){ int M; cin>>M; cout<<48-M; }
CPP
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
import java.util.Scanner; class Main{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); System.out.println(48-n); } }
JAVA
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
import java.util.*; class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int x = Integer.parseInt(scan.next()); int hour = 24; hour = hour + 24 - x; System.out.println(hour); } }
JAVA
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
first = input() m = int(first) print(48-m)
PYTHON3
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
# coding: utf-8 M = int(raw_input()) print 48-M
PYTHON
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
hours = int(input()) print(48-hours)
PYTHON3
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
#include <bits/stdc++.h> using namespace std; int main() { int x; cin>>x; cout<<(24-x)+24; }
CPP
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
#include <iostream> using namespace std; int main(){ int hour; cin >> hour; cout << 48 - hour; }
CPP
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
import java.util.*; public class Main{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); System.out.println(48 - N); } }
JAVA
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
#include<iostream> using namespace std; int main(){ int m; cin >> m; cout << (48 - m); return 0; }
CPP
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
import java.util.*; import java.io.*; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int M = Integer.parseInt(br.readLine()); System.out.println(48-M); } }
JAVA
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
#include<iostream> using namespace std; int main(){ int M=0; cin>>M; cout<<24+24-M<<endl; }
CPP
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
import java.util.Scanner; public class Main{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); int M = sc.nextInt(); System.out.println(24+24-M); } }
JAVA
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.println(48-sc.nextInt()); sc.close(); } }
JAVA
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
#include <bits/stdc++.h> using namespace std; int main() { int a; cin>>a; cout<<24*2-a<<endl; }
CPP
p03473 AtCoder Beginner Contest 084 - New Year
How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December? Constraints * 1≤M≤23 * M is an integer. Input Input is given from Standard Input in the following format: M Output If we have x hours until New Year at M o'clock on 30th, December, print x. Examples Input 21 Output 27 Input 12 Output 36
6
0
# include <iostream> using namespace std ; int main(){ int s; cin>>s; cout<<24+(24-s); }
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.*; class Main{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); String str = sc.next(); System.out.println(str.charAt(0)+""+(str.length()-2)+str.charAt(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
#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
S = input() t = str(len(S)-2) print(S[0]+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
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); String s = scanner.next(); s = s.substring(0, 1) + (s.length() - 2) + s.substring(s.length() - 1); System.out.println(s); } }
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
#abc069 b 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
a = input() print(f"{a[0]}{len(a[1:-1])}{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
#include <bits/stdc++.h> using namespace std; string s; int n; int main(){ cin>>s; 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
k=input() print(k[0],len(k)-2,k[len(k)-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 str = sc.nextLine(); char first = str.charAt(0); char end = str.charAt(str.length()-1); System.out.print(first); System.out.print(str.length() - 2); System.out.println(end); } }
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() { char s[101]; cin>>s; int l=strlen(s); cout<<s[0]<<l-2<<s[l-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=raw_input() print '%s%d%s' % (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
l=input() n=len(l)-2 print(l[0]+str(n)+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
a = input() print(a[0],len(a)-2,a[-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 <iostream> using namespace std; int main(void){ string S; cin >> S; cout << S.at(0) << S.size()-2 << S.at(S.size()-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 s; cin>>s; printf("%c%d%c\n",s[0],s.size()-2,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
#include <bits/stdc++.h> using namespace std; string s; int main(){ 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
#include<bits/stdc++.h> using namespace std; char s[100000]; int main() { gets(s); cout<<s[0]<<strlen(s)-2<<s[strlen(s)-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 f=a.length(); cout<<a[0]<<f-2<<a[f-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 = input() print(s[:1]+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
s = list(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
# 2問目類題3 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() l=len(s)-2 t=s[0]+str(l)+s[l+1] print(t)
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 S = scan.next(); String a =S.substring(0, 1)+Integer.toString(S.substring(1, S.length()-1).length()) +S.substring(S.length()-1, S.length()); System.out.println(a); } }
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() a=str(len(S)-2) print(S[:1]+a+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; string s; int main(){ cin>>s; cout<<s[0]<<s.length()-2<<s[s.length()-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; string s; int main() { cin>>s; cout<<s[0]<<s.size()-2<<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
#include<bits/stdc++.h> using namespace std; int main(){ string s; cin>>s; cout<<s[0]<<s.size()-2<<s[s.size()-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
a=input() b=len(a)-2 print(a[0]+str(b)+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
import java.util.*; public class Main { public static void main(String[] args) { // TODO Auto-generated method stub Scanner sc = new Scanner(System.in); String s = sc.next(); int leng = s.length(); System.out.print(s.charAt(0)); System.out.print(leng-2); System.out.println(s.charAt(leng-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]; }
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; string s; int n; int main(){ cin>>s; n=s.size()-2; cout<<s[0]<<n<<s[s.size()-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 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 <iostream> using namespace std; int main(){ string S; cin>>S; int n; 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
s=input() d=str(len(s)-2) print(s[0]+d+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 = input() l = len(a) print(a[0]+str(l-2)+a[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
#include<iostream> 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 { private static Scanner sc; public static void main(String[] args) { sc = new Scanner(System.in); String str = sc.next(); int len = str.length(); int midLen = len -2; System.out.print(str.substring(0,1) + midLen + str.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
a = 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
n = input() print(n[0],len(n)-2,n[-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> using namespace std; int main(){ string S; cin>>S; cout<<S[0]<<S.size()-2<<S[S.size()-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; string a; int main() { cin>>a; int l=a.length(); 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
import java.util.*; public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); String str = in.nextLine(); int len = str.length() - 2; System.out.println(str.substring(0, 1) + len + str.substring(len+1,len+2)); in.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();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.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) + String.valueOf(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
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); // 文字列の入力 String s = sc.next(); sc.close(); int len = s.length(); String i18n = s.charAt(0) + Integer.toString(s.length()-2) + s.charAt(len-1); // 出力 System.out.println(i18n); } }
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=s[0]+str(len(s)-2)+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
#include<bits/stdc++.h> using namespace std; char a[101]; int l; int main(){ gets(a); l=strlen(a)-2; cout<<a[0]<<l<<a[l+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
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(); String shortWord = s.substring(0, 1) + (len - 2) + s.substring(len - 1, len); System.out.println(shortWord); 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() a = len(s) print(s[0]+str(a-2)+s[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
#include<iostream> using namespace std; string s; int main(){ cin>>s; cout<<s[0]<<s.size()-2<<s.back()<<endl; }
CPP