#include <iostream>
#include <fstream>
using namespace std;
int main(){
fstream filename;
int num = 0;
char c;
filename.open("test.txt", ios::in);
while (!filename.eof()) {
filename >> c;
num++;
}
filename.close();
cout << num << endl;
return 0;
}