﻿var a, b: integer;
begin
  readln(b);
  for a := 1 to 9 do
    writeln(b, ' x ', a, ' = ', b * a);
end.
