class A:
    def __init__(self, txt: str):
        self.s: C = None
        self.z: C = None
        self.u: C = None
        self.p: C = None
        self.t: G = None
        self.y: E = None
        self.r: G = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.v: F = None
        self.u: A = None
        self.t: F = None
        self.r: F = None
        self.o: A = None
        self.p: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: G = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.q: C = None
        self.r: G = None
        self.o: B = None
        self.u: B = None
        self.w: C = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.v: F = None
        self.u: A = None
        self.t: F = None
        self.r: F = None
        self.o: A = None
        self.p: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: G = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.q: C = None
        self.r: G = None
        self.o: B = None
        self.u: B = None
        self.w: C = None
        self.txt = txt

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

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