import java.io.*;
import java.lang.*;

public class Machine
{
	Integer Total;
	
	public Machine()
	{
		Total = new Integer(0);
	}
	
	public void AddValue(Coin coin)
	{
		Total = Total + coin.Value;
	}
	
	public Integer getTotal()
	{
		return Total;
	}
	
	public static void main(String args[]) {
		Machine machine = new Machine();
		Five five = new Five();
		Ten ten = new Ten();
		machine.AddValue(five);
		machine.AddValue(ten);
		System.out.print(machine.getTotal());
	}
}