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

class B:
    def __init__(self, txt: str):
        self.o: D = None
        self.v: E = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.s: D = None
        self.o: E = None
        self.z: C = None
        self.q: G = None
        self.x: F = None
        self.txt = txt

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

e = A("e")
m = B("m")
b = C("b")
k = D("k")
c = E("c")
i = F("i")
f = G("f")
h = F("h")
l = D("l")
j = C("j")

e.u = f
e.x = m
m.o = l
m.v = c
b.t = i
b.y = h
b.w = m
k.z = i
k.v = b
k.x = f
k.s = j
k.o = e
k.t = e
k.w = c
c.s = l
c.x = i
i.s = k
i.o = c
i.z = j
i.q = f
i.x = h
f.y = l
f.x = i
h.s = l
h.o = c
h.z = j
h.q = f
h.x = i
l.z = i
l.v = b
l.x = f
l.s = j
l.o = e
l.t = e
l.w = c
j.t = i
j.y = i
j.w = m
assert h.s.x.y.o.x.o.z.o.s.txt == "
class A:
    def __init__(self, txt: str):
        self.u: G = None
        self.x: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: D = None
        self.v: E = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.s: D = None
        self.o: E = None
        self.z: C = None
        self.q: G = None
        self.x: F = None
        self.txt = txt

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

e = A("e")
m = B("m")
b = C("b")
k = D("k")
c = E("c")
i = F("i")
f = G("f")
h = F("h")
l = D("l")
j = C("j")

e.u = f
e.x = m
m.o = l
m.v = c
b.t = i
b.y = h
b.w = m
k.z = i
k.v = b
k.x = f
k.s = j
k.o = e
k.t = e
k.w = c
c.s = l
c.x = i
i.s = k
i.o = c
i.z = j
i.q = f
i.x = h
f.y = l
f.x = i
h.s = l
h.o = c
h.z = j
h.q = f
h.x = i
l.z = i
l.v = b
l.x = f
l.s = j
l.o = e
l.t = e
l.w = c
j.t = i
j.y = i
j.w = m
assert h.s.x.y.o.x.o.z.o.s.txt == "l"