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

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

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

class D:
    def __init__(self, txt: str):
        self.q: H = None
        self.y: A = None
        self.p: G = None
        self.o: D = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: D = None
        self.x: H = None
        self.r: D = None
        self.p: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.w: F = None
        self.y: G = None
        self.v: G = None
        self.o: G = None
        self.p: B = None
        self.s: H = None
        self.u: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: E = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.q: H = None
        self.y: A = None
        self.p: G = None
        self.o: D = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: D = None
        self.x: H = None
        self.r: D = None
        self.p: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.w: F = None
        self.y: G = None
        self.v: G = None
        self.o: G = None
        self.p: B = None
        self.s: H = None
        self.u: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: E = None
        self.txt = txt

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

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