Distinguish I, CNOTs and SWAP

Problem Name:
Distinguish I, CNOTs and SWAP
Site:CodeForces
Links:
Tags:
Problem setters: