import java.io.*;

public class Solution {
    public static void main(String[] args) throws Exception {
        //write your code here
int i = 1 ;int j = 1;
char c ='$';
    while (i <= 10)
    {
 { System.out.println(c);
}
while (j <= i )
        {
            System.out.print(c);
        }
    }

    }
}