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

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

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

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

class E:
    def __init__(self, txt: str):
        self.t: C = None
        self.q: A = None
        self.x: F = None
        self.p: F = None
        self.r: A = None
        self.s: G = None
        self.u: B = None
        self.v: A = None
        self.z: D = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.t: B = None
        self.r: C = None
        self.p: D = None
        self.x: E = None
        self.v: A = None
        self.s: A = None
        self.txt = txt

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.t: C = None
        self.q: A = None
        self.x: F = None
        self.p: F = None
        self.r: A = None
        self.s: G = None
        self.u: B = None
        self.v: A = None
        self.z: D = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.t: B = None
        self.r: C = None
        self.p: D = None
        self.x: E = None
        self.v: A = None
        self.s: A = None
        self.txt = txt

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

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