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

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

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

class D:
    def __init__(self, txt: str):
        self.r: H = None
        self.q: C = None
        self.x: E = None
        self.t: E = None
        self.y: B = None
        self.v: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: A = None
        self.p: B = None
        self.y: G = None
        self.z: F = None
        self.w: F = None
        self.v: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: D = None
        self.x: H = None
        self.r: E = None
        self.s: A = None
        self.v: E = None
        self.z: F = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.r: D = None
        self.y: B = None
        self.z: C = None
        self.t: A = None
        self.o: D = None
        self.p: F = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.r: H = None
        self.q: C = None
        self.x: E = None
        self.t: E = None
        self.y: B = None
        self.v: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: A = None
        self.p: B = None
        self.y: G = None
        self.z: F = None
        self.w: F = None
        self.v: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: D = None
        self.x: H = None
        self.r: E = None
        self.s: A = None
        self.v: E = None
        self.z: F = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.r: D = None
        self.y: B = None
        self.z: C = None
        self.t: A = None
        self.o: D = None
        self.p: F = None
        self.txt = txt

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

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