Pope prays for students, teachers adapting to distance learning