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

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

class C:
    def __init__(self, txt: str):
        self.z: F = None
        self.o: F = None
        self.q: D = None
        self.t: B = None
        self.s: E = None
        self.txt = txt

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

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

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

b = A("b")
e = B("e")
j = C("j")
k = D("k")
f = E("f")
d = F("d")
h = C("h")
m = B("m")

b.y = j
b.v = j
b.p = f
e.y = j
e.x = k
e.p = k
e.t = f
e.o = f
j.z = d
j.o = d
j.q = k
j.t = e
j.s = f
k.p = d
k.y = b
k.v = j
f.o = b
d.t = k
d.x = k
h.z = d
h.o = d
h.q = k
h.t = m
h.s = f
m.y = j
m.x = k
m.p = k
m.t = f
m.o = f
assert h.q.p.x.v.t.txt == "
class A:
    def __init__(self, txt: str):
        self.y: C = None
        self.p: E = None
        self.v: C = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.z: F = None
        self.o: F = None
        self.q: D = None
        self.t: B = None
        self.s: E = None
        self.txt = txt

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

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

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

b = A("b")
e = B("e")
j = C("j")
k = D("k")
f = E("f")
d = F("d")
h = C("h")
m = B("m")

b.y = j
b.v = j
b.p = f
e.y = j
e.x = k
e.p = k
e.t = f
e.o = f
j.z = d
j.o = d
j.q = k
j.t = e
j.s = f
k.p = d
k.y = b
k.v = j
f.o = b
d.t = k
d.x = k
h.z = d
h.o = d
h.q = k
h.t = m
h.s = f
m.y = j
m.x = k
m.p = k
m.t = f
m.o = f
assert h.q.p.x.v.t.txt == "e"