import java.io.*;
import java.util.*;

public class Solution {

  private class Node{
    public List<Node> children = new LinkedList<>();
    public boolean visited = false;
  }

    public static void main(String[] args) {
        /* Enter your code here. Read input from STDIN. Print output to STDOUT. Your class should be named Solution. */
    }
}

Create Graphs.java