<span>//PascalABC.NET
//Версия 3.3, сборка 1634 (14.02.2018)
begin
Range(ReadInteger('a='),ReadInteger('b=')).Println
end.
</span>
Var
x, n, ans:integer;
begin
Readln(x, n);
while (n > 0) do
begin
ans := ans + x;
n:= n - 1;
end;
Writeln(ans);
end.
#include <iostream>
#include <conio.h>
void main() {
int digit;
std::cin >> digit;
if(digit>0) {
std::cout << "+" << std::endl;
} else if (digit<0) {
std::cout << "-" << std::endl;
} else {
std::cout << "0" << std::endl;
}
int digit1, digit2;
std::cin >> digit1;
std::cin >> digit2;
if(digit1>digit2 && digit1 !=0 && digit2 !=0) {
std::cout << digit1 << " > " digit2 << std::cout;
} else {
std::cout << digit1 << " < " digit2 << std::cout;
}
_getch();
return 0;
}
m = 0; p = 1; n = int(input())
a = [int(input()) for i in range(8)]
for i in range(n-8):
a.append(int(input()))
m = max(m, a[0]); p = max(p, m*a[8])
a = a[1:]
print(p)