114972024-10-13 06:30:58ncsKiváló Számokcpp17Internal error
#include <bits/stdc++.h>
using namespace std;
#define f(i,k,n) for(int i=k; i<n; i++)
#define ll long long
const int inf = INT_MAX;

void solve()
{
    int n;
    cin>>n;
    if(n==1)
    {
        cout<<"-1\n";
        return;
    }
    string s=""; 
    if(n%3==1)
    {
        s+="1155";
        n-=4;
    }    
    else if(n%3==2)
    {
        s+="15";
        n-=2;
    }
    f(i,0,n)  s+="1";
    cout<<s<<"\n";
}

int main()
{
    ios::sync_with_stdio(0);
    cin.tie(0);
    int t=1;
    //cin>>t;
    while(t--)  solve();
    cout<<"test!!!";
    return 0;
}