interface A{static void main(String[]a) throws java.io.IOException { int c=100,d=0; for(;c>10;){ c=System.in.read()&0xff; if(c>=65){ d=c; System.out.write(c); } else{ for(;c>49;c--){ System.out.write(d); } } } System.out.write(10); }}