Set Intersection

Easy

📝 Description

Find the intersection of two sets

Input Format

Two space-separated sets of values

Output Format

Set of common elements

Constraints

Set sizes ≤ 100

🔍 Sample Input

1 2 3 4 2 3 4 5
            

✅ Sample Output

2 3 4
            

Code Editor

Please login to run and submit code.

Shortcuts: Ctrl+Enter to submit, Ctrl+Shift+R to run