import java.util.*;
public class Main
{
public static void main(String[] args)
{
int x;
System.out.print("Enter a number: ");
x = Integer.parseInt(new Scanner(System.in).nextLine());
System.out.printf("%1$s%1$s%1$s" + "\r\n", x);
System.out.printf("%1$s %1$s" + "\r\n", x);
System.out.printf("%1$s %1$s" + "\r\n", x);
System.out.printf("%1$s %1$s" + "\r\n", x);
System.out.printf("%1$s%1$s%1$s" + "\r\n", x);
}
}