class A:
    def __init__(self, txt: str):
        self.z: E = None
        self.q: D = None
        self.r: G = None
        self.s: C = None
        self.o: D = None
        self.w: J = None
        self.t: I = None
        self.v: G = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.p: J = None
        self.y: B = None
        self.w: H = None
        self.s: A = None
        self.o: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: H = None
        self.v: C = None
        self.s: C = None
        self.r: J = None
        self.y: C = None
        self.o: B = None
        self.z: E = None
        self.x: F = None
        self.w: F = None
        self.q: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.p: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: A = None
        self.r: A = None
        self.y: A = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.y: F = None
        self.w: A = None
        self.u: A = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.p: J = None
        self.y: B = None
        self.w: H = None
        self.s: A = None
        self.o: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: H = None
        self.v: C = None
        self.s: C = None
        self.r: J = None
        self.y: C = None
        self.o: B = None
        self.z: E = None
        self.x: F = None
        self.w: F = None
        self.q: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.p: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: A = None
        self.r: A = None
        self.y: A = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.y: F = None
        self.w: A = None
        self.u: A = None
        self.txt = txt

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

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