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

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

class C:
    def __init__(self, txt: str):
        self.p: C = None
        self.t: B = None
        self.txt = txt

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

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

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

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.p: C = None
        self.t: B = None
        self.txt = txt

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

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

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

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

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

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

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