class A:
    def __init__(self, txt: str):
        self.s: B = None
        self.x: G = None
        self.u: F = None
        self.q: C = None
        self.t: C = None
        self.p: C = None
        self.w: G = None
        self.y: G = None
        self.o: I = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.y: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.x: F = None
        self.o: H = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.t: D = None
        self.o: A = None
        self.s: F = None
        self.z: C = None
        self.q: D = None
        self.w: C = None
        self.x: D = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.y: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.x: F = None
        self.o: H = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.t: D = None
        self.o: A = None
        self.s: F = None
        self.z: C = None
        self.q: D = None
        self.w: C = None
        self.x: D = None
        self.txt = txt

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

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

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