I have a dictionary of form
example:- 

```
 all_ways = {key1:[list1], key2:[list2], ... keyN[listN]}

```

I want to find only those elements of the `ith` list such that it is a part of at least one another list say `jth` list `(i!=j)` and then for all keys store only those elements that satisfy the above condition.

Is there any good way of doing it except using multiple loops? 

Example:-

```
key1: [1,2,3,4,5,100,111,123] 
key2: [1,2,3,13,15,17] 
key3:[100,110,111,1000] 

```

answer: 

```
key1:[1,2,3,100,111] 
key2:[1,2,3]
key3:[100,111]

```