/* package whatever; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;
import java.util.regex.*;

/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
	public static void main (String[] args) throws java.lang.Exception
	{
		
	String html = "ItemPago12.569,00DeducoesPagas36.567,52ItensQnt6DeducoesRetidas21.354,11";
	Pattern conteudo = Pattern.compile("ItemPago([^<]+)Deducoes");
	Matcher match = conteudo.matcher(html);
	match.find();
 
	System.out.println(match.group(1));
	
	}
}