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

class B:
    def __init__(self, txt: str):
        self.s: C = None
        self.x: G = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.v: A = None
        self.t: H = None
        self.s: A = None
        self.q: H = None
        self.x: A = None
        self.txt = txt

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

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.s: C = None
        self.x: G = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.v: A = None
        self.t: H = None
        self.s: A = None
        self.q: H = None
        self.x: A = None
        self.txt = txt

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

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

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

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

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

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