var
a:array[1..5]of integer;
i:integer;
begin
for i:=1 to 5 do read(a[i]);
for i:=1 to 5 do write(a[i],' ');
writeln;
for i:=1 to 5 do if a[i]>=1024 then writeln(a[i] div 1024);
end.
var
a:array[1..5]of integer;
i:integer;
begin
for i:=1 to 5 do read(a[i]);
for i:=1 to 5 do write(a[i],' ');
writeln;
for i:=1 to 5 do if a[i]>=1024 then writeln(a[i] div 1024);
writeln;
end.