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

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

class C:
    def __init__(self, txt: str):
        self.o: E = None
        self.w: D = None
        self.r: E = None
        self.s: E = None
        self.z: I = None
        self.x: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: E = None
        self.x: I = None
        self.y: H = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.u: C = None
        self.t: E = None
        self.s: I = None
        self.r: E = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.v: C = None
        self.t: A = None
        self.p: E = None
        self.y: F = None
        self.o: C = None
        self.z: C = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.o: E = None
        self.w: D = None
        self.r: E = None
        self.s: E = None
        self.z: I = None
        self.x: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: E = None
        self.x: I = None
        self.y: H = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.u: C = None
        self.t: E = None
        self.s: I = None
        self.r: E = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.v: C = None
        self.t: A = None
        self.p: E = None
        self.y: F = None
        self.o: C = None
        self.z: C = None
        self.txt = txt

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

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