Lucky period

Sign in to test your solution.