#include<iostream>
using namespace std;
int main(){
int n;
while(cin >> n && n != 0){
int temp = 0, n1;
n1 = n;
while(n1 <= 100){
n1++;
}
temp = n1 - 10;
cout << "f91("<< n << ") = " << temp << endl;
}
}