#define _CRT_SECURE_NO_WARNINGS #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; #define INF (1<<29) #define rep(i,n) for(int i=0;i<(int)(n);i++) #define all(v) v.begin(),v.end() #define uniq(v) v.erase(unique(all(v)),v.end()) #define indexOf(v,x) (find(all(v),x)-v.begin()) #define MAXN 30 long long c[MAXN + 1][MAXN + 1]; void init() { c[0][0] = 1; for (int i = 1; i <= MAXN; i++) { c[i][0] = 1; for (int j = 1; j <= i; j++) c[i][j] = (c[i - 1][j - 1] + c[i - 1][j]); } } int main() { ios::sync_with_stdio(0); cin.tie(0); init(); int n; cin >> n; int dp[3] = {}; dp[0] = 1; int d = 1; rep(j,INF){ int nxt[3] = {}; rep(i, 3) { if(j)nxt[i] += dp[i]; nxt[(i + 1) % 3] += dp[i]; } if (1 3 - a % 3)ans += '3'; rep(i, 3 - a % 3)ans += '5'; cout << ans << endl; return 0; }