class A:
    def __init__(self, txt: str):
        self.r: F = None
        self.w: F = None
        self.p: C = None
        self.u: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.v: I = None
        self.r: A = None
        self.p: E = None
        self.u: I = None
        self.z: H = None
        self.s: A = None
        self.o: D = None
        self.w: D = None
        self.x: I = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.r: A = None
        self.y: C = None
        self.z: C = None
        self.w: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: E = None
        self.x: I = None
        self.p: E = None
        self.r: D = None
        self.s: I = None
        self.y: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: C = None
        self.w: F = None
        self.t: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: G = None
        self.r: D = None
        self.z: I = None
        self.x: D = None
        self.q: F = None
        self.o: A = None
        self.u: B = None
        self.y: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: C = None
        self.z: G = None
        self.r: F = None
        self.y: C = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.t: G = None
        self.q: C = None
        self.p: G = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.v: I = None
        self.r: A = None
        self.p: E = None
        self.u: I = None
        self.z: H = None
        self.s: A = None
        self.o: D = None
        self.w: D = None
        self.x: I = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.r: A = None
        self.y: C = None
        self.z: C = None
        self.w: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: E = None
        self.x: I = None
        self.p: E = None
        self.r: D = None
        self.s: I = None
        self.y: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: C = None
        self.w: F = None
        self.t: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: G = None
        self.r: D = None
        self.z: I = None
        self.x: D = None
        self.q: F = None
        self.o: A = None
        self.u: B = None
        self.y: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: C = None
        self.z: G = None
        self.r: F = None
        self.y: C = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.t: G = None
        self.q: C = None
        self.p: G = None
        self.txt = txt

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

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