This page is still under construction.

Parts of this page are still being built. What you see may change.

Lorem ipsum

Interview

Time limit0.1sMemory limit512 MB

Summary
Split a fixed Latin placeholder paragraph into words and print the words at indices L through R separated by spaces.
Level

Easy2 of 10

Topics
String, Implementation, Array
Solved
No attempts yet

Problem

The following Latin placeholder paragraph is given. A word is a run of English letters A-Z and a-z. Every other character, including periods, commas, and spaces, is a separator. Keep each word's capitalization as written. Number the words from 11 in the order they appear.

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec quis lectus sit amet ante suscipit tempor. Aenean dapibus finibus tortor vitae facilisis. Nulla facilisi. Donec suscipit ante a sapien gravida eleifend. Curabitur in lectus ut enim semper venenatis. Aenean elit nibh, hendrerit nec nunc in, dictum cursus dolor. Aenean eget lectus risus. Cras sollicitudin quam vitae augue mollis bibendum. Aliquam euismod vulputate dolor at tristique. Praesent elementum pretium velit non interdum. Nunc posuere faucibus magna id pretium. Maecenas congue, velit eget semper porttitor, tellus tortor porttitor dui, tristique lobortis quam sem ac odio.

The paragraph has 9393 words.

Given two integers LL and RR, print the words from index LL through index RR.

Input

The first line contains two integers LL and RR.

1≤L≤R≤931 \le L \le R \le 93

Output

Print the words from the LL-th through the RR-th on one line, separated by a single space.

Hint

The word in amet, is amet. The comma is not part of the word. Donec after elit. is a separate word.

Examples1

  1. Example 1

    Input
    1 2
    
    Expected output
    Lorem ipsum