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

class B:
    def __init__(self, txt: str):
        self.x: F = None
        self.u: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.r: H = None
        self.u: A = None
        self.p: D = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.y: E = None
        self.txt = txt

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

g = A("g")
j = B("j")
f = C("f")
i = D("i")
e = E("e")
l = F("l")
d = G("d")
k = H("k")
b = F("b")

g.t = j
g.v = e
g.p = e
j.x = b
j.u = e
f.r = k
f.u = g
f.p = i
i.t = j
e.s = g
e.o = f
e.w = j
e.v = i
l.w = i
l.u = i
l.x = e
l.p = g
l.v = b
l.s = f
d.y = e
k.x = g
k.u = j
k.p = j
k.r = i
b.w = i
b.u = i
b.x = e
b.p = g
b.v = l
b.s = f
assert f.u.p.o.u.t.u.o.r.txt == "
class A:
    def __init__(self, txt: str):
        self.t: B = None
        self.v: E = None
        self.p: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.x: F = None
        self.u: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.r: H = None
        self.u: A = None
        self.p: D = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.y: E = None
        self.txt = txt

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

g = A("g")
j = B("j")
f = C("f")
i = D("i")
e = E("e")
l = F("l")
d = G("d")
k = H("k")
b = F("b")

g.t = j
g.v = e
g.p = e
j.x = b
j.u = e
f.r = k
f.u = g
f.p = i
i.t = j
e.s = g
e.o = f
e.w = j
e.v = i
l.w = i
l.u = i
l.x = e
l.p = g
l.v = b
l.s = f
d.y = e
k.x = g
k.u = j
k.p = j
k.r = i
b.w = i
b.u = i
b.x = e
b.p = g
b.v = l
b.s = f
assert f.u.p.o.u.t.u.o.r.txt == "k"