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

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

class C:
    def __init__(self, txt: str):
        self.w: A = None
        self.p: H = None
        self.q: E = None
        self.o: F = None
        self.z: B = None
        self.x: A = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.u: D = None
        self.t: A = None
        self.y: D = None
        self.w: B = None
        self.r: G = None
        self.txt = txt

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

e = A("e")
c = B("c")
d = C("d")
b = D("b")
f = E("f")
n = F("n")
a = G("a")
k = H("k")
g = G("g")

e.o = f
e.r = d
e.p = k
c.w = b
c.z = b
c.q = d
c.u = k
c.v = e
d.w = e
d.x = e
d.p = k
d.q = f
d.o = n
d.z = c
b.r = f
b.t = f
b.q = k
b.o = k
b.v = e
f.u = b
f.v = c
n.w = b
n.x = b
a.u = b
a.y = b
a.t = e
a.w = c
a.r = g
k.p = b
k.u = c
k.t = c
k.w = d
g.u = b
g.y = b
g.t = e
g.w = c
g.r = a
assert d.o.x.v.o.txt == "
class A:
    def __init__(self, txt: str):
        self.o: E = None
        self.r: C = None
        self.p: H = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.w: A = None
        self.p: H = None
        self.q: E = None
        self.o: F = None
        self.z: B = None
        self.x: A = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.u: D = None
        self.t: A = None
        self.y: D = None
        self.w: B = None
        self.r: G = None
        self.txt = txt

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

e = A("e")
c = B("c")
d = C("d")
b = D("b")
f = E("f")
n = F("n")
a = G("a")
k = H("k")
g = G("g")

e.o = f
e.r = d
e.p = k
c.w = b
c.z = b
c.q = d
c.u = k
c.v = e
d.w = e
d.x = e
d.p = k
d.q = f
d.o = n
d.z = c
b.r = f
b.t = f
b.q = k
b.o = k
b.v = e
f.u = b
f.v = c
n.w = b
n.x = b
a.u = b
a.y = b
a.t = e
a.w = c
a.r = g
k.p = b
k.u = c
k.t = c
k.w = d
g.u = b
g.y = b
g.t = e
g.w = c
g.r = a
assert d.o.x.v.o.txt == "f"