Surprise Language Round 6


A. Hexagonal Numbers
time limit per test: 2 seconds
memory limit per test: 256 megabytes
input: standard input
output: standard output

Examples
Input
3
Output
15
Input
6
Output
66
----------------------------------------------------------------------------------------------------
B. A + Reverse B
time limit per test: 2 seconds
memory limit per test: 256 megabytes
input: standard input
output: standard output

Examples
Input
5 15
Output
56
Input
73 9180
Output
892
----------------------------------------------------------------------------------------------------
C. LCM
time limit per test: 2 seconds
memory limit per test: 256 megabytes
input: standard input
output: standard output

Examples
Input
10 42
Output
210
Input
123 41
Output
123
----------------------------------------------------------------------------------------------------
D. Asterisks
time limit per test: 2 seconds
memory limit per test: 256 megabytes
input: standard input
output: standard output

Examples
Input
3
Output
*
**
***
Input
6
Output
*
**
***
****
*****
******
----------------------------------------------------------------------------------------------------
E. HQ9+
time limit per test: 2 seconds
memory limit per test: 256 megabytes
input: standard input
output: standard output

Examples
Input
Hello!
Output
YES
Input
Progopedia
Output
NO
----------------------------------------------------------------------------------------------------
F. Binary Notation
time limit per test: 2 seconds
memory limit per test: 256 megabytes
input: standard input
output: standard output

Examples
Input
5
Output
101
Input
101
Output
1100101
----------------------------------------------------------------------------------------------------
G. Array Sorting
time limit per test: 2 seconds
memory limit per test: 256 megabytes
input: standard input
output: standard output

Examples
Input
5
7
1
9
7
3
Output
1 3 7 7 9 
Input
10
100
1
100
1
100
1
100
1
100
1
Output
1 1 1 1 1 100 100 100 100 100 
----------------------------------------------------------------------------------------------------
H. Stack
time limit per test: 2 seconds
memory limit per test: 256 megabytes
input: standard input
output: standard output

Examples
Input
12+3*66*+
Output
45
Input
149
Output
9
----------------------------------------------------------------------------------------------------
