#include <iostream>
#include <math.h>
using namespace std;
int main()
{
setlocale(LC_ALL, "Russian");
int n;
cin >> n;
char* string1 = new char[n];
char* string2 = new char[n];
cin >> string1;
cin >> string2;
bool check = true;
if (strlen(string1) != strlen(string2))
cout << "Неверное количество символов";
else
{
for (size_t i = 0; i < round(strlen(string1) / 2); i++) {
if (string1[i] != string2[i]) {
check = false;
}
}
if (check)
cout << "Первые половины равны";
else
cout << "Половины первые не равны";
}
}
var
N,i,k,x:integer;
begin
readln(N);
for i:=2 to N do
begin
x:=0;
for k:=2 to trunc(sqrt(i)) do
if i mod k=0 then
x:=1;
if x=0 then
write(i,' ');
end;
end.