class Country:
    def __init__(self,name,lat,long):
        self.name=name
        self.lat=round(lat,2)
        self.long=round(long,2)
        self.xpos=0
        self.ypos=0
        
        step1 = 2.57
        ypos = ((self.lat+39.81) // step1)+1        
        if ypos%2 == 1:
            self.category = 1
            self.ypos = (ypos//2)+1
        else:
            self.category = 0
            self.ypos = (ypos//2)
        
        xpos = ((self.long +180))
        self.xpos = round(xpos)
        

        
        
