class A:
    def __init__(self, txt: str):
        self.x: G = None
        self.w: B = None
        self.o: E = None
        self.v: H = None
        self.t: B = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.r: B = None
        self.t: B = None
        self.p: D = None
        self.w: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: E = None
        self.u: C = None
        self.o: D = None
        self.z: H = None
        self.r: E = None
        self.w: C = None
        self.y: B = None
        self.x: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.y: C = None
        self.w: C = None
        self.txt = txt

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.r: B = None
        self.t: B = None
        self.p: D = None
        self.w: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: E = None
        self.u: C = None
        self.o: D = None
        self.z: H = None
        self.r: E = None
        self.w: C = None
        self.y: B = None
        self.x: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.y: C = None
        self.w: C = None
        self.txt = txt

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

h.x = e
h.w = l
h.t = l
h.o = m
h.v = a
l.y = j
i.p = l
j.p = a
j.r = m
j.w = l
j.x = h
j.t = h
n.r = l
n.t = l
n.p = j
n.w = a
k.q = n
k.u = i
k.w = i
k.o = j
k.x = j
k.z = a
k.r = m
k.y = l
g.t = h
a.y = i
a.w = i
m.r = l
m.t = l
m.p = j
m.w = a
e.t = h
assert n.w.y.p.y.txt == "j"