/*
**	Programma:		HTMLStripper
**	Versione:		1.0.0
**	Autore:			Dario de Judicibus
**	Indirizzo:		dejudicibus@geocities.com
**	Creato il:		January 1st, 1998
**	Modificato il:	April 13th, 1998
**	Linguaggio:		Java (jdk 1.1)
**	-------------------------------------------------------------
**	(c) 1998 - All rights reserved 
**	-------------------------------------------------------------
**	I make no representations or warranties about the suitability of
**	the software, either express or implied, including but not limited
**	to the implied warranties of merchantability, fitness for a
**	particular purpose, or non-infringement. I shall not be liable for
**	any damages suffered by licensee as a result of using, modifying or
**	distributing this software or its derivatives.
*/

/**
 *	@author Dario de Judicibus
 *	@version 1.0.0
 *	@see jdk 1.1
 */
class HTMLStripper
{
	public static void main( String[] args )
	{
		int  i ;
		char c ;
		boolean strip = false ;
	
		try
		{
			while ( ( i = System.in.read( ) ) != -1 )
			{
				c = (char) i ;
				if ( c == '>' && strip )
				{
				  strip = false ;
				}
				else if ( c == '<' && ! strip )
				{
					strip = true ;
				}
				else if ( ! strip )
				{
					System.out.write( c ) ;
				}
			}
		}
		catch ( java.io.IOException exc )
		{
			System.out.println( exc ) ;
		}
	}
}