#include<bits/stdc++.h> using namespace std; int main(){ int m,b,s; cin>>m; b=m/13; s=m%13; cout<<b<<endl; cout<<s; }