class A:
    def __init__(self, txt: str):
        self.r: E = None
        self.z: F = None
        self.y: E = None
        self.v: H = None
        self.q: E = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.p: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: B = None
        self.x: E = None
        self.q: B = None
        self.t: C = None
        self.r: E = None
        self.p: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: C = None
        self.s: E = None
        self.w: H = None
        self.o: H = None
        self.x: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: C = None
        self.u: H = None
        self.z: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: G = None
        self.w: F = None
        self.txt = txt

e = A("e")
d = B("d")
j = C("j")
c = D("c")
l = E("l")
k = F("k")
a = G("a")
b = H("b")
i = D("i")
g = E("g")

e.r = l
e.y = l
e.z = k
e.v = b
e.q = g
d.w = a
d.s = c
d.u = l
j.t = a
j.y = d
c.p = j
l.y = d
l.q = d
l.x = g
l.r = g
l.t = j
l.p = b
k.z = j
k.s = l
k.w = b
k.o = b
k.x = e
a.p = j
a.u = b
a.z = i
b.x = a
b.w = k
i.p = j
g.y = d
g.q = d
g.x = l
g.r = l
g.t = j
g.p = b
assert c.p.t.p.txt == "
class A:
    def __init__(self, txt: str):
        self.r: E = None
        self.z: F = None
        self.y: E = None
        self.v: H = None
        self.q: E = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.p: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: B = None
        self.x: E = None
        self.q: B = None
        self.t: C = None
        self.r: E = None
        self.p: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: C = None
        self.s: E = None
        self.w: H = None
        self.o: H = None
        self.x: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: C = None
        self.u: H = None
        self.z: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: G = None
        self.w: F = None
        self.txt = txt

e = A("e")
d = B("d")
j = C("j")
c = D("c")
l = E("l")
k = F("k")
a = G("a")
b = H("b")
i = D("i")
g = E("g")

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