Instead of studying, French student found a better way