class A:
    def __init__(self, txt: str):
        self.r: I = None
        self.q: H = None
        self.t: D = None
        self.x: C = None
        self.o: I = None
        self.w: C = None
        self.z: G = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.u: G = None
        self.t: H = None
        self.x: B = None
        self.o: D = None
        self.r: C = None
        self.w: F = None
        self.p: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: H = None
        self.o: G = None
        self.v: A = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.r: C = None
        self.t: B = None
        self.o: B = None
        self.s: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: C = None
        self.t: D = None
        self.s: B = None
        self.o: B = None
        self.u: B = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.w: A = None
        self.y: H = None
        self.t: G = None
        self.txt = txt

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.u: G = None
        self.t: H = None
        self.x: B = None
        self.o: D = None
        self.r: C = None
        self.w: F = None
        self.p: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: H = None
        self.o: G = None
        self.v: A = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.r: C = None
        self.t: B = None
        self.o: B = None
        self.s: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: C = None
        self.t: D = None
        self.s: B = None
        self.o: B = None
        self.u: B = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.w: A = None
        self.y: H = None
        self.t: G = None
        self.txt = txt

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

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