class A:
    def __init__(self, txt: str):
        self.x: G = None
        self.t: B = None
        self.r: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.u: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: F = None
        self.t: A = None
        self.v: F = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.r: D = None
        self.t: E = None
        self.txt = txt

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

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

f.x = a
f.t = k
f.r = d
k.u = f
c.o = d
c.v = d
c.t = f
l.w = k
l.t = k
l.y = k
l.v = m
l.x = c
l.o = c
l.s = f
m.r = k
m.q = b
m.s = f
m.y = j
m.u = d
d.y = m
a.r = e
a.t = m
b.v = c
b.x = j
b.w = f
b.p = m
b.q = d
e.w = k
e.t = k
e.y = k
e.v = j
e.x = c
e.o = c
e.s = f
j.r = k
j.q = b
j.s = f
j.y = m
j.u = d
assert b.p.r.u.t.u.x.t.y.r.txt == "
class A:
    def __init__(self, txt: str):
        self.x: G = None
        self.t: B = None
        self.r: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.u: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: F = None
        self.t: A = None
        self.v: F = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.r: D = None
        self.t: E = None
        self.txt = txt

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

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

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