How to take input in this problem?

how to take input in this problem what’s the true false in between?