/* package whatever; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
{
Scanner s
=new Scanner
(System.
in); List<Integer> arr=new ArrayList<>();
int N=s.nextInt();
int a[]={12,320,45,460,580};
arr=solve(a,N,arr);
}
public static List<Integer> solve(int[] A,int N,List<Integer> arr){
if(N==0){
return arr;
}
if(A[N-1]%10==0){
arr.add(A[N-1]);
}
return solve(A,N-1,arr);
}
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgovKiBOYW1lIG9mIHRoZSBjbGFzcyBoYXMgdG8gYmUgIk1haW4iIG9ubHkgaWYgdGhlIGNsYXNzIGlzIHB1YmxpYy4gKi8KY2xhc3MgSWRlb25lCnsKCXB1YmxpYyBzdGF0aWMgdm9pZCBtYWluIChTdHJpbmdbXSBhcmdzKSB0aHJvd3MgamF2YS5sYW5nLkV4Y2VwdGlvbgoJewoJCVNjYW5uZXIgcz1uZXcgU2Nhbm5lcihTeXN0ZW0uaW4pOwoJCUxpc3Q8SW50ZWdlcj4gYXJyPW5ldyBBcnJheUxpc3Q8PigpOwoJCWludCBOPXMubmV4dEludCgpOwoJCWludCBhW109ezEyLDMyMCw0NSw0NjAsNTgwfTsKCQlhcnI9c29sdmUoYSxOLGFycik7CgkJU3lzdGVtLm91dC5wcmludGxuKGFycik7Cgl9CglwdWJsaWMgc3RhdGljIExpc3Q8SW50ZWdlcj4gc29sdmUoaW50W10gQSxpbnQgTixMaXN0PEludGVnZXI+IGFycil7CgkJCgkJaWYoTj09MCl7CgkJCXJldHVybiBhcnI7CgkJfQoJCWlmKEFbTi0xXSUxMD09MCl7CgkJCWFyci5hZGQoQVtOLTFdKTsKCQl9CgkJcmV0dXJuIHNvbHZlKEEsTi0xLGFycik7Cgl9Cn0=