import std.algorithm; import std.array; import std.conv; import std.math; import std.range; import std.stdio; import std.string; import std.typecons; T read(T)() { return readln.chomp.to!T; } T[] reads(T)() { return readln.split.to!(T[]); } alias readint = read!int; alias readints = reads!int; void main() { int n = readint; bool[long] d; for (int i = 0; i <= n; i++) { for (int j = 0; j <= n; j++) { long x = 1; for (int k = 0; k < i; k++) x *= 2; for (int k = 0; k < j; k++) x *= 5; d[x] = true; } } foreach (x; d.keys.sort) { writeln(x); } }