文件目录

#include <bits/stdc++.h>
using namespace std;
void div(string c, int k)
{
    int ys = 0;
    vector<int> s(c.size(), 0);
    for (int i = 0; i < c.size(); i++)
    {
        ys = ys * 10 + c[i] - 48;
        s[i] = ys / k;
        ys %= k;
    }
    int i = 0;
    while (s[i] == 0 && i < s.size() - 1)
        i++;
    for (; i < s.size(); i++)
        cout << s[i];
    cout << "\n"
         << ys;
}
int main()
{
    string c;
    cin >> c;
    div(c, 13);
    return 0;
}