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

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

class C:
    def __init__(self, txt: str):
        self.o: D = None
        self.t: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: A = None
        self.p: H = None
        self.z: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: F = None
        self.v: C = None
        self.p: B = None
        self.t: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: I = None
        self.o: H = None
        self.v: D = None
        self.p: C = None
        self.x: B = None
        self.w: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: J = None
        self.p: H = None
        self.z: B = None
        self.w: H = None
        self.r: B = None
        self.u: J = None
        self.q: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: D = None
        self.o: I = None
        self.s: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.o: G = None
        self.t: C = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.z: E = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.o: D = None
        self.t: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: A = None
        self.p: H = None
        self.z: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: F = None
        self.v: C = None
        self.p: B = None
        self.t: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: I = None
        self.o: H = None
        self.v: D = None
        self.p: C = None
        self.x: B = None
        self.w: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: J = None
        self.p: H = None
        self.z: B = None
        self.w: H = None
        self.r: B = None
        self.u: J = None
        self.q: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: D = None
        self.o: I = None
        self.s: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.o: G = None
        self.t: C = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.z: E = None
        self.txt = txt

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

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