class A:
    def __init__(self, txt: str):
        self.u: F = None
        self.s: C = None
        self.t: D = None
        self.x: C = None
        self.p: F = None
        self.w: E = None
        self.o: D = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.u: G = None
        self.s: F = None
        self.r: D = None
        self.y: H = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.t: B = None
        self.w: E = None
        self.q: B = None
        self.o: F = None
        self.u: E = None
        self.p: E = None
        self.v: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: F = None
        self.v: B = None
        self.p: A = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.u: G = None
        self.s: F = None
        self.r: D = None
        self.y: H = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.t: B = None
        self.w: E = None
        self.q: B = None
        self.o: F = None
        self.u: E = None
        self.p: E = None
        self.v: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: F = None
        self.v: B = None
        self.p: A = None
        self.txt = txt

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

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