import java.io.*;
import java.util.*;
 
class aloxa
{
	public static void main(String args[])
	{
		try
		{
			traverse(new File("thomson"));
		}
		catch (Exception e)
		{
			e.printStackTrace();
		}
	}
	static public void traverse( File file )
	{
	   // Print the name of the entry
	   System.out.println( file ) ;
	   // Check if it is a directory
	   if( file.isDirectory() )
	   {
	      // Get a list of all the entries in the directory
			String entries[] = file.list() ;
			// Ensure that the list is not null
			if( entries != null )
			{
				// Loop over all the entries
				for( String entry : entries )
				{
					// Recursive call to traverse
					traverse( new File(file,entry) ) ;
				}
			}
		}
	}
}