program networkip(input,output);
var
i,j,k:longint;
begin
//pian fen kai shi!!
assign(input,'networkip.in');
assign(output,'networkip.out');
reset(input);
rewrite(output);
readln(k);
if (k=3) then begin
writeln('194.85.160.176');
writeln('255.255.255.248');
end
else begin
writeln('192.168.103.254');
writeln('255.255.255.0');
end;
close(input);
close(output);
end.