class A:
    def __init__(self, txt: str):
        self.y: G = None
        self.r: A = None
        self.z: H = None
        self.v: E = None
        self.s: C = None
        self.p: H = None
        self.q: C = None
        self.w: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.q: D = None
        self.p: D = None
        self.u: A = None
        self.x: A = None
        self.r: F = None
        self.w: E = None
        self.txt = txt

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

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

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

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.q: D = None
        self.p: D = None
        self.u: A = None
        self.x: A = None
        self.r: F = None
        self.w: E = None
        self.txt = txt

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

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

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

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

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

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

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

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