let label = readline();
for (let i = 0; i < 3; i++) {
  let str = "";
  for (let j = 0; j < 3; j++) {
    str += label;
  }
  console.info(str);
}