class A:
    def __init__(self, txt: str):
        self.u: F = None
        self.v: D = None
        self.r: B = None
        self.w: C = None
        self.x: C = None
        self.q: G = None
        self.o: B = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.v: E = None
        self.w: H = None
        self.r: E = None
        self.s: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: B = None
        self.q: D = None
        self.y: F = None
        self.r: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: E = None
        self.y: C = None
        self.txt = txt

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

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

m = A("m")
l = B("l")
n = C("n")
c = D("c")
d = E("d")
g = F("g")
i = G("i")
j = H("j")

m.u = g
m.v = c
m.r = l
m.o = l
m.w = n
m.x = n
m.q = i
l.y = j
l.x = j
l.o = j
l.r = n
l.p = n
l.t = c
l.v = c
n.t = d
c.v = d
c.r = d
c.w = j
c.s = i
d.o = l
d.q = c
d.y = g
d.r = m
g.v = d
g.y = n
i.t = g
i.w = c
i.s = l
j.y = n
assert c.s.s.y.y.t.y.v.txt == "
class A:
    def __init__(self, txt: str):
        self.u: F = None
        self.v: D = None
        self.r: B = None
        self.w: C = None
        self.x: C = None
        self.q: G = None
        self.o: B = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.v: E = None
        self.w: H = None
        self.r: E = None
        self.s: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: B = None
        self.q: D = None
        self.y: F = None
        self.r: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: E = None
        self.y: C = None
        self.txt = txt

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

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

m = A("m")
l = B("l")
n = C("n")
c = D("c")
d = E("d")
g = F("g")
i = G("i")
j = H("j")

m.u = g
m.v = c
m.r = l
m.o = l
m.w = n
m.x = n
m.q = i
l.y = j
l.x = j
l.o = j
l.r = n
l.p = n
l.t = c
l.v = c
n.t = d
c.v = d
c.r = d
c.w = j
c.s = i
d.o = l
d.q = c
d.y = g
d.r = m
g.v = d
g.y = n
i.t = g
i.w = c
i.s = l
j.y = n
assert c.s.s.y.y.t.y.v.txt == "d"