const MAXN = 100000; MAXL = 10; type charNL = array[0..MAXN-1] of array [0..MAXL+1] of char; type name = array[0..MAXL+1] of char; procedure read_until_space(var fr : text; var s : name); var i : integer; begin i := 0; read(fr, s[0]); (* Note: this only works with Linux-style end-of-lines *) while (s[i] <> ' ') and (s[i] <> AnsiChar(#10)) do begin i := i + 1; read(fr, s[i]); end; s[i] := AnsiChar(#0); end; var N, i : longint; eq, op : name; target_var : charNL; operand1_var : charNL; operand2_var : charNL; fr, fw : text; begin assign(fr, 'input.txt'); assign(fw, 'output.txt'); reset(fr); rewrite(fw); readln(fr, N); for i:=0 to N-1 do begin read_until_space(fr, target_var[i]); read_until_space(fr, eq); read_until_space(fr, operand1_var[i]); read_until_space(fr, op); read_until_space(fr, operand2_var[i]); end; (* insert your code here *) writeln(fw, 42); close(fr); close(fw); end.