#include<bits/stdc++.h>
using namespace std;
int main(){
int n;
cin>>n;
if (n==1){
cout<<"swim"<<endl;
}
else if (n==3){
cout<<"program"<<endl;
}
else if (n==5){
cout<<"read"<<endl;
}
else if (n==6){
cout<<"math"<<endl;
}
else {
cout<<"rest"<<endl;
}
return 0;
}
/**************************************************************
Problem: 1669
User: xiaojingxuan
Language: C++
Result: Accepted
Time:19 ms
Memory:2072 kb
****************************************************************/