1 whether you will stay or leave is up to the headmaster.(主语从句)
2 Only by doing exercise everyday will you keep healthy.(倒装)