class A:
    def __init__(self, txt: str):
        self.r: J = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.r: J = None
        self.u: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: I = None
        self.t: A = None
        self.v: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: F = None
        self.t: E = None
        self.z: H = None
        self.o: A = None
        self.q: G = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.y: E = None
        self.u: I = None
        self.x: I = None
        self.q: F = None
        self.p: I = None
        self.t: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: F = None
        self.q: I = None
        self.s: A = None
        self.v: D = None
        self.z: J = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.u: C = None
        self.q: D = None
        self.s: G = None
        self.r: A = None
        self.z: B = None
        self.p: D = None
        self.y: C = None
        self.w: G = None
        self.t: A = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.w: C = None
        self.o: A = None
        self.z: H = None
        self.x: I = None
        self.y: B = None
        self.p: H = None
        self.v: F = None
        self.t: F = None
        self.s: C = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.r: J = None
        self.u: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: I = None
        self.t: A = None
        self.v: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: F = None
        self.t: E = None
        self.z: H = None
        self.o: A = None
        self.q: G = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.y: E = None
        self.u: I = None
        self.x: I = None
        self.q: F = None
        self.p: I = None
        self.t: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: F = None
        self.q: I = None
        self.s: A = None
        self.v: D = None
        self.z: J = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.u: C = None
        self.q: D = None
        self.s: G = None
        self.r: A = None
        self.z: B = None
        self.p: D = None
        self.y: C = None
        self.w: G = None
        self.t: A = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.w: C = None
        self.o: A = None
        self.z: H = None
        self.x: I = None
        self.y: B = None
        self.p: H = None
        self.v: F = None
        self.t: F = None
        self.s: C = None
        self.txt = txt

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

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