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

class B:
    def __init__(self, txt: str):
        self.w: C = None
        self.x: D = None
        self.v: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: B = None
        self.u: A = None
        self.v: D = None
        self.t: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.u: H = None
        self.o: F = None
        self.x: D = None
        self.p: B = None
        self.y: G = None
        self.z: G = None
        self.txt = txt

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

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

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

l = A("l")
b = B("b")
c = C("c")
g = D("g")
h = E("h")
e = F("e")
k = G("k")
d = H("d")
i = A("i")
n = F("n")

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

class B:
    def __init__(self, txt: str):
        self.w: C = None
        self.x: D = None
        self.v: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: B = None
        self.u: A = None
        self.v: D = None
        self.t: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.u: H = None
        self.o: F = None
        self.x: D = None
        self.p: B = None
        self.y: G = None
        self.z: G = None
        self.txt = txt

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

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

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

l = A("l")
b = B("b")
c = C("c")
g = D("g")
h = E("h")
e = F("e")
k = G("k")
d = H("d")
i = A("i")
n = F("n")

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