#include<bits/stdc++.h> using namespace std; long long m; int main() { cin>>m; cout<<m / 13<<"\n"; cout<<m % 13<<"\n"; return 0; }