Gates

Input

Output