class A:
    def __init__(self, txt: str):
        self.z: G = None
        self.q: F = None
        self.w: D = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.x: F = None
        self.p: B = None
        self.r: G = None
        self.q: E = None
        self.s: G = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.y: D = None
        self.r: H = None
        self.u: F = None
        self.t: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: B = None
        self.o: B = None
        self.r: C = None
        self.s: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: F = None
        self.r: A = None
        self.p: F = None
        self.z: D = None
        self.y: D = None
        self.v: G = None
        self.t: B = None
        self.o: F = None
        self.txt = txt

c = A("c")
l = B("l")
e = C("e")
n = D("n")
i = E("i")
m = F("m")
j = G("j")
f = H("f")
g = G("g")
b = F("b")

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

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

class C:
    def __init__(self, txt: str):
        self.x: F = None
        self.p: B = None
        self.r: G = None
        self.q: E = None
        self.s: G = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.y: D = None
        self.r: H = None
        self.u: F = None
        self.t: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: B = None
        self.o: B = None
        self.r: C = None
        self.s: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: F = None
        self.r: A = None
        self.p: F = None
        self.z: D = None
        self.y: D = None
        self.v: G = None
        self.t: B = None
        self.o: F = None
        self.txt = txt

c = A("c")
l = B("l")
e = C("e")
n = D("n")
i = E("i")
m = F("m")
j = G("j")
f = H("f")
g = G("g")
b = F("b")

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