class A:
    def __init__(self, txt: str):
        self.u: E = None
        self.v: E = None
        self.s: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.t: B = None
        self.o: C = None
        self.z: E = None
        self.x: G = None
        self.w: F = None
        self.p: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: F = None
        self.p: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: D = None
        self.t: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: E = None
        self.v: D = None
        self.z: H = None
        self.u: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: F = None
        self.v: A = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.t: B = None
        self.o: C = None
        self.z: E = None
        self.x: G = None
        self.w: F = None
        self.p: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: F = None
        self.p: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: D = None
        self.t: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: E = None
        self.v: D = None
        self.z: H = None
        self.u: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: F = None
        self.v: A = None
        self.txt = txt

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

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

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