Given a number X find the total numbers A such that

A OR X > X, and

1<=A<=X.

**Input:**

The first line contains an integer T denoting number of testcases. The following T lines contains an integer X each.

**Output:**

Print the total count of the different value of A possible.

**Constraints:**

1<=T<=10^5

1<=X<=10^8

**Example:**

**Input**

2

10

5

**Output**

7

2

**Explanation:**

In the range [1,10] if the OR is taken of 10 and any number in the set {1,3,4,5,6,7,9} the resulting value will be greater than 10.

Ravneet Baansal | 72 |

mhao | 44 |

anime | 33 |

Ibrahim Nash | 29 |

Divyansh Njr | 29 |

tyaglot | 447 |

taobupt | 274 |

bentlynixon | 241 |

Ravneet Baansal | 225 |

thurki | 217 |

akhayrutdinov | 3944 |

sanjay05 | 3366 |

Michael Riegger | 2119 |

Quandray | 2086 |

Jasleen Kaur 2 | 2012 |