#include "iostream" #include "climits" #include "list" #include "queue" #include "stack" #include "set" #include "functional" #include "algorithm" #include "math.h" #include "utility" #include "string" #include "map" #include "unordered_map" #include "iomanip" #include "random" using namespace std; const long long int MOD = 1000000007; long long int box = 1; long long int N; long long int num; char ans[11][50] = { "1","101","10101","1010101","101010101","10101010101","1010101010101","101010101010101","10101010101010101","1010101010101010101","0" }; int main() { cin >> N; num = N % (MOD / 2); if (!num)num += (MOD / 2); for (int i = 2; i <= num; i++) { box *= 100; box++; box %= MOD; } cout << box << endl; cout << ans[(N+10) % 11] << endl; return 0; }