class A:
    def __init__(self, txt: str):
        self.t: C = None
        self.s: H = None
        self.u: I = None
        self.x: G = None
        self.y: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: H = None
        self.s: G = None
        self.w: A = None
        self.x: C = None
        self.y: A = None
        self.r: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: G = None
        self.w: E = None
        self.o: E = None
        self.txt = txt

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.p: D = None
        self.y: B = None
        self.r: B = None
        self.x: I = None
        self.t: B = None
        self.q: E = None
        self.z: G = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.o: H = None
        self.s: G = None
        self.w: A = None
        self.x: C = None
        self.y: A = None
        self.r: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: G = None
        self.w: E = None
        self.o: E = None
        self.txt = txt

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.p: D = None
        self.y: B = None
        self.r: B = None
        self.x: I = None
        self.t: B = None
        self.q: E = None
        self.z: G = None
        self.txt = txt

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

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

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