class A:
    def __init__(self, txt: str):
        self.t: G = None
        self.p: I = None
        self.v: D = None
        self.txt = txt

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.q: D = None
        self.v: H = None
        self.s: A = None
        self.r: A = None
        self.y: H = None
        self.w: G = None
        self.t: D = None
        self.p: G = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.q: E = None
        self.w: A = None
        self.txt = txt

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

i.t = a
i.p = k
i.v = f
e.w = i
e.z = f
e.p = f
e.r = j
e.x = c
e.v = a
e.q = d
d.y = c
d.p = k
f.w = c
f.s = e
m.w = e
m.z = e
m.v = i
m.x = j
m.r = k
m.t = k
m.o = d
m.y = d
c.q = f
c.t = f
c.v = j
c.y = j
c.s = i
c.r = i
c.w = a
c.p = a
a.u = k
a.q = j
a.z = e
a.p = c
a.w = c
a.t = i
a.y = d
j.s = e
j.u = m
j.q = a
k.q = m
k.w = i
assert j.s.r.s.r.s.x.txt == "
class A:
    def __init__(self, txt: str):
        self.t: G = None
        self.p: I = None
        self.v: D = None
        self.txt = txt

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.q: D = None
        self.v: H = None
        self.s: A = None
        self.r: A = None
        self.y: H = None
        self.w: G = None
        self.t: D = None
        self.p: G = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.q: E = None
        self.w: A = None
        self.txt = txt

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

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