buggy_code
stringlengths
11
625k
fixed_code
stringlengths
17
625k
bug_type
stringlengths
2
4.45k
language
int64
0
8
token_count
int64
5
200k
N = gets.split("") if N[-1] == "3" puts 'bon' elsif N[-1] == "0" || N[-1] == "1" || N[-1] == "6" || N[-1] == "8" puts 'pon' else puts 'hon' end
N = gets.chomp.split("") if N[-1] == "3" puts 'bon' elsif N[-1] == "0" || N[-1] == "1" || N[-1] == "6" || N[-1] == "8" puts 'pon' else puts 'hon' end
[["+", 0, 493, 0, 662, 12, 652, 486, 652, 735, 22], ["+", 36, 36, 0, 493, 0, 662, 12, 652, 17, 131]]
4
73
n = input() f = int(n[-1]) if f == 3: print("bon") elif f == 0 or f == 1 or f == 6 or f == 8: print("pon") else: print("bon")
n = input() f = int(n[-1]) if f == 3: print("bon") elif f == 0 or f == 1 or f == 6 or f == 8: print("pon") else: print("hon")
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
57
N=int(input()) k=N%10 if k==2 or k==4 or k==5 or k==9:print("hon") elif k==3:print("bon") else:print("pon")
N=int(input()) k=N%10 if k==2 or k==4 or k==5 or k==7 or k==9:print("hon") elif k==3:print("bon") else:print("pon")
[["+", 0, 57, 15, 679, 31, 679, 12, 666, 0, 612], ["+", 36, 36, 0, 656, 0, 57, 15, 679, 17, 354], ["+", 0, 656, 0, 57, 15, 679, 12, 666, 0, 22], ["+", 0, 656, 0, 57, 15, 679, 12, 666, 667, 60]]
5
55
s = str(input()) if s[-1] == 0 or s[-1] ==1 or s[-1] == 6 or s[-1] ==8: print('pon') exit() elif s[-1] == 3: print('bon') exit() else: print('hon') exit()
s = str(input()) if s[-1] == '0' or s[-1] =='1' or s[-1] == '6' or s[-1] =='8': print('pon') #print(s[-1]) exit() elif s[-1] == '3': print('bon') exit() else: print('hon') exit()
[["+", 31, 679, 31, 679, 31, 666, 0, 557, 0, 654], ["+", 31, 679, 31, 679, 31, 666, 0, 557, 0, 655], ["+", 31, 679, 31, 679, 12, 666, 0, 557, 0, 654], ["+", 31, 679, 31, 679, 12, 666, 0, 557, 0, 655], ["+", 15, 679, 31, 679, 12, 666, 0, 557, 0, 654], ["+", 15, 679, 31, 679, 12, 666, 0, 557, 0, 655], ["+", 0, 57, 15, 67...
5
79
n = str(input()) s=(n[-1]) if s==3: print('bon') elif s==0 or s==1 or s==6 or s==8: print('pon') else: print('hon')
n = str(input()) s=(n[-1]) if s=='3': print('bon') elif s=='0' or s=='1' or s=='6' or s=='8': print('pon') else: print('hon')
[["+", 0, 656, 0, 57, 15, 666, 0, 557, 0, 654], ["+", 0, 656, 0, 57, 15, 666, 0, 557, 0, 655], ["+", 31, 679, 31, 679, 31, 666, 0, 557, 0, 654], ["+", 31, 679, 31, 679, 31, 666, 0, 557, 0, 655], ["+", 31, 679, 31, 679, 12, 666, 0, 557, 0, 654], ["+", 31, 679, 31, 679, 12, 666, 0, 557, 0, 655], ["+", 15, 679, 31, 679, 1...
5
59
import java.util.Scanner; public class Main { public static void main(String[] args) { try (Scanner scanner = new Scanner(System.in)) { String n = scanner.next(); int N = Integer.parseInt(n.substring(1)); if (N == 2 || N == 4 || N == 5 || N == 7 || N == 9) { System.out.print("hon"); ...
import java.util.Scanner; public class Main { public static void main(String[] args) { try (Scanner scanner = new Scanner(System.in)) { String n = scanner.next(); int N = Integer.parseInt(n.substring(n.length() - 1)); if (N == 2 || N == 4 || N == 5 || N == 7 || N == 9) { System.out.pr...
[["+", 0, 492, 3, 4, 0, 16, 31, 492, 500, 22], ["+", 0, 492, 3, 4, 0, 16, 31, 492, 0, 131], ["+", 0, 492, 3, 4, 0, 16, 31, 492, 141, 22], ["+", 3, 4, 0, 16, 31, 492, 3, 4, 0, 24], ["+", 3, 4, 0, 16, 31, 492, 3, 4, 0, 25], ["+", 3, 4, 0, 492, 3, 4, 0, 16, 17, 33]]
3
144
#include <bits/stdc++.h> using namespace std; int main() { int N; cin >> N; if (N % 10 == 0 || N % 10 == 1 || N % 10 == 6 || N % 10 == 8) { cout << "pon" << endl; } if (N % 10 == 3) { cout << "bon" << endl; } else { cout << "hon" << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { int N; cin >> N; if (N % 10 == 0 || N % 10 == 1 || N % 10 == 6 || N % 10 == 8) { cout << "pon" << endl; } else if (N % 10 == 3) { cout << "bon" << endl; } else { cout << "hon" << endl; } }
[["+", 0, 14, 8, 9, 0, 57, 75, 76, 0, 95]]
1
84
N=int(input()) if N[-1]=="2" or N[-1]=="4" or N[-1]=="5" or N[-1]=="7" or N[-1]=="9": print("hon") elif N[-1]=="0" or N[-1]=="1" or N[-1]=="6" or N[-1]=="8": print("pon") elif N[-1]=="3": print("bon")
N=input() if N[-1]=="2" or N[-1]=="4" or N[-1]=="5" or N[-1]=="7" or N[-1]=="9": print("hon") elif N[-1]=="0" or N[-1]=="1" or N[-1]=="6" or N[-1]=="8": print("pon") elif N[-1]=="3": print("bon")
[["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["-", 12, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
129
import random import math LI = lambda: list(map(int,input().split())) MI = lambda: map(int,input().split()) yes = lambda: print("Yes") no = lambda: print("No") I = lambda: list(input()) J = lambda x: "".join(x) II = lambda: int(input()) SI = lambda: input() #---khan17---template t = II() if t%10 == 3: print("bon") eli...
import random import math LI = lambda: list(map(int,input().split())) MI = lambda: map(int,input().split()) yes = lambda: print("Yes") no = lambda: print("No") I = lambda: list(input()) J = lambda x: "".join(x) II = lambda: int(input()) SI = lambda: input() #---khan17---template t = II() if t%10 == 3: print("bon") eli...
[["+", 0, 57, 75, 665, 15, 666, 0, 657, 17, 109], ["+", 0, 57, 75, 665, 15, 666, 0, 657, 12, 612]]
5
144
import java.util.*; class Main { static Scanner sc = new Scanner(System.in); public static void main(String[] args) { int N = sc.nextInt(); N %= 10; if (N == 3) System.out.println("bon"); if ((N == 0) || (N == 1) || (N == 6) || (N == 8)) System.out.println("pon"); else System.o...
import java.util.*; class Main { static Scanner sc = new Scanner(System.in); public static void main(String[] args) { int N = sc.nextInt(); N %= 10; // for(int N=0;N<10;N++){ if (N == 3) System.out.println("bon"); else if ((N == 0) || (N == 1) || (N == 6) || (N == 8)) System.out.prin...
[["+", 8, 498, 0, 195, 8, 196, 0, 57, 0, 95]]
3
114
#include <bits/stdc++.h> #if ONLINE_JUDGE #define DEBUG false #else #define DEBUG true #endif #define REP(i, k, n) for (int i = (int)(k); i < (int)(n); i++) #define rep(i, n) REP(i, 0, n) #define rep1(i, n) REP(i, 1, n) #define rREP(i, k, n) for (int i = (int)(n)-1; i >= k; i--) #define rrep(i, n) rREP(i, 0, n) #define...
#include <bits/stdc++.h> #if ONLINE_JUDGE #define DEBUG false #else #define DEBUG true #endif #define REP(i, k, n) for (int i = (int)(k); i < (int)(n); i++) #define rep(i, n) REP(i, 0, n) #define rep1(i, n) REP(i, 1, n) #define rREP(i, k, n) for (int i = (int)(n)-1; i >= k; i--) #define rrep(i, n) rREP(i, 0, n) #define...
[["-", 75, 76, 0, 57, 15, 339, 51, 16, 12, 13], ["+", 75, 76, 0, 57, 15, 339, 51, 16, 12, 13]]
1
663
#include <bits/stdc++.h> #define l_ength size const int inf = (1 << 30); const int mod = 1000000007; // 998244353 using ll = long long; using namespace std; int main() { int n; cin >> n; if (n == 3) cout << "bon" << endl; if (n == 0 or n == 1 or n == 6 or n == 8) cout << "pon" << endl; else cout ...
#include <bits/stdc++.h> #define l_ength size const int inf = (1 << 30); const int mod = 1000000007; // 998244353 using ll = long long; using namespace std; int main() { int n; cin >> n; n %= 10; if (n == 3) cout << "bon" << endl; else if (n == 0 or n == 1 or n == 6 or n == 8) cout << "pon" << endl; ...
[["+", 0, 14, 8, 9, 0, 1, 0, 11, 31, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 17, 132], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 12, 13], ["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35], ["+", 0, 14, 8, 9, 0, 57, 75, 76, 0, 95]]
1
94
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) typedef long long ll; const int INF = 1000000000; // 10^9 int main() { // ifstream in("data1.txt"); // cin.rdbuf(in.rdbuf()); string N; cin >> N; int x = N.length(); if (N[x] == '2' || N[x] == '4' || N[x] == '...
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) typedef long long ll; const int INF = 1000000000; // 10^9 int main() { // ifstream in("data1.txt"); // cin.rdbuf(in.rdbuf()); string N; cin >> N; int x = N.length() - 1; if (N[x] == '2' || N[x] == '4' || N[x] ...
[["+", 8, 9, 0, 43, 49, 50, 51, 16, 17, 33], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13]]
1
167
N = str(input()) n = int(N[-1]) print(n) if n in (2,4,5,7,9): print('hon') elif n in (0,1,6,8): print('pon') else: print('bon')
N = str(input()) n = int(N[-1]) if n in (2,4,5,7,9): print('hon') elif n in (0,1,6,8): print('pon') else: print('bon')
[["-", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]]
5
70
n = input() a = int(n[-1]) print(a) if (a in [2,4,5,7,9]): print('hon') elif (a in [0 , 1 , 6 , 8]): print('pon') elif (a == 3): print('bon')
n = input() a = int(n[-1]) if (a in [2,4,5,7,9]): print('hon') elif (a in [0 , 1 , 6 , 8]): print('pon') elif (a == 3): print('bon')
[["-", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]]
5
76
N = input() N = int(N[len(N)-1]) if N == 3: print('bon') if N == 0 or N == 1 or N == 6 or N == 8: print('pon') else: print('hon')
N = input() N = int(N[len(N)-1]) if N == 3: print('bon') exit() if N == 0 or N == 1 or N == 6 or N == 8: print('pon') exit() else: print('hon')
[["+", 0, 57, 64, 196, 0, 1, 0, 652, 63, 22], ["+", 64, 196, 0, 1, 0, 652, 3, 4, 0, 24], ["+", 64, 196, 0, 1, 0, 652, 3, 4, 0, 25]]
5
61
a = input() b = a[-1] ans = "bon" if b == "2" or b == "4" or b == "5" or b == "7": ans = "hon" elif b == "0" or b == "1" or b == "6" or b == "8": ans = "pon" print(ans)
a = input() b = a[-1] ans = "bon" if b == "2" or b == "4" or b == "5" or b == "7" or b == "9": ans = "hon" elif b == "0" or b == "1" or b == "6" or b == "8": ans = "pon" print(ans)
[["+", 36, 36, 0, 656, 0, 57, 15, 679, 17, 354], ["+", 0, 656, 0, 57, 15, 679, 12, 666, 0, 22], ["+", 0, 656, 0, 57, 15, 679, 12, 666, 667, 60], ["+", 0, 57, 15, 679, 12, 666, 0, 557, 0, 654], ["+", 0, 57, 15, 679, 12, 666, 0, 557, 0, 6], ["+", 0, 57, 15, 679, 12, 666, 0, 557, 0, 655]]
5
81
n = str(input()) if len(n) != 1: n = n[:-1] if n == "2" or n == "4" or n == "5" or n == "7" or n == "9": print("hon") elif n == "0" or n == "1" or n == "6" or n == "8": print("pon") else: print("bon")
n = str(input()) if len(n) != 1: n = n[-1:] if n == "2" or n == "4" or n == "5" or n == "7" or n == "9": print("hon") elif n == "0" or n == "1" or n == "6" or n == "8": print("pon") else: print("bon")
[["-", 0, 1, 0, 662, 12, 206, 206, 663, 0, 102], ["+", 0, 1, 0, 662, 12, 206, 206, 663, 0, 102]]
5
100
n = str(input()) hon = [2,3,5,7,9] pon = [0,1,6,8] bon = [3] if int(n[-1]) in hon: print('hon') elif int(n[-1]) in pon: print('pon') else: print('bon')
n = str(input()) hon = [2,4,5,7,9] pon = [0,1,6,8] bon = [3] if int(n[-1]) in hon: print('hon') elif int(n[-1]) in pon: print('pon') else: print('bon')
[["-", 0, 656, 0, 1, 0, 662, 12, 634, 0, 612], ["+", 0, 656, 0, 1, 0, 662, 12, 634, 0, 612]]
5
81
#include <bits/stdc++.h> using namespace std; int main() { int n; int m = n % 10; if (m == 3) cout << "bon"; else if (m == 0 || m == 1 || m == 6 || m == 8) cout << "pon"; else cout << "hon"; }
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; int m = n % 10; if (m == 3) cout << "bon"; else if (m == 0 || m == 1 || m == 6 || m == 8) cout << "pon"; else cout << "hon"; }
[["+", 0, 14, 8, 9, 0, 1, 0, 16, 31, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]]
1
66
#pragma region #include <bits/stdc++.h> #define _GLIBCXX_DEBUG #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define repr(i, n) for (int i = n; i > 0; i--) #define repc(i, m, n) for (int i = m; i < n; i++) #define reprc(i, m, n) for (int i = m; i > n; i--) #define all(v) v.begin(), v.end() #define INF 1e9 #defin...
#pragma region #include <bits/stdc++.h> #define _GLIBCXX_DEBUG #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define repr(i, n) for (int i = n; i > 0; i--) #define repc(i, m, n) for (int i = m; i < n; i++) #define reprc(i, m, n) for (int i = m; i > n; i--) #define all(v) v.begin(), v.end() #define INF 1e9 #defin...
[["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 106], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 31, 22], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 60], ["+", 15, 339, 51, 16, 12, 16, 12, 103, 0, 104], ["+", 15, 339, 51, 16, 12, 16, 12, 103, 0, 125]]
1
176
a = input()[-1] if a == 3: print('bon') elif a == 0 or a==1 or a==6 or a==8: print('pon') else: print('hon')
a = input()[-1] if a == '3': print('bon') elif a == '0' or a=='1' or a=='6' or a=='8': print('pon') else: print('hon')
[["+", 0, 656, 0, 57, 15, 666, 0, 557, 0, 654], ["+", 0, 656, 0, 57, 15, 666, 0, 557, 0, 655], ["+", 31, 679, 31, 679, 31, 666, 0, 557, 0, 654], ["+", 31, 679, 31, 679, 31, 666, 0, 557, 0, 655], ["+", 31, 679, 31, 679, 12, 666, 0, 557, 0, 654], ["+", 31, 679, 31, 679, 12, 666, 0, 557, 0, 655], ["+", 15, 679, 31, 679, 1...
5
51
# -*- coding: utf-8 -*- def main(): n = int(input()) r = n % 10 if n in [2, 4, 5, 7, 9]: print('hon\n') elif n in [0, 1, 6, 8]: print('pon\n') else: print('bon\n') if __name__ == '__main__': main()
# -*- coding: utf-8 -*- def main(): n = int(input()) r = n % 10 if r in [2, 4, 5, 7, 9]: print('hon\n') elif r in [0, 1, 6, 8]: print('pon\n') else: print('bon\n') if __name__ == '__main__': main()
[["-", 0, 14, 8, 196, 0, 57, 15, 666, 0, 22], ["+", 0, 14, 8, 196, 0, 57, 15, 666, 0, 22], ["-", 8, 196, 0, 57, 75, 665, 15, 666, 0, 22], ["+", 8, 196, 0, 57, 75, 665, 15, 666, 0, 22]]
5
80
n=input() if len(n)==1: m=int(n) else: m=int(n[-1]) print(m) if m==2 or m==4 or m==5 or m==7 or m==9: print("hon") elif m==0 or m==1 or m==6 or m==8: print("pon") elif m==3: print("bon")
n=input() if len(n)==1: m=int(n) else: m=int(n[-1]) if m==2 or m==4 or m==5 or m==7 or m==9: print("hon") elif m==0 or m==1 or m==6 or m==8: print("pon") elif m==3: print("bon")
[["-", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]]
5
96
#include <bits/stdc++.h> using namespace std; #define IO ios_base::sync_with_stdio(false) #define ll long long ll ans[400000], a[400000]; int main() { IO; ll i, j, n, m1, m2, k, t, a1, a2, l, th, h, r, mx, pr = .000000001, x, y; string s; cin >> s; n = s[s.size() - 1]; if (n == 3) cout << "bon" << endl...
#include <bits/stdc++.h> using namespace std; #define IO ios_base::sync_with_stdio(false) #define ll long long ll ans[400000], a[400000]; int main() { IO; ll i, j, n, m1, m2, k, t, a1, a2, l, th, h, r, mx, pr = .000000001, x, y; string s; cin >> s; n = s[s.size() - 1] - '0'; if (n == 3) cout << "bon" <...
[["+", 8, 9, 0, 1, 0, 11, 12, 16, 17, 33], ["+", 0, 1, 0, 11, 12, 16, 12, 103, 0, 104], ["+", 0, 1, 0, 11, 12, 16, 12, 103, 0, 125]]
1
141
#include <bits/stdc++.h> #define int long long #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define rep2(i, s, n) for (int i = (s); i < (int)(n); i++) using namespace std; signed main() { cin.tie(0); ios_base::sync_with_stdio(false); string s; cin >> s; if (s[s.size() - 1] == '2' || s[s.size() - 1]...
#include <bits/stdc++.h> #define int long long #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define rep2(i, s, n) for (int i = (s); i < (int)(n); i++) using namespace std; signed main() { cin.tie(0); ios_base::sync_with_stdio(false); string s; cin >> s; if (s[s.size() - 1] == '2' || s[s.size() - 1]...
[["-", 64, 1, 0, 16, 31, 16, 12, 103, 0, 104], ["-", 64, 1, 0, 16, 31, 16, 12, 103, 0, 125], ["-", 0, 16, 31, 16, 12, 103, 0, 42, 0, 22], ["+", 64, 1, 0, 16, 31, 16, 12, 5, 0, 62], ["+", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["-", 0, 1, 0, 16, 31, 16, 12, 103, 0, 104], ["-", 0, 1, 0, 16, 31, 16, 12, 103, 0, 125], ["+", 0...
1
225
#include <bits/stdc++.h> using namespace std; int main() { string n; ios_base::sync_with_stdio(false); cin.tie(NULL); cin >> n; long long len = n.length(); if (n[len] == '2' || n[len] == '4' || n[len] == '5' || n[len] == '7' || n[len] == '9') cout << "hon"; else if (n[len] == '0' || n[len] == ...
#include <bits/stdc++.h> using namespace std; int main() { string n; ios_base::sync_with_stdio(false); cin.tie(NULL); cin >> n; long long len = n.length(); len -= 1; if (n[len] == '2' || n[len] == '4' || n[len] == '5' || n[len] == '7' || n[len] == '9') cout << "hon"; else if (n[len] == '0' |...
[["+", 0, 14, 8, 9, 0, 1, 0, 11, 31, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 17, 110], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 12, 13], ["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]]
1
162
n = input() n_1 = n[-1] if n_1 == 3: print('bon') elif n_1 == 0 or n_1 == 1 or n_1 == 6 or n_1 == 8: print('pon') else: print('hon')
n = input() n_1 = int(n[-1]) if n_1 == 3: print('bon') elif n_1 == 0 or n_1 == 1 or n_1 == 6 or n_1 == 8: print('pon') else: print('hon')
[["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25]]
5
54
s = input() if s%10 == 2 or s%10 == 4 or s%10 == 5 or s%10 == 7 or s%10 == 9: print("hon") elif s%10 == 0 or s%10 == 1 or s%10 == 6 or s%10 == 8: print("pon") else : print("bon")
s = int(input()) if s % 10 == 2 or s % 10 == 4 or s % 10 == 5 or s % 10 == 7 or s % 10 == 9: print("hon") elif s % 10 == 0 or s % 10 == 1 or s % 10 == 6 or s % 10 == 8: print("pon") else: print("bon")
[["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
81
n = input() x = n[-1] if x in [2,4,5,7,9]: print("hon") elif x in [0,1,6,8]: print("pon") else: print("bon")
n = input() x = n[-1] if int(x) in [2,4,5,7,9]: print("hon") elif int(x) in [0,1,6,8]: print("pon") else: print("bon")
[["+", 0, 656, 0, 57, 15, 666, 0, 652, 63, 22], ["+", 0, 57, 15, 666, 0, 652, 3, 4, 0, 24], ["+", 0, 57, 15, 666, 0, 652, 3, 4, 0, 25], ["+", 0, 57, 75, 665, 15, 666, 0, 652, 63, 22], ["+", 75, 665, 15, 666, 0, 652, 3, 4, 0, 24], ["+", 75, 665, 15, 666, 0, 652, 3, 4, 0, 25]]
5
60
#include <bits/stdc++.h> using namespace std; int main() { string N; char n; n = N.at(N.size() - 1); if (n == '3') { cout << "bon" << endl; } else if (n == '0' or n == '1' or n == '6' or n == '8') { cout << "pon" << endl; } else { cout << "hon" << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { string N; char n; cin >> N; n = N.at(N.size() - 1); if (n == '3') { cout << "bon" << endl; } else if (n == '0' or n == '1' or n == '6' or n == '8') { cout << "pon" << endl; } else { cout << "hon" << endl; } }
[["+", 0, 14, 8, 9, 0, 1, 0, 16, 31, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]]
1
99
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define rep(i, n) for (int i = 0; i < (n); i++) int main() { /*変数定義,入力*/ string s; cin >> s; // ll A, B;cin >> A >> B; // vector<ll> a(N); rep(i, N) cin >> a[i]; /*演算*/ switch (s[s.length() - 1]) { case '0': cout << "pon"; b...
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define rep(i, n) for (int i = 0; i < (n); i++) int main() { /*変数定義,入力*/ string s; cin >> s; // ll A, B;cin >> A >> B; // vector<ll> a(N); rep(i, N) cin >> a[i]; /*演算*/ switch (s[s.length() - 1]) { case '0': cout << "pon"; b...
[["-", 0, 100, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 100, 0, 1, 0, 16, 12, 5, 0, 6]]
1
191
import sys import math input = sys.stdin.readline ############ ---- Input Functions ---- ############ def inp(): return(int(input())) def inlt(): return(list(map(int,input().split()))) def insr(): s = input() return(list(s[:len(s) - 1])) def invr(): return(map(int,input().split())) def solve(n): ...
import sys import math input = sys.stdin.readline ############ ---- Input Functions ---- ############ def inp(): return(int(input())) def inlt(): return(list(map(int,input().split()))) def insr(): s = input() return(list(s[:len(s) - 1])) def invr(): return(map(int,input().split())) def solve(n): ...
[["-", 8, 196, 0, 1, 0, 662, 12, 206, 206, 612], ["+", 0, 1, 0, 662, 12, 206, 206, 664, 17, 33], ["+", 0, 1, 0, 662, 12, 206, 206, 664, 28, 612]]
5
208
#include <bits/stdc++.h> using namespace std; int main() { int N; cin >> N; N %= 10; if (N == 3) { cout << "'bon'" << endl; } else if (N == 0 || N == 1 || N == 6 || N == 8) { cout << "'pon'" << endl; } else { cout << "'hon'" << endl; } return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int N; cin >> N; N %= 10; if (N == 3) { cout << "bon" << endl; } else if (N == 0 || N == 1 || N == 6 || N == 8) { cout << "pon" << endl; } else { cout << "hon" << endl; } return 0; }
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
82
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; if (n % 10 == 3) printf("bon\n"); else if (n % 10 == 0 || n % 10 == 2 || n % 10 == 6 || n % 10 == 8) printf("pon\n"); else printf("hon\n"); return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; if (n % 10 == 3) printf("bon\n"); else if (n % 10 == 0 || n % 10 == 1 || n % 10 == 6 || n % 10 == 8) printf("pon\n"); else printf("hon\n"); return 0; }
[["-", 51, 16, 31, 16, 31, 16, 12, 16, 12, 13], ["+", 51, 16, 31, 16, 31, 16, 12, 16, 12, 13]]
1
82
l_hon = [2,3,5,7,9] l_pon = [0,1,6,8] l_bon = [3] s = int(input()[-1]) if s in l_hon: print('hon') elif s in l_pon: print('pon') else: print('bon')
l_hon = [2,4,5,7,9] l_pon = [0,1,6,8] l_bon = [3] s = int(input()[-1]) if s in l_hon: print('hon') elif s in l_pon: print('pon') else: print('bon')
[["-", 0, 656, 0, 1, 0, 662, 12, 634, 0, 612], ["+", 0, 656, 0, 1, 0, 662, 12, 634, 0, 612]]
5
71
#include <algorithm> #include <iostream> #include <map> #include <math.h> #include <queue> #include <stack> #include <string> #include <utility> #include <vector> using namespace std; typedef long long ll; int main() { int N; cin >> N; if (N % 10 == 3) { cout << "bon" << endl; } else if (N % 10 == 0 || N ...
#include <algorithm> #include <iostream> #include <map> #include <math.h> #include <queue> #include <stack> #include <string> #include <utility> #include <vector> using namespace std; typedef long long ll; int main() { int N; cin >> N; if (N % 10 == 3) { cout << "bon" << endl; } else if (N % 10 == 0 || N ...
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
109
lN = list(input()) if lN[len(lN)-1]=='3': print('bon') if lN[len(lN)-1]=='0' or lN[len(lN)-1]=='1' or lN[len(lN)-1]=='6' or lN[len(lN)-1]=='8': print('pon') else: print('hon')
lN = list(input()) if lN[len(lN)-1]=='3': print('bon') elif lN[len(lN)-1]=='0' or lN[len(lN)-1]=='1' or lN[len(lN)-1]=='6' or lN[len(lN)-1]=='8': print('pon') else: print('hon')
[["-", 36, 36, 36, 36, 0, 656, 0, 57, 0, 121], ["+", 36, 36, 0, 656, 0, 57, 75, 665, 0, 683]]
5
100
import sys num = sys.stdin hon_num_list = ["2", "4", "5", "7", "9"] pon_num_list = ["0", "1", "6", "8"] bon_num_list = ["3"] if num[-1] in hon_num_list: print("hon") elif num[-1] in pon_num_list: print("pon") elif num[-1] in bon_num_list: print("bon")
import sys num = input() hon_num_list = ["2", "4", "5", "7", "9"] pon_num_list = ["0", "1", "6", "8"] bon_num_list = ["3"] if num[-1] in hon_num_list: print("hon") elif num[-1] in pon_num_list: print("pon") elif num[-1] in bon_num_list: print("bon")
[["-", 0, 656, 0, 1, 0, 662, 12, 319, 500, 22], ["-", 0, 656, 0, 1, 0, 662, 12, 319, 0, 131], ["-", 0, 656, 0, 1, 0, 662, 12, 319, 319, 22], ["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25]]
5
101
#include <bits/stdc++.h> using namespace std; int main() { int a, b; cin >> a; b = a & 10; if (b == 3) { cout << "bon"; } else if (b == 0 || b == 1 || b == 6 || b == 8) { cout << "pon"; } else { cout << "hon"; } }
#include <bits/stdc++.h> using namespace std; int main() { int a, b; cin >> a; b = a % 10; if (b == 3) { cout << "bon"; } else if (b == 0 || b == 1 || b == 6 || b == 8) { cout << "pon"; } else { cout << "hon"; } }
[["-", 8, 9, 0, 1, 0, 11, 12, 16, 17, 67], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 17, 109]]
1
77
n = gets.split('').map(&:to_i) if n[-1] == 2 || n[-1] == 4 || n[-1] == 5 || n[-1] == 7 || n[-1] == 9 puts 'hon' elsif n[-1] == 0 || n[-1] == 1 || n[-1] == 6 || n[-1] == 8 puts 'pon' elsif n[-1] == 3 puts 'bon' end
n = gets.chomp.split('').map(&:to_i) if n[-1] == 2 || n[-1] == 4 || n[-1] == 5 || n[-1] == 7 || n[-1] == 9 puts 'hon' elsif n[-1] == 0 || n[-1] == 1 || n[-1] == 6 || n[-1] == 8 puts 'pon' elsif n[-1] == 3 puts 'bon' end
[["+", 0, 662, 12, 652, 486, 652, 486, 652, 735, 22], ["+", 0, 493, 0, 662, 12, 652, 486, 652, 17, 131]]
4
108
#include <bits/stdc++.h> using namespace std; #define repr(i, a, b) for (int i = a; i < b; i++) #define rep(i, n) for (int i = 0; i < (int)n; i++) int main() { int N; cin >> N; N %= 10; if (N == 3) cout << "bon" << endl; if (N == 0 || N == 1 || N == 6 || N == 8) cout << "pon" << endl; else ...
#include <bits/stdc++.h> using namespace std; #define repr(i, a, b) for (int i = a; i < b; i++) #define rep(i, n) for (int i = 0; i < (int)n; i++) int main() { int N; cin >> N; N %= 10; if (N == 3) cout << "bon" << endl; else if (N == 0 || N == 1 || N == 6 || N == 8) cout << "pon" << endl; else...
[["+", 0, 14, 8, 9, 0, 57, 75, 76, 0, 95]]
1
90
n = str(input()) if len(n) == 1: i = int(n) else: i = int(n[:-1]) if i in (2,4,5,7,9): print("hon") elif i in (0,1,6,8): print("pon") else: print("bon")
n = str(input()) if len(n) == 1: i = int(n) else: i = int(n[-1:]) if i in (2,4,5,7,9): print("hon") elif i in (0,1,6,8): print("pon") else: print("bon")
[["-", 12, 652, 3, 4, 0, 206, 206, 663, 0, 102], ["+", 12, 652, 3, 4, 0, 206, 206, 663, 0, 102]]
5
83
n = input() if n[-1] == 2 or n[-1] == 4 or n[-1] == 5 or n[-1] == 7 or n[-1] == 9: print("hon") elif n[-1] == 3: print("bon") else: print("pon")
n = input() if n[-1] == '2' or n[-1] == '4' or n[-1] == '5' or n[-1] == '7' or n[-1] == '9': print("hon") elif n[-1] == '3': print("bon") else: print("pon")
[["+", 31, 679, 31, 679, 31, 666, 0, 557, 0, 654], ["+", 31, 679, 31, 679, 31, 666, 0, 557, 0, 655], ["+", 31, 679, 31, 679, 12, 666, 0, 557, 0, 654], ["+", 31, 679, 31, 679, 12, 666, 0, 557, 0, 655], ["+", 15, 679, 31, 679, 12, 666, 0, 557, 0, 654], ["+", 15, 679, 31, 679, 12, 666, 0, 557, 0, 655], ["+", 0, 57, 15, 67...
5
75
import java.util.Scanner; class Main { static long ans; static int[] k_list; public static void main(String[] args) { var scaner = new Scanner(System.in); var s = scaner.next(); var end = s.toCharArray()[s.length()]; var num = Integer.parseInt(String.valueOf(end)); String ans; if (nu...
import java.util.Scanner; class Main { static long ans; static int[] k_list; public static void main(String[] args) { var scaner = new Scanner(System.in); var s = scaner.next(); var end = s.toCharArray()[s.length() - 1]; var num = Integer.parseInt(String.valueOf(end)); String ans; if...
[["+", 0, 503, 49, 200, 51, 504, 71, 16, 17, 33], ["+", 0, 503, 49, 200, 51, 504, 71, 16, 12, 499]]
3
156
num = list(input()) n = int(num[-1]) print(n) if n == 3: print('bon') elif n in [2,4,5,7,9]: print('hon') else: print('pon')
num = list(input()) n = int(num[-1]) if n == 3: print('bon') elif n in [2,4,5,7,9]: print('hon') else: print('pon')
[["-", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]]
5
62
#include <bits/stdc++.h> using namespace std; int main() { long long n; cin >> n; if (n % 10 == 3) cout << "bon"; else if (n % 10 == 0 || n % 10 == 1 || n % 10 == 6 || n % 1 == 8) cout << "pon"; else cout << "hon"; }
#include <bits/stdc++.h> using namespace std; int main() { long long n; cin >> n; if (n % 10 == 3) cout << "bon"; else if (n % 10 == 0 || n % 10 == 1 || n % 10 == 6 || n % 10 == 8) cout << "pon"; else cout << "hon"; }
[["-", 15, 339, 51, 16, 12, 16, 31, 16, 12, 13], ["+", 15, 339, 51, 16, 12, 16, 31, 16, 12, 13]]
1
74
a = str(input()) hon = [2,4,5,7,9] pon = [0,1,6,8] bon = [3] if int(a[-1]) in hon: print("hon") if int(a[-1]) in bon: print("hon") if int(a[-1]) in bon: print("hon")
a = str(input()) hon = [2,4,5,7,9] pon = [0,1,6,8] bon = [3] if int(a[-1]) in hon: print("hon") if int(a[-1]) in bon: print("bon") if int(a[-1]) in pon: print("pon")
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["-", 36, 36, 0, 656, 0, 57, 15, 666, 0, 22], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 0, 22]]
5
91
#include <bits/stdc++.h> using namespace std; int main(void) { int n; cin >> n; switch (n) { case 0: case 1: case 6: case 8: cout << "pon"; break; case 3: cout << "bon"; break; default: cout << "hon"; break; } return 0; }
#include <bits/stdc++.h> using namespace std; int main(void) { int n; cin >> n; n %= 10; switch (n) { case 0: case 1: case 6: case 8: cout << "pon"; break; case 3: cout << "bon"; break; default: cout << "hon"; break; } return 0; }
[["+", 0, 14, 8, 9, 0, 1, 0, 11, 31, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 17, 132], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 12, 13], ["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]]
1
70
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define REP(i, n) for (ll i = 0; i < (ll)n; i++) #define all(x) (x).begin(), (x).end() #define unique(x) x.erase(unique(x.begin(), x.end()), x.end()); // map<int,int> mp; int main() { string n; cin >> n; char i = n.at(n.size() - 1); if (i == ...
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define REP(i, n) for (ll i = 0; i < (ll)n; i++) #define all(x) (x).begin(), (x).end() #define unique(x) x.erase(unique(x.begin(), x.end()), x.end()); // map<int,int> mp; int main() { string n; cin >> n; char i = n.at(n.size() - 1); if (i == ...
[["+", 31, 16, 31, 16, 31, 16, 12, 103, 0, 104], ["+", 31, 16, 31, 16, 12, 16, 12, 103, 0, 104], ["+", 51, 16, 31, 16, 12, 16, 12, 103, 0, 104], ["+", 15, 339, 51, 16, 12, 16, 12, 103, 0, 104]]
1
119
#include <bits/stdc++.h> using namespace std; int main() { int N, a; cin >> N; a = N % 10; if (a == 0) cout << "bon" << endl; else if (a == 0 || a == 1 || a == 6 || a == 8) cout << "pon" << endl; else cout << "hon" << endl; }
#include <bits/stdc++.h> using namespace std; int main() { int N, a; cin >> N; a = N % 10; if (a == 3) cout << "bon" << endl; else if (a == 0 || a == 1 || a == 6 || a == 8) cout << "pon" << endl; else cout << "hon" << endl; }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13]]
1
77
n = input() n = int(n) a = n % 10 if n > 999: exit() if a == 2 or a==4 or a==5 or a==7 or a==9: print("hon") elif a==1 or a==1 or a==6 or a==8: print("pon") elif a==3: print("bon")
n = input() n = int(n) a = n % 10 if n > 999: exit() if a == 2 or a==4 or a==5 or a==7 or a==9: print("hon") elif a==0 or a==1 or a==6 or a==8: print("pon") elif a==3: print("bon")
[["-", 15, 679, 31, 679, 31, 679, 31, 666, 0, 612], ["+", 15, 679, 31, 679, 31, 679, 31, 666, 0, 612]]
5
85
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { final BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String N = br.readLine(); int tmp = Integer...
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { final BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String N = br.readLine(); int tmp = Integer...
[["-", 49, 200, 51, 492, 3, 4, 0, 492, 500, 22], ["+", 49, 200, 51, 492, 3, 4, 0, 492, 500, 22], ["-", 49, 200, 51, 492, 3, 4, 0, 492, 141, 22], ["+", 49, 200, 51, 492, 3, 4, 0, 492, 141, 22], ["-", 3, 4, 0, 492, 3, 4, 0, 492, 141, 22], ["+", 0, 492, 3, 4, 0, 16, 31, 492, 141, 22], ["-", 0, 492, 3, 4, 0, 492, 3, 4, 0, ...
3
166
n = gets[-1] case n.to_i when 3 puts "bon" when 0 puts "pon" when 1 puts "pon" when 6 puts "pon" when 8 puts "pon" else puts "hon" end
n = gets.chomp[-1] case n.to_i when 3 puts "bon" when 0 puts "pon" when 1 puts "pon" when 6 puts "pon" when 8 puts "pon" else puts "hon" end
[["+", 0, 493, 0, 662, 12, 742, 500, 652, 17, 131], ["+", 0, 493, 0, 662, 12, 742, 500, 652, 735, 22]]
4
47
a= str(input()) b = a[-1] print(b) b = int(b) if b == 3: print("bon") elif b == 0 : print("pon") elif b == 1 : print("pon") elif b == 6 : print("pon") elif b == 8 : print("pon") else: print("hon")
a= str(input()) b = a[-1] b = int(b) if b == 3: print("bon") elif b == 0 : print("pon") elif b == 1 : print("pon") elif b == 6 : print("pon") elif b == 8 : print("pon") else: print("hon")
[["-", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]]
5
88
import math import re import copy n = int(input()) n = n%10 h = [2,4,5,7,9] p = [0,1,6,8] b = 3 if n in h: print('hon') if n in p: print('pon') if n == 1: print('bon')
import math import re import copy n = int(input()) n = n%10 h = [2,4,5,7,9] p = [0,1,6,8] if n in h: print('hon') if n in p: print('pon') if n == 3: print('bon')
[["-", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["-", 36, 36, 0, 656, 0, 1, 0, 662, 0, 32], ["-", 36, 36, 0, 656, 0, 1, 0, 662, 12, 612], ["-", 36, 36, 0, 656, 0, 57, 15, 666, 0, 612], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 0, 612]]
5
79
N = input() N = int(N[2]) if N == 3: print('bon') elif N in [0,1,6,8]: print('pon') else: print('hon')
N = input() N = int(N[-1]) if N == 3: print('bon') elif N in [0,1,6,8]: print('pon') else: print('hon')
[["-", 0, 662, 12, 652, 3, 4, 0, 206, 206, 612], ["+", 12, 652, 3, 4, 0, 206, 206, 664, 17, 33], ["+", 12, 652, 3, 4, 0, 206, 206, 664, 28, 612]]
5
52
class InputLine def self.to_s gets.chomp end def self.to_i InputLine.to_s.to_i end def self.to_f InputLine.to_s.to_f end def self.to_sa InputLine.to_s.split(' ') end def self.to_ia InputLine.to_sa.map(&:to_i) end def self.to_fa InputLine.to_sa.map(&:to_f) end end...
class InputLine def self.to_s gets.chomp end def self.to_i InputLine.to_s.to_i end def self.to_f InputLine.to_s.to_f end def self.to_sa InputLine.to_s.split(' ') end def self.to_ia InputLine.to_sa.map(&:to_i) end def self.to_fa InputLine.to_sa.map(&:to_f) end end...
[["-", 8, 749, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 8, 749, 0, 652, 3, 4, 0, 557, 0, 6]]
4
141
N = str(input()) if N[:-1] in ('2','4','5','7','9'): print('hon') elif N[:-1] in ('0','1','6','8'): print('pon') else: print('bon')
N = str(input()) if N[-1] in ('2','4','5','7','9'): print('hon') elif N[-1] in ('0','1','6','8'): print('pon') else: print('bon')
[["-", 0, 57, 15, 666, 0, 206, 206, 663, 0, 102], ["-", 75, 665, 15, 666, 0, 206, 206, 663, 0, 102]]
5
84
s = input() if int(s[-1]) in [2,4,5,7,9]: print('hon') elif int(s[-1]) in [0, 1, 6, 9]: print('pon') else: print('bon')
s = input() if int(s[-1]) in [2,4,5,7,9]: print('hon') elif int(s[-1]) in [0, 1, 6, 8]: print('pon') else: print('bon')
[["-", 0, 57, 75, 665, 15, 666, 0, 634, 0, 612], ["+", 0, 57, 75, 665, 15, 666, 0, 634, 0, 612]]
5
67
n = int(input()) a = n%10 if a == 0: print("pon") elif a == 1: print("pon!") elif a == 2: print("hon") elif a == 3: print("bon") elif a == 4: print("hon") elif a == 5: print("hon") elif a == 6: print("pon") elif a == 7: print("hon") elif a == 8: print("pon") elif a == 9: print("h...
n = int(input()) a = n%10 if a == 0: print("pon") elif a == 1: print("pon") elif a == 2: print("hon") elif a == 3: print("bon") elif a == 4: print("hon") elif a == 5: print("hon") elif a == 6: print("pon") elif a == 7: print("hon") elif a == 8: print("pon") elif a == 9: print("ho...
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
123
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; n %= 100; n %= 10; if (n == '3') cout << "bon" << endl; else if (n == '0' || n == '1' || n == '6' || n == '8') cout << "pon" << endl; else cout << "hon" << endl; }
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; n %= 100; n %= 10; if (n == 3) cout << "bon" << endl; else if (n == 0 || n == 1 || n == 6 || n == 8) cout << "pon" << endl; else cout << "hon" << endl; }
[["-", 0, 57, 15, 339, 51, 16, 12, 103, 0, 104], ["-", 31, 16, 31, 16, 31, 16, 12, 103, 0, 104], ["-", 31, 16, 31, 16, 12, 16, 12, 103, 0, 104], ["-", 51, 16, 31, 16, 12, 16, 12, 103, 0, 104], ["-", 15, 339, 51, 16, 12, 16, 12, 103, 0, 104]]
1
87
#include <bits/stdc++.h> #define f(i, a, b) for (ll i = a; i < b; i++) #define af(i, a, b) for (ll i = a; i >= b; i--) #define rep(i, a, b, k) for (ll i = a; i < b; i += k) #define arep(i, a, b, k) for (ll i = a; i >= b; i -= k) #define ff first #define ss second #define pb push_back #define mp make_pair #define sz(a)...
#include <bits/stdc++.h> #define f(i, a, b) for (ll i = a; i < b; i++) #define af(i, a, b) for (ll i = a; i >= b; i--) #define rep(i, a, b, k) for (ll i = a; i < b; i += k) #define arep(i, a, b, k) for (ll i = a; i >= b; i -= k) #define ff first #define ss second #define pb push_back #define mp make_pair #define sz(a)...
[["-", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["-", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6]]
1
209
#include <bits/stdc++.h> using namespace std; int main() { int n = 0; scanf("%d", &n); if (n == 3) { printf("bon\n"); } else if (n == 0 || n == 1 || n == 6 || n == 8) { printf("pon\n"); } else { printf("hon"); } return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int n = 0; scanf("%d", &n); n %= 10; if (n == 3) { printf("bon\n"); } else if (n == 0 || n == 1 || n == 6 || n == 8) { printf("pon\n"); } else { printf("hon\n"); } return 0; }
[["+", 0, 14, 8, 9, 0, 1, 0, 11, 31, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 17, 132], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 12, 13], ["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44]]
1
85
#include <bits/stdc++.h> using namespace std; int main() { string N; cin >> N; int n = N.size() - 1; if (N.at(n) == 3) { cout << "bon" << endl; } else if (N.at(n) == '0' || N.at(n) == '1' || N.at(n) == '6' || N.at(n) == '8') { cout << "pon" << endl; } else { cout << "hon" << endl; ...
#include <bits/stdc++.h> using namespace std; int main() { string N; cin >> N; int n = N.size() - 1; if (N.at(n) == '3') { cout << "bon" << endl; } else if (N.at(n) == '0' || N.at(n) == '1' || N.at(n) == '6' || N.at(n) == '8') { cout << "pon" << endl; } else { cout << "hon" << endl...
[["+", 0, 57, 15, 339, 51, 16, 12, 103, 0, 104]]
1
119
#include <bits/stdc++.h> using namespace std; int main() { string a; cin >> a; int d; d = a.length(); if (a[d - 1] == '2' || a[d - 1] == '4' || a[d - 1] == '5' || a[d - 1] == '7' || a[d - 1] == '9') { cout << "hon\n"; } else if (a[d - 1] == '0' || a[d - 1] == '1' || a[d - 1] == '6' || ...
#include <bits/stdc++.h> using namespace std; int main() { string a; cin >> a; int d; d = a.length(); if (a[d - 1] == '2' || a[d - 1] == '4' || a[d - 1] == '5' || a[d - 1] == '7' || a[d - 1] == '9') { cout << "hon\n"; } else if (a[d - 1] == '0' || a[d - 1] == '1' || a[d - 1] == '6' || ...
[["+", 15, 339, 51, 16, 12, 16, 12, 103, 0, 104]]
1
176
s = input() s = s[len(s)-1:len(s)] if s == "2" or s == "4" or s=="5" or s=="7" or s=="9": print("hon") elif s == 3: print("bon") else: print("pon")
s = input() s = s[len(s)-1:len(s)] if s == "2" or s == "4" or s=="5" or s=="7" or s=="9": print("hon") elif s == "3": print("bon") else: print("pon")
[["+", 0, 57, 75, 665, 15, 666, 0, 557, 0, 654], ["+", 0, 57, 75, 665, 15, 666, 0, 557, 0, 655]]
5
77
/* これを入れて実行 g++ code.cpp ./a.out */ #include <algorithm> #include <bitset> #include <cmath> #include <cstring> #include <deque> #include <functional> #include <iomanip> #include <iostream> #include <map> #include <math.h> #include <queue> #include <set> #include <stack> #include <stdio.h> #include <string> #include <...
/* これを入れて実行 g++ code.cpp ./a.out */ #include <algorithm> #include <bitset> #include <cmath> #include <cstring> #include <deque> #include <functional> #include <iomanip> #include <iostream> #include <map> #include <math.h> #include <queue> #include <set> #include <stack> #include <stdio.h> #include <string> #include <...
[["+", 0, 99, 8, 9, 0, 100, 0, 93, 0, 94], ["+", 0, 99, 8, 9, 0, 100, 0, 93, 0, 35]]
1
611
#include "bits/stdc++.h" using namespace std; #define MOD 1000000007 //#define MOD 998244353 const double EPS = 1e-9; #define INF (1LL << 60) #define D double #define fs first #define sc second #define int long long #define FOR(i, a, b) for (int i = (int)(a); i < (int)(b); ++i) #define RFOR(i, a, b) for (int i = (int)(...
#include "bits/stdc++.h" using namespace std; #define MOD 1000000007 //#define MOD 998244353 const double EPS = 1e-9; #define INF (1LL << 60) #define D double #define fs first #define sc second #define int long long #define FOR(i, a, b) for (int i = (int)(a); i < (int)(b); ++i) #define RFOR(i, a, b) for (int i = (int)(...
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
278
n = int(input()) hon = [2, 4, 5, 7, 9] pon = [0, 1, 6, 8] if (n % 10) in hon: print('hon') elif (n % 10) in pon: print('pon') else: print('pon')
n = int(input()) hon = [2, 4, 5, 7, 9] pon = [0, 1, 6, 8] if (n % 10) in hon: print('hon') elif (n % 10) in pon: print('pon') else: print('bon')
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
70
""" """ hon = "24579" pon = "0168" bon = "3" s = input() if s[0] in hon: print("hon") elif s[0] in pon: print("pon") elif s[0] in bon: print("bon")
""" """ hon = "24579" pon = "0168" bon = "3" s = input() if s[-1] in hon: print("hon") elif s[-1] in pon: print("pon") elif s[-1] in bon: print("bon")
[["-", 0, 656, 0, 57, 15, 666, 0, 206, 206, 612], ["+", 0, 57, 15, 666, 0, 206, 206, 664, 17, 33], ["+", 0, 57, 15, 666, 0, 206, 206, 664, 28, 612], ["-", 0, 57, 75, 665, 15, 666, 0, 206, 206, 612], ["+", 75, 665, 15, 666, 0, 206, 206, 664, 17, 33], ["+", 75, 665, 15, 666, 0, 206, 206, 664, 28, 612]]
5
65
N = input()[-1] if N == '3': print('bon') elif N.startswith(('0','1','6','9')): print('pon') else: print('hon')
N = input()[-1] if N == '3': print('bon') elif N.startswith(('0','1','6','8')): print('pon') else: print('hon')
[["-", 15, 652, 3, 4, 0, 660, 0, 557, 0, 6], ["+", 15, 652, 3, 4, 0, 660, 0, 557, 0, 6]]
5
60
if __name__ == "__main__": n = int(input()) tmp = n // 10 if tmp == 2 or tmp == 4 or tmp == 5 or tmp == 7 or tmp == 9: print('hon') elif tmp == 3: print('bon') else: print('pon')
if __name__ == "__main__": n = int(input()) tmp = n % 10 if tmp == 2 or tmp == 4 or tmp == 5 or tmp == 7 or tmp == 9: print('hon') elif tmp == 3: print('bon') else: print('pon')
[["-", 64, 196, 0, 1, 0, 662, 12, 657, 17, 676], ["+", 64, 196, 0, 1, 0, 662, 12, 657, 17, 109]]
5
66
n=input() if n in "24579": print("hon") elif n in "0168": print("pon") else: print("bon")
n=input()[-1] if n in "24579": print("hon") elif n in "0168": print("pon") else: print("bon")
[["+", 0, 656, 0, 1, 0, 662, 12, 206, 0, 70], ["+", 0, 1, 0, 662, 12, 206, 206, 664, 17, 33], ["+", 0, 1, 0, 662, 12, 206, 206, 664, 28, 612], ["+", 0, 656, 0, 1, 0, 662, 12, 206, 0, 73]]
5
39
def A(): n = int(input()) hon = [2, 4, 5,7,9] pon = [0, 1, 6, 8] bon = [3] if n%10 in hon: print("hon") elif n%10 in pon: print("pon") elif n%10 in bon: print("bon")
def A(): n = int(input()) hon = [2, 4, 5,7,9] pon = [0, 1, 6, 8] bon = [3] if n%10 in hon: print("hon") elif n%10 in pon: print("pon") elif n%10 in bon: print("bon") A()
[["+", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]]
5
81
N = int(input()) k = [0,1,6,8] if(N%3==3): print("bon") elif(N%10 in k): print("pon") else: print("hon")
N = int(input()) k = [0,1,6,8] if(N%10==3): print("bon") elif(N%10 in k): print("pon") else: print("hon")
[["-", 0, 57, 15, 23, 0, 666, 0, 657, 12, 612], ["+", 0, 57, 15, 23, 0, 666, 0, 657, 12, 612]]
5
57
N=input() a = None if(len(N) == 1): a = int(N) elif(len(N) == 2): a = int(N[1]) else: a = int(N[3]) s = "" if(a == 3): s = "bon" elif(a == 0 or a ==1 or a==6 or a==8): s = "pon" else: s="hon" print(s)
N=input() a = None if(len(N) == 1): a = int(N) elif(len(N) == 2): a = int(N[1]) else: a = int(N[2]) s = "" if(a == 3): s = "bon" elif(a == 0 or a ==1 or a==6 or a==8): s = "pon" else: s="hon" print(s)
[["-", 0, 662, 12, 652, 3, 4, 0, 206, 206, 612], ["+", 0, 662, 12, 652, 3, 4, 0, 206, 206, 612]]
5
105
def main(): N = input() if int(N[-1]) in (2,4,7,9): print('hon') elif int(N[-1]) in (0,1,6,8): print('pon') else: print('bon') if __name__ == "__main__": main()
def main(): N = input() if int(N[-1]) in (2,4,5,7,9): print('hon') elif int(N[-1]) in (0,1,6,8): print('pon') else: print('bon') if __name__ == "__main__": main()
[["+", 8, 196, 0, 57, 15, 666, 0, 660, 0, 612], ["+", 8, 196, 0, 57, 15, 666, 0, 660, 0, 21]]
5
80
num = str(input())[-1] if num in "24579": print("bon") elif num in "0168": print("pon") elif num in "3": print("pon")
num = str(input())[-1] if num in "24579": print("hon") elif num in "0168": print("pon") elif num in "3": print("bon")
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
51
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { ios::sync_with_stdio(0); cin.tie(0); int n; cin >> n; if (n % 10 == 3) { cout << "bon"; } else if (!n % 10 || n % 10 == 1 || n % 10 == 6 || n % 10 == 8) { cout << "pon"; } else cout << "hon"; return 0; }
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { ios::sync_with_stdio(0); cin.tie(0); int n; cin >> n; if (n % 10 == 3) { cout << "bon"; } else if (n % 10 == 0 || n % 10 == 1 || n % 10 == 6 || n % 10 == 8) { cout << "pon"; } else cout << "hon"; return 0; }
[["-", 31, 16, 31, 16, 31, 16, 31, 91, 17, 111], ["+", 51, 16, 31, 16, 31, 16, 31, 16, 17, 60], ["+", 51, 16, 31, 16, 31, 16, 31, 16, 12, 13]]
1
98
n = int(input()) h = n % 10 print(h) if h == 2 or h == 4 or h == 5 or h == 7 or h == 9: print('hon') elif h == 3: print('bon') else: print('pon')
n = int(input()) h = n % 10 if h == 2 or h == 4 or h == 5 or h == 7 or h == 9: print('hon') elif h == 3: print('bon') else: print('pon')
[["-", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]]
5
63
#include <bits/stdc++.h> using namespace std; typedef long long lli; typedef long double lld; #define mod 1000000007 #define mod2 998244353 #define fori(n) for (int i = 0; i < n; i++) #define forj(n) for (int j = 0; j < n; j++) #define pb push_back #define mp make_pair #define F first #define S second #define fast ios:...
#include <bits/stdc++.h> using namespace std; typedef long long lli; typedef long double lld; #define mod 1000000007 #define mod2 998244353 #define fori(n) for (int i = 0; i < n; i++) #define forj(n) for (int j = 0; j < n; j++) #define pb push_back #define mp make_pair #define F first #define S second #define fast ios:...
[["-", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13]]
1
504
N=input() w=int(n[-1]) h=[2,4,5,7,9] p=[0,1,6,8] b=3 if w==b: print('bon') elif w in p: print('pon') else: print('hon')
N=input() w=int(N[-1]) h=[2,4,5,7,9] p=[0,1,6,8] b=3 if w==b: print('bon') elif w in p: print('pon') else: print('hon')
[["-", 0, 662, 12, 652, 3, 4, 0, 206, 51, 22], ["+", 0, 662, 12, 652, 3, 4, 0, 206, 51, 22]]
5
72
#include <algorithm> #include <bits/stdc++.h> using namespace std; #define ll long long int #define ull unsigned long long int #define db double #define ld long double #define MOD 1000000007 #define inf (1LL << 62) #define pi acos(-1.0) #define si(a) scanf("%lld", &a) #define sd(n) scanf("%lf", &n) #define for1(i, sto...
#include <algorithm> #include <bits/stdc++.h> using namespace std; #define ll long long int #define ull unsigned long long int #define db double #define ld long double #define MOD 1000000007 #define inf (1LL << 62) #define pi acos(-1.0) #define si(a) scanf("%lld", &a) #define sd(n) scanf("%lf", &n) #define for1(i, sto...
[["+", 0, 14, 8, 9, 0, 1, 0, 2, 63, 22], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 24], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 22], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 25], ["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]]
1
228
s=input() a=[2,4,5,7,9] b=[0,1,6,8] c=[3] d=int(s[-1]) if d in a: print("hon") elif d in b: print("pon") elif c in b: print("bon")
s=input() a=[2,4,5,7,9] b=[0,1,6,8] c=[3] d=int(s[-1]) if d in a: print("hon") elif d in b: print("pon") elif d in c: print("bon")
[["-", 0, 656, 0, 57, 75, 665, 15, 666, 0, 22], ["+", 0, 656, 0, 57, 75, 665, 15, 666, 0, 22]]
5
77
#include <bits/stdc++.h> using namespace std; #define int long long int #define sz(a) (int)a.size() #define w(x) \ int T; \ cin >> T; ...
#include <bits/stdc++.h> using namespace std; #define int long long int #define sz(a) (int)a.size() #define w(x) \ int T; \ cin >> T; ...
[["-", 31, 16, 31, 16, 12, 16, 12, 103, 0, 125], ["+", 31, 16, 31, 16, 12, 16, 12, 103, 0, 125]]
1
207
n = gets.to_s if n[-1] == "3" puts "bon" elsif n[-1] == "0" || n[-1] == "1" || n[-1] == "6" || n[-1] == "8" puts "pon" else puts "hon" end
n = gets.to_s.chomp # p n[-1] if n[-1] == "3" puts "bon" elsif n[-1] == "0" || n[-1] == "1" || n[-1] == "6" || n[-1] == "8" puts "pon" else puts "hon" end
[["+", 36, 36, 0, 493, 0, 662, 12, 652, 17, 131], ["+", 36, 36, 0, 493, 0, 662, 12, 652, 735, 22]]
4
69
a = input() if a[-1:] == '3': print('bon') elif a[-1:] == '0' or a[:-1] == '1' or a[:-1] == '6' or a[:-1] == '8': print('pon') else: print('hon')
a = input() if a[-1:] == '3': print('bon') elif a[-1:] == '0' or a[-1:] == '1' or a[-1:] == '6' or a[-1:] == '8': print('pon') else: print('hon')
[["-", 31, 679, 12, 666, 0, 206, 206, 663, 0, 102], ["+", 31, 679, 12, 666, 0, 206, 206, 663, 0, 102], ["-", 15, 679, 12, 666, 0, 206, 206, 663, 0, 102], ["+", 15, 679, 12, 666, 0, 206, 206, 663, 0, 102]]
5
82
n=int(input()[-1:]) if n==3: print("bon") elif n== 1 | n==0 | n==6 | n==8: print("pon") else: print("hon")
n=int(input()[-1:]) if n==3: print("bon") elif n== 1 or n==0 or n==6 or n==8: print("pon") else: print("hon")
[["-", 0, 57, 75, 665, 15, 666, 0, 657, 17, 139], ["+", 75, 665, 15, 679, 31, 679, 31, 679, 17, 354], ["+", 0, 57, 75, 665, 15, 679, 31, 679, 17, 354], ["+", 0, 656, 0, 57, 75, 665, 15, 679, 17, 354]]
5
55
import sys import numpy as np import math from collections import deque from functools import reduce # input = sys.stdin.readline n = input() if n[-1] == '2' or [-1] == '4' or [-1] == '5' or [-1] == '7' or [-1] == '9': print('hon') elif n[-1] == '3': print('bon') else: print('pon')
import sys import numpy as np import math from collections import deque from functools import reduce # input = sys.stdin.readline n = input() if n[-1] == '2' or n[-1] == '4' or n[-1] == '5' or n[-1] == '7' or n[-1] == '9': print('hon') elif n[-1] == '3': print('bon') else: print('pon')
[["+", 31, 679, 31, 679, 12, 666, 0, 206, 51, 22], ["+", 15, 679, 31, 679, 12, 666, 0, 206, 51, 22], ["+", 0, 57, 15, 679, 12, 666, 0, 206, 51, 22]]
5
100
n=int(input()) if(n==3): print("bon") elif(n in (0,1,6,8)): print("pon") else: print("hon")
n=int(input()) n%=10 if(n==3): print("bon") elif(n in [0,1,6,8]): print("pon") else: print("hon")
[["+", 36, 36, 0, 656, 0, 1, 0, 677, 31, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 677, 17, 132], ["+", 36, 36, 0, 656, 0, 1, 0, 677, 12, 612], ["-", 75, 665, 15, 23, 0, 666, 0, 660, 0, 24], ["+", 75, 665, 15, 23, 0, 666, 0, 634, 0, 70], ["-", 75, 665, 15, 23, 0, 666, 0, 660, 0, 25], ["+", 75, 665, 15, 23, 0, 666, 0, 634, 0,...
5
50
N = int(input()) hon=[2,4,5,7,9] bon=[0,1,6,8] if( N%10 in hon ): print("hon") if( N%10 in bon ): print("bon") if( N%10 == 3 ): print("pon")
N = int(input()) hon=[2,4,5,7,9] bon=[0,1,6,8] if( N%10 in hon ): print("hon") if( N%10 in bon ): print("pon") if( N%10 == 3 ): print("bon")
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
77
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; if (s.length() == 1) { if (s[0] == '3') cout << "bon"; else if (s[0] == '0' || s[0] == '1' || s[0] == '6' || s[0] == '8') cout << "pon"; else cout << "hon"; } else if (s.length() == 2) { if ...
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; if (s.length() == 1) { if (s[0] == '3') cout << "bon"; else if (s[0] == '0' || s[0] == '1' || s[0] == '6' || s[0] == '8') cout << "pon"; else cout << "hon"; } else if (s.length() == 2) { if ...
[["-", 15, 339, 51, 16, 31, 69, 341, 342, 0, 13], ["+", 15, 339, 51, 16, 31, 69, 341, 342, 0, 13], ["-", 31, 16, 31, 16, 31, 69, 341, 342, 0, 13], ["+", 31, 16, 31, 16, 31, 69, 341, 342, 0, 13], ["-", 31, 16, 12, 16, 31, 69, 341, 342, 0, 13], ["+", 31, 16, 12, 16, 31, 69, 341, 342, 0, 13], ["-", 51, 16, 12, 16, 31, 69,...
1
257
n = input() num = len(n) if int(n[num - 1]) == 2 or int(n[num - 1]) == 4 or int(n[num - 1]) == 5 or int(n[num - 1]) == 7 or int(n[num - 1]) == 9: str = 'hon' elif int(n[num - 1]) == 3: str = 'pon' else: str = 'bon' print(str)
n = input() num = len(n) if int(n[num - 1]) == 2 or int(n[num - 1]) == 4 or int(n[num - 1]) == 5 or int(n[num - 1]) == 7 or int(n[num - 1]) == 9: str = 'hon' elif int(n[num - 1]) == 3: str = 'bon' else: str = 'pon' print(str)
[["-", 64, 196, 0, 1, 0, 662, 12, 557, 0, 6], ["+", 64, 196, 0, 1, 0, 662, 12, 557, 0, 6], ["-", 8, 196, 0, 1, 0, 662, 12, 557, 0, 6], ["+", 8, 196, 0, 1, 0, 662, 12, 557, 0, 6]]
5
106
#include <bits/stdc++.h> using namespace std; int main() { int A; cin >> A; int S = A / 10; if (S == 3) { cout << "bon" << endl; } else if (S == 0 || S == 1 || S == 6 || S == 8) { cout << "pon" << endl; } else { cout << "hon" << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { int A; cin >> A; int S = A % 10; if (S == 3) { cout << "bon" << endl; } else if (S == 0 || S == 1 || S == 6 || S == 8) { cout << "pon" << endl; } else { cout << "hon" << endl; } }
[["-", 8, 9, 0, 43, 49, 50, 51, 16, 17, 85], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 17, 109]]
1
82
#include <bits/stdc++.h> using namespace std; #define ll long long #define MAX 100000 #define FI freopen("input.txt", "r", stdin) #define FO freopen("output.txt", "w", stdout) #define fast \ ios_base::sync_with_stdio(false); ...
#include <bits/stdc++.h> using namespace std; #define ll long long #define MAX 100000 #define FI freopen("input.txt", "r", stdin) #define FO freopen("output.txt", "w", stdout) #define fast \ ios_base::sync_with_stdio(false); ...
[["-", 31, 16, 31, 16, 31, 16, 12, 103, 0, 125], ["-", 31, 16, 31, 16, 12, 103, 0, 42, 0, 22], ["+", 31, 16, 31, 16, 31, 16, 12, 103, 0, 125]]
1
183
#include <algorithm> #include <bitset> #include <complex> #include <deque> #include <exception> #include <fstream> #include <functional> #include <iomanip> #include <ios> #include <iosfwd> #include <iostream> #include <istream> #include <iterator> #include <limits> #include <list> #include <locale> #include <map> #incl...
#include <algorithm> #include <bitset> #include <complex> #include <deque> #include <exception> #include <fstream> #include <functional> #include <iomanip> #include <ios> #include <iosfwd> #include <iostream> #include <istream> #include <iterator> #include <limits> #include <list> #include <locale> #include <map> #incl...
[["-", 75, 76, 0, 57, 15, 339, 51, 34, 0, 21], ["+", 15, 339, 51, 16, 31, 16, 31, 16, 17, 106], ["-", 0, 57, 15, 339, 51, 34, 12, 34, 0, 21], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 106], ["-", 15, 339, 51, 34, 12, 34, 12, 34, 0, 21], ["+", 75, 76, 0, 57, 15, 339, 51, 16, 17, 106]]
1
169
#define _USE_MATH_DEFINES #define _SILENCE_CXX17_C_HEADER_DEPRECATION_WARNING #define _SILENCE_ALL_CXX17_DEPRECATION_WARNINGS #define _CRT_SECURE_NO_WARNINGS //#include <bits/stdc++.h> #include <algorithm> #include <array> #include <bitset> #include <cassert> #include <cmath> #include <complex> #include <cstdio> #incl...
#define _USE_MATH_DEFINES #define _SILENCE_CXX17_C_HEADER_DEPRECATION_WARNING #define _SILENCE_ALL_CXX17_DEPRECATION_WARNINGS #define _CRT_SECURE_NO_WARNINGS //#include <bits/stdc++.h> #include <algorithm> #include <array> #include <bitset> #include <cassert> #include <cmath> #include <complex> #include <cstdio> #incl...
[["+", 0, 14, 8, 9, 0, 1, 0, 11, 31, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 17, 132], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 12, 13], ["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]]
1
559
#include <bits/stdc++.h> using namespace std; #define fastio \ cin.tie(NULL); \ cout.tie(NULL); \ ios_base::sync_with_stdio(0...
#include <bits/stdc++.h> using namespace std; #define fastio \ cin.tie(NULL); \ cout.tie(NULL); \ ios_base::sync_with_stdio(0...
[["-", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["-", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6]]
1
407
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; int i = s[s.size() - 1]; if (i == 2 || i == 4 || i == 5 || i == 7 || i == 9) cout << "hon" << endl; else if (i == 0 || i == 1 || i == 6 || i == 8) cout << "pon" << endl; else cout << "bon" << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; int i = s[s.size() - 1] - '0'; if (i == 2 || i == 4 || i == 5 || i == 7 || i == 9) cout << "hon" << endl; else if (i == 0 || i == 1 || i == 6 || i == 8) cout << "pon" << endl; else cout << "bon" << endl; return 0; ...
[["+", 8, 9, 0, 43, 49, 50, 51, 16, 17, 33], ["+", 0, 43, 49, 50, 51, 16, 12, 103, 0, 104], ["+", 0, 43, 49, 50, 51, 16, 12, 103, 0, 125]]
1
102