#include #include #include using namespace std; int ven; char s[101]; int main() { cin.getline(s,100);cin>>ven; if(strcmp(s,"Single")==0) { if(ven<=9075) cout<<(int)((ven*1.0)/10); if(9075406750) cout<<(int)(ven*1.0)*39.6/100; } if(strcmp(s,"Married joint filers")==0) { if(ven<=18150) cout<<(int)((ven*1.0)/10); if(181504057600) cout<<(int)(ven*1.0)*39.6/100; } if(strcmp(s,"Surviving spouses")==0) { if(ven<=18150) cout<<(int)((ven*1.0)/10); if(18150457600) cout<<(int)(ven*1.0)*39.6/100; } if(strcmp(s,"Heads of household")==0) { if(ven<=12950) cout<<(int)((ven*1.0)/10); if(12950432200) cout<<(int)(ven*1.0)*39.6/100; } if(strcmp(s,"Married filling separately")==0) { if(ven<=9075) cout<<(int)((ven*1.0)/10); if(9075228800) cout<<(int)(ven*1.0)*39.6/100; } return 0; }