class A:
    def __init__(self, txt: str):
        self.p: J = None
        self.r: D = None
        self.y: G = None
        self.z: G = None
        self.u: C = None
        self.x: H = None
        self.v: D = None
        self.w: J = None
        self.s: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.p: H = None
        self.q: I = None
        self.v: D = None
        self.s: G = None
        self.y: G = None
        self.u: I = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: J = None
        self.y: B = None
        self.q: D = None
        self.o: A = None
        self.s: A = None
        self.r: J = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.s: F = None
        self.u: I = None
        self.v: B = None
        self.r: D = None
        self.o: A = None
        self.w: J = None
        self.t: B = None
        self.x: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: J = None
        self.t: G = None
        self.v: H = None
        self.w: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: B = None
        self.p: D = None
        self.z: B = None
        self.y: E = None
        self.v: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: J = None
        self.s: A = None
        self.t: J = None
        self.u: G = None
        self.y: B = None
        self.v: I = None
        self.x: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.r: H = None
        self.p: J = None
        self.y: B = None
        self.z: C = None
        self.w: C = None
        self.x: F = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.w: D = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.p: H = None
        self.q: I = None
        self.v: D = None
        self.s: G = None
        self.y: G = None
        self.u: I = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: J = None
        self.y: B = None
        self.q: D = None
        self.o: A = None
        self.s: A = None
        self.r: J = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.s: F = None
        self.u: I = None
        self.v: B = None
        self.r: D = None
        self.o: A = None
        self.w: J = None
        self.t: B = None
        self.x: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: J = None
        self.t: G = None
        self.v: H = None
        self.w: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: B = None
        self.p: D = None
        self.z: B = None
        self.y: E = None
        self.v: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: J = None
        self.s: A = None
        self.t: J = None
        self.u: G = None
        self.y: B = None
        self.v: I = None
        self.x: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.r: H = None
        self.p: J = None
        self.y: B = None
        self.z: C = None
        self.w: C = None
        self.x: F = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.w: D = None
        self.txt = txt

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

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