import java.util.*;
public class Main
{
public static void main(String[] args)
{
int num, amount;
int i;
System.out.print("Enter a number: ");
num = Integer.parseInt(new Scanner(System.in).nextLine());
System.out.print("Enter an amount: ");
amount = Integer.parseInt(new Scanner(System.in).nextLine());
for (i = 0; i < amount; i++)
{
System.out.print(num);
}
System.out.println();
i = 0;
while (i < amount)
{
System.out.print(num);
i++;
}
System.out.println();
i = 0;
do
{
System.out.print(num);
i++;
} while (i < amount);
}
}