import java.util.*;
class Person
{
    private int accno;
    private int bal;
    {
        this.accno=accno;
        this.bal=bal;
    }
    void showbalance()
    {
        System.out.println(bal);
    }
    void deposit()
    {
        bal+=amt;
        showbalance();
    }
    void withdraw()
    {
        if(amt<bal)
        {
            bal-=amt;
            showbalance();
        }
        else
        {
             System.out.print(1000+500);
        }
    }
}