CF117C Cycle
Description
A tournament is a directed graph without self-loops in which every pair of vertexes is connected by exactly one directed edge. That is, for any two vertexes $ u $ and $ v $ ( $ u≠v $ ) exists either an edge going from $ u $ to $ v $ , or an edge from $ v $ to $ u $ .
You are given a tournament consisting of $ n $ vertexes. Your task is to find there a cycle of length three.
Input Format
The first line contains an integer $ n $ ( $ 1
Output Format
Print three distinct vertexes of the graph $ a_{1} $ , $ a_{2} $ , $ a_{3} $ ( $ 1