#include<iostream>
using namespace std;

void f() {
 static bool firsttime = true;
 if (firsttime) {
  cout << "This is a first time"; firsttime = false;
 }
 cout << "f is called" << endl;
}

int main() {
 f(); f(); f();
 return 0;
}
