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

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

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

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

class E:
    def __init__(self, txt: str):
        self.s: A = None
        self.o: G = None
        self.x: H = None
        self.t: D = None
        self.q: J = None
        self.p: B = None
        self.txt = txt

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

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

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

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

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

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.s: A = None
        self.o: G = None
        self.x: H = None
        self.t: D = None
        self.q: J = None
        self.p: B = None
        self.txt = txt

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

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

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

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

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

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

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