Surprise Language Round 7


A. Crystal Ball Sequence
time limit per test: 2 seconds
memory limit per test: 256 megabytes
input: standard input
output: standard output

Examples
Input
1
Output
7
Input
3
Output
37
----------------------------------------------------------------------------------------------------
B. Hexakosioihexekontahexaphobia
time limit per test: 2 seconds
memory limit per test: 256 megabytes
input: standard input
output: standard output

Examples
Input
123098
Output
NO
Input
16660
Output
YES
Input
1606061
Output
NO
----------------------------------------------------------------------------------------------------
C. Eval
time limit per test: 2 seconds
memory limit per test: 256 megabytes
input: standard input
output: standard output

Examples
Input
123+456
Output
579
Input
192/5
Output
38
Input
945%19
Output
14
----------------------------------------------------------------------------------------------------
D. Caesar Cipher
time limit per test: 2 seconds
memory limit per test: 256 megabytes
input: standard input
output: standard output

Examples
Input
5
CODEFORCES
Output
HTIJKTWHJX
Input
13
FALSERULEZ
Output
SNYFREHYRM
----------------------------------------------------------------------------------------------------
E. Chessboard
time limit per test: 2 seconds
memory limit per test: 256 megabytes
input: standard input
output: standard output

Examples
Input
4
Output
.#.#
#.#.
.#.#
#.#.
----------------------------------------------------------------------------------------------------
F. Pairwise Sums
time limit per test: 2 seconds
memory limit per test: 256 megabytes
input: standard input
output: standard output

Examples
Input
4 1 2 3 4
Output
5 3 5 7 
Input
5 5 46 372 81 9
Output
14 51 418 453 90 
----------------------------------------------------------------------------------------------------
G. Hamming Distance
time limit per test: 2 seconds
memory limit per test: 256 megabytes
input: standard input
output: standard output

Examples
Input
CODECHEF
TOPCODER
Output
6
Input
HAMMING
DISTANC
Output
6
----------------------------------------------------------------------------------------------------
H. Array Sorting
time limit per test: 2 seconds
memory limit per test: 256 megabytes
input: standard input
output: standard output

Examples
Input
3 3 1 2
Output
1 2 3 
Input
7 12 2 3 44 5 60 2
Output
2 2 3 5 12 44 60 
----------------------------------------------------------------------------------------------------
