class A:
    def __init__(self, txt: str):
        self.x: C = None
        self.u: G = None
        self.y: D = None
        self.w: F = None
        self.p: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.y: F = None
        self.t: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: A = None
        self.o: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: G = None
        self.x: G = None
        self.y: B = None
        self.u: C = None
        self.w: G = None
        self.s: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: F = None
        self.v: G = None
        self.u: F = None
        self.t: B = None
        self.q: B = None
        self.o: F = None
        self.x: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: E = None
        self.p: A = None
        self.v: G = None
        self.r: C = None
        self.x: C = None
        self.s: A = None
        self.w: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: F = None
        self.o: E = None
        self.s: E = None
        self.t: B = None
        self.txt = txt

c = A("c")
h = B("h")
d = C("d")
l = D("l")
j = E("j")
i = F("i")
g = G("g")
b = A("b")

c.x = d
c.u = g
c.y = l
c.w = i
c.p = i
h.y = i
h.t = l
d.y = c
d.o = l
l.o = g
l.x = g
l.w = g
l.y = h
l.u = d
l.s = j
j.s = i
j.u = i
j.o = i
j.v = g
j.t = h
j.q = h
j.x = b
i.y = j
i.w = j
i.p = b
i.s = b
i.v = g
i.r = d
i.x = d
g.u = i
g.o = j
g.s = j
g.t = h
b.x = d
b.u = g
b.y = l
b.w = i
b.p = i
assert h.t.s.v.s.x.p.v.txt == "
class A:
    def __init__(self, txt: str):
        self.x: C = None
        self.u: G = None
        self.y: D = None
        self.w: F = None
        self.p: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.y: F = None
        self.t: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: A = None
        self.o: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: G = None
        self.x: G = None
        self.y: B = None
        self.u: C = None
        self.w: G = None
        self.s: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: F = None
        self.v: G = None
        self.u: F = None
        self.t: B = None
        self.q: B = None
        self.o: F = None
        self.x: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: E = None
        self.p: A = None
        self.v: G = None
        self.r: C = None
        self.x: C = None
        self.s: A = None
        self.w: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: F = None
        self.o: E = None
        self.s: E = None
        self.t: B = None
        self.txt = txt

c = A("c")
h = B("h")
d = C("d")
l = D("l")
j = E("j")
i = F("i")
g = G("g")
b = A("b")

c.x = d
c.u = g
c.y = l
c.w = i
c.p = i
h.y = i
h.t = l
d.y = c
d.o = l
l.o = g
l.x = g
l.w = g
l.y = h
l.u = d
l.s = j
j.s = i
j.u = i
j.o = i
j.v = g
j.t = h
j.q = h
j.x = b
i.y = j
i.w = j
i.p = b
i.s = b
i.v = g
i.r = d
i.x = d
g.u = i
g.o = j
g.s = j
g.t = h
b.x = d
b.u = g
b.y = l
b.w = i
b.p = i
assert h.t.s.v.s.x.p.v.txt == "g"