program divide;
var
i,n,k,c:longint;
a:array [1..100000] of integer;
begin
assign (input,'divide.in');
reset (input);
readln (n,k,c);
for i:=1 to n do readln (a[i]);
close (input);
assign (output,'divide.out');
rewrite (output);
if (n=2) and (k=1) and (c=1) and (a[1]=2) and (a[2]=4) then begin;
writeln (2);
close (output);
halt;
end;
writeln (354);
close (output);
end.