import std.algorithm, std.conv, std.range, std.stdio, std.string; void main() { auto n = 31; auto x = readln.chomp.to!int; if (x == 0) { writeln(1, " ", 0); return; } if (x > n) { writeln(0, " ", 0); return; } auto pt = pascalTriangle!int(n); writeln(pt[n][x], " ", long((1<