class A:
    def __init__(self, txt: str):
        self.t: B = None
        self.r: E = None
        self.o: C = None
        self.z: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.v: C = None
        self.w: F = None
        self.t: A = None
        self.q: C = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.s: F = None
        self.u: F = None
        self.z: C = None
        self.p: A = None
        self.w: F = None
        self.v: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: F = None
        self.y: A = None
        self.t: C = None
        self.s: B = None
        self.w: D = None
        self.z: B = None
        self.txt = txt

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

h = A("h")
j = B("j")
n = C("n")
m = D("m")
i = E("i")
b = F("b")
g = E("g")
f = C("f")
c = F("c")

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

class B:
    def __init__(self, txt: str):
        self.v: C = None
        self.w: F = None
        self.t: A = None
        self.q: C = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.s: F = None
        self.u: F = None
        self.z: C = None
        self.p: A = None
        self.w: F = None
        self.v: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: F = None
        self.y: A = None
        self.t: C = None
        self.s: B = None
        self.w: D = None
        self.z: B = None
        self.txt = txt

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

h = A("h")
j = B("j")
n = C("n")
m = D("m")
i = E("i")
b = F("b")
g = E("g")
f = C("f")
c = F("c")

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