class A:
    def __init__(self, txt: str):
        self.p: C = None
        self.s: G = None
        self.t: E = None
        self.w: F = None
        self.v: F = None
        self.z: B = None
        self.o: B = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.t: G = None
        self.q: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: A = None
        self.z: E = None
        self.q: G = None
        self.y: C = None
        self.v: B = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.v: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: F = None
        self.txt = txt

g = A("g")
m = B("m")
d = C("d")
e = D("e")
b = E("b")
a = F("a")
k = G("k")
l = A("l")
c = D("c")
h = B("h")

g.p = d
g.s = k
g.t = b
g.w = a
g.v = a
g.z = h
g.o = h
m.v = g
m.t = l
m.y = a
d.t = k
d.q = m
e.x = l
e.z = b
e.q = k
e.y = d
e.v = h
b.s = a
b.o = k
a.v = b
k.p = a
l.p = d
l.s = k
l.t = b
l.w = a
l.v = a
l.z = m
l.o = m
c.x = g
c.z = b
c.q = k
c.y = d
c.v = h
h.v = l
h.t = l
h.y = a
assert e.v.t.w.v.txt == "
class A:
    def __init__(self, txt: str):
        self.p: C = None
        self.s: G = None
        self.t: E = None
        self.w: F = None
        self.v: F = None
        self.z: B = None
        self.o: B = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.t: G = None
        self.q: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: A = None
        self.z: E = None
        self.q: G = None
        self.y: C = None
        self.v: B = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.v: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: F = None
        self.txt = txt

g = A("g")
m = B("m")
d = C("d")
e = D("e")
b = E("b")
a = F("a")
k = G("k")
l = A("l")
c = D("c")
h = B("h")

g.p = d
g.s = k
g.t = b
g.w = a
g.v = a
g.z = h
g.o = h
m.v = g
m.t = l
m.y = a
d.t = k
d.q = m
e.x = l
e.z = b
e.q = k
e.y = d
e.v = h
b.s = a
b.o = k
a.v = b
k.p = a
l.p = d
l.s = k
l.t = b
l.w = a
l.v = a
l.z = m
l.o = m
c.x = g
c.z = b
c.q = k
c.y = d
c.v = h
h.v = l
h.t = l
h.y = a
assert e.v.t.w.v.txt == "b"