class A:
    def __init__(self, txt: str):
        self.u: H = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.w: F = None
        self.r: H = None
        self.s: I = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.u: H = None
        self.z: I = None
        self.p: D = None
        self.x: A = None
        self.r: H = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.q: A = None
        self.y: I = None
        self.t: A = None
        self.r: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.t: D = None
        self.y: C = None
        self.q: H = None
        self.p: F = None
        self.o: E = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.w: F = None
        self.r: H = None
        self.s: I = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.u: H = None
        self.z: I = None
        self.p: D = None
        self.x: A = None
        self.r: H = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.q: A = None
        self.y: I = None
        self.t: A = None
        self.r: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.t: D = None
        self.y: C = None
        self.q: H = None
        self.p: F = None
        self.o: E = None
        self.txt = txt

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

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