#include <iostream>
using namespace std;
int main() {
int n;
cin >> n;
cout << "Page: " << (n-1)/9 + 1 << " . Slot: " <<n - ((n-1)/9)*9;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CglpbnQgbjsKCWNpbiA+PiBuOwoJY291dCA8PCAiUGFnZTogIiA8PCAobi0xKS85ICsgMSA8PCAiIC4gU2xvdDogIiA8PG4gLSAoKG4tMSkvOSkqOTsKfQ==