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

class B:
    def __init__(self, txt: str):
        self.v: H = None
        self.u: G = None
        self.p: D = None
        self.x: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: D = None
        self.r: E = None
        self.u: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: F = None
        self.p: B = None
        self.r: G = None
        self.s: B = None
        self.o: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: F = None
        self.t: A = None
        self.o: G = None
        self.x: B = None
        self.w: H = None
        self.u: G = None
        self.y: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: A = None
        self.s: H = None
        self.v: H = None
        self.q: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: D = None
        self.u: F = None
        self.v: D = None
        self.q: E = None
        self.o: H = None
        self.w: C = None
        self.txt = txt

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

e = A("e")
k = B("k")
m = C("m")
f = D("f")
b = E("b")
n = F("n")
l = G("l")
d = H("d")
c = A("c")

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

class B:
    def __init__(self, txt: str):
        self.v: H = None
        self.u: G = None
        self.p: D = None
        self.x: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: D = None
        self.r: E = None
        self.u: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: F = None
        self.p: B = None
        self.r: G = None
        self.s: B = None
        self.o: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: F = None
        self.t: A = None
        self.o: G = None
        self.x: B = None
        self.w: H = None
        self.u: G = None
        self.y: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: A = None
        self.s: H = None
        self.v: H = None
        self.q: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: D = None
        self.u: F = None
        self.v: D = None
        self.q: E = None
        self.o: H = None
        self.w: C = None
        self.txt = txt

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

e = A("e")
k = B("k")
m = C("m")
f = D("f")
b = E("b")
n = F("n")
l = G("l")
d = H("d")
c = A("c")

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